package
Version:
v0.0.0-...-efb7c8a
Opens a new window with list of versions in this module.
Published: Aug 24, 2022
License: MIT
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewServer(cfg *Cfg) *server
type Cfg struct {
ServerAddress string `mapstructure:"server_address"`
TokenLifespan time.Duration `mapstructure:"token_lifespan"`
DatabaseDSN string `mapstructure:"database_dsn"`
CertPath string `mapstructure:"server_cert_path"`
KeyPath string `mapstructure:"server_key_path"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.