package
Version:
v0.0.0-...-f60b9ba
Opens a new window with list of versions in this module.
Published: Nov 21, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 31
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ConfigApi struct {
Host string `env:"HOST" envDefault:"localhost"`
Port int `env:"PORT" envDefault:"3999"`
Key string `env:"KEY,notEmpty"`
}
type ConfigDb struct {
Url string `env:"URL" envDefault:"postgres://people:people@localhost:5432/authority?sslmode=disable"`
AesKey string `env:"AES_KEY,notEmpty"`
}
type ConfigLdap struct {
Url string `env:"URL,notEmpty"`
Username string `env:"USERNAME,notEmpty"`
Password string `env:"PASSWORD,notEmpty"`
}
type ConfigNats struct {
Url string `env:"URL" envDefault:"nats://localhost:4222"`
Nkey string `env:"NKEY"`
NkeySeed string `env:"NKEY_SEED"`
StreamName string `env:"STREAM_NAME,notEmpty"`
}
type ErrorMessage struct {
Code int `json:"code"`
Message string `json:"message"`
}
type Version struct {
Branch string `env:"SOURCE_BRANCH" json:"branch,omitempty"`
Commit string `env:"SOURCE_COMMIT" json:"commit,omitempty"`
Image string `env:"IMAGE_NAME" json:"image,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.