package
5.0.0-20220302090640-ec71aef15e1c
Repository: https://github.com/masterhung0112/hk_server.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
FixInvalidLocales checks and corrects the given config for invalid locale-related settings.
GenerateClientConfig renders the given configuration for a client.
GenerateLimitedClientConfig renders the given configuration for an untrusted client.
No description provided by the author
No description provided by the author
No description provided by the author
Merge merges two configs together.
Migrate migrates SAML keys, certificates, and other config files from one store to another given their data source names.
NewDatabaseStore creates a new instance of a config store backed by the given database.
NewFileStore creates a new instance of a config store backed by the given file path.
NewLogConfigSrc creates an advanced logging configuration source, backed by a file, JSON string, or database.
NewMemoryStore creates a new MemoryStore instance with default options.
NewMemoryStoreWithOptions creates a new MemoryStore instance.
No description provided by the author
NewStoreFromDSN creates and returns a new config store backed by either a database or file store depending on the value of the given data source name string.
NewTestMemoryStore returns a new config store backed by a memory store to be used for testing purposes.
# Constants
MaxWriteLength defines the maximum length accepted for write to the Configurations or ConfigurationFiles table.
# Variables
ErrReadOnlyConfiguration is returned when an attempt to modify a read-only configuration is made.
ErrReadOnlyStore is returned when an attempt to modify a read-only configuration store is made.
# Structs
No description provided by the author
DatabaseStore is a config store backed by a database.
FileStore is a config store backed by a file such as config/config.json.
MemoryStore implements the Store interface.
MemoryStoreOptions makes configuration of the memory store explicit.
Store is the higher level object that handles storing and retrieval of config data.
# Interfaces
BackingStore defines the behaviour exposed by the underlying store implementation (e.g.
LogConfigSrc abstracts the Advanced Logging configuration so that implementations can fetch from file, database, etc.
# Type aliases
No description provided by the author
Listener is a callback function invoked when the configuration changes.
No description provided by the author