config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugMode   = RunMode("debug")
	ReleaseMode = RunMode("release")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Httpaddr       string  `json:"httpaddr"`
	Httpport       int     `json:"httpport"`
	Runmode        RunMode `json:"runmode"`
	ApiAddr        string  `json:"api_addr"`
	ApiPort        int     `json:"api_port"`
	ApiScheme      string  `json:"api_scheme"`
	MemStorySecret string  `json:"mem_story_secret"`
	SessionStory   string  `json:"session_story"`
}

func ReadConfig

func ReadConfig() (conf *AppConfig, err error)

type RunMode

type RunMode string

Jump to

Keyboard shortcuts

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