config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CookieStoreSecretKey string

CookieStoreSecretKey is key for Cookie store provided by env arg SECRET_KEY

Functions

func InitConfig

func InitConfig()

InitConfig inits Config and CookieStoreSecretKey.

Types

type Config

type Config struct {
	ServerListenAddress string

	CleanInactiveUsersInterval duration
	InactivityTimeout          duration

	CookieMaxAge int

	RequestTimeout  duration
	ResponseTimeout duration

	Chats []string

	LastMessages int
}

Config ...

var C *Config

C contains configuration for app Config filename : "config.toml"

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig ...

Jump to

Keyboard shortcuts

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