Documentation
¶
Index ¶
Constants ¶
View Source
const ( PersistenceModeMemory = "memory" PersistenceModeDatabase = "database" )
View Source
const ( LogModeProduction = "production" LogModeDevelopment = "development" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBConfig ¶
type DBConfig struct {
Host string `help:"Database hostname" default:"localhost"`
Port int `help:"Database connection port" default:"5432"`
User string `help:"Database user" default:"postgres"`
Password string `help:"Database password" default:"password"`
Driver string `help:"Database driver to be used" enum:"postgres" default:"postgres"`
Name string `help:"Database name" default:"objekt"`
AdditionalConfig map[string]string `help:"Additional database connection string query params"`
}
func (*DBConfig) ConnectionURL ¶
type HttpConfig ¶
type HttpConfig struct {
Hostname string `help:"Hostname of the Objekt server" default:"localhost" short:"H"`
Port int `help:"Port of the Objekt server" default:"8080" short:"p"`
PprofEnabled bool `help:"Expose pprof standard endpoints" default:"false"`
}
func (*HttpConfig) ListenerURL ¶
func (h *HttpConfig) ListenerURL() string
type LocalConfig ¶
type LocalConfig struct {
StorageDir string `help:"location of directory that stores local buckets" type:"existingdir" default:"."`
}
type OCIConfig ¶
type OCIConfig struct {
Tenancy string `help:"OCI tenancy ocid"`
Compartment string `help:"OCI compartment ocid"`
Namespace string `help:"OCI namespace name"`
User string `help:"OCI user ocid"`
Region string `help:"OCI region to use by default"`
Fingerprint string `help:"OCI private key fingerprint"`
Key string `help:"OCI api private key value as string"`
Passphrase *string `help:"OCI api private key passphrase" optional:""`
}
Click to show internal directories.
Click to hide internal directories.