package
0.0.6
Repository: https://github.com/undernetirc/cservice-api.git
Documentation: pkg.go.dev

# Functions

DefaultConfig sets the default values for the configuration.
GetDbURI returns a database connection string.
GetServerAddress returns the address string to bind the service to.
InitConfig initializes the configuration.
Random returns a random string of the given length.

# Constants

DatabaseAutoMigration is whether to automatically apply the migrations to the database.
DatabaseHost is the host to connect to the database.
DatabaseName is the name of the database to connect to.
DatabasePassword is the password to connect to the database.
DatabasePort is the port to connect to the database.
DatabaseUsername is the username to connect to the database.
RedisDatabase is the database to connect to the redis.
RedisHost is the host to connect to the redis.
RedisPassword is the password to connect to the redis.
RedisPort is the port to connect to the redis.
ServiceApiPrefix is the prefix to use for the API set to "" for /.
ServiceHost is the host to bind the service to.
ServiceJWTPublicKey is the public key to use for JWT (only for RS256).
ServiceJWTRefreshPublicKey is the public key to use for JWT refresh token (only for RS256).
ServiceJWTRefreshSigningKey is the key to use for JWT refresh token (only for RS256).
ServiceJWTRefreshSigningSecret is the secret to use for JWT refresh token (only for HS256).
ServiceJWTSigningKey is the key to use for JWT (only for RS256).
ServiceJWTSigningMethod is the signing method to use for JWT.
ServiceJWTSigningSecret is the secret to use for JWT (only for HS256).
ServicePort is the port to bind the service to.

# Type aliases

K is a type alias for string.