Documentation ¶
Overview ¶
Package serverconfig is the config loader for the server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // HTTPPort is the http port for the api HTTPPort uint16 `yaml:"http_port"` // DBPath is the address of the database DBPath string `yaml:"db_path"` // DBType is the flag signifying the type of database (mysql, sqlite, etc). DBType string `yaml:"db_type"` // SkipMigrations skips the database migrations. SkipMigrations bool `yaml:"skip_migrations"` }
Config is used to configure the explorer server.
func DecodeServerConfig ¶
DecodeServerConfig parses in a config from a file.
Click to show internal directories.
Click to hide internal directories.