options

package
v3.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfConfig

type ConfConfig struct {
	Dir string
}

type Config

type Config struct {
	MongoDB    mgoclient.MongoConfig
	Errors     ErrorConfig
	Language   LanguageConfig
	Configures ConfConfig
	Register   RegisterConfig
}

type ErrorConfig

type ErrorConfig struct {
	Res string
}

type LanguageConfig

type LanguageConfig struct {
	Res string
}

type RegisterConfig

type RegisterConfig struct {
	Address string
}

type ServerOption

type ServerOption struct {
	ServConf *config.CCAPIConfig
}

ServerOption define option of server in flags

func NewServerOption

func NewServerOption() *ServerOption

NewServerOption create a ServerOption object

func (*ServerOption) AddFlags

func (s *ServerOption) AddFlags(fs *pflag.FlagSet)

AddFlags add flags

Jump to

Keyboard shortcuts

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