package
0.21.6
Repository: https://github.com/neuronlabs/neuron.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

WithDatabase is an option that sets the Database in the repository options.
WithHost sets the options hostname.
WithMaxTimeout is an option that sets the MaxTimeout in the repository options.
WithPassword is an option that sets the Password in the repository options.
WithPort is an option that sets the Port in the repository options.
WithProtocol is an option that sets the Protocol in the repository options.
WithTLSConfig is an option that sets the TLSConfig in the repository options.
WithURI is an option that sets repository connection URI.
WithUsername is an option that sets the Username in the repository options.

# Constants

StatusFail defines unhealthy result.
StatusPass defines healthy status.
StatusWarn defines.

# Variables

ErrAuthorization is the error classification related with repository authorization.
ErrConnection is the error classification related with repository connection.
ErrNotImplements is the error classification for the repositories that doesn't implement some interface.
ErrRepository is the major error repository classification.
ErrReservedName is the error classification related with using reserved name.

# Structs

HealthResponse is the response for the health check.
Options is the common structure used as the options for the repositories.

# Interfaces

Closer is an interface that closes all connection for given instance.
Dialer is an interface that starts the connection for the store.
Exister is the interface used to check if given query object exists.
HealthChecker is the interface used to check the repository health.
Migrator migrates the models into the repository.
Repository is the interface used to execute the queries.
Runner is the interface for the services that are runnable.
Savepointer is an interface that allows using transaction savepoints for repositories.
Transactioner is the interface used for the transactions.
Upserter is the repository interface that inserts or update on integration error given query values.

# Type aliases

HealthStatus is the status of the health check.
Option is a function that changes the repository options.