server

package
v0.0.0-...-efb7c8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *Cfg) *server

Types

type Cfg

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL