Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callbacks ¶
Callbacks provides an interface that can be used to run callbacks on different events.
type Config ¶
type Config struct { Host string `env:"SOFT_SERVE_HOST"` Port int `env:"SOFT_SERVE_PORT"` KeyPath string `env:"SOFT_SERVE_KEY_PATH"` RepoPath string `env:"SOFT_SERVE_REPO_PATH"` InitialAdminKey string `env:"SOFT_SERVE_INITIAL_ADMIN_KEY"` Callbacks Callbacks }
Config is the configuration for Soft Serve.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a Config with the values populated with the defaults or specified environment variables.
func (*Config) WithCallbacks ¶
WithCallbacks applies the given Callbacks to the configuration.
Click to show internal directories.
Click to hide internal directories.