cmd

package
v0.0.0-...-18ff29a Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute is ..

Types

type ApplicationOps

type ApplicationOps struct {
	Logger flog.Options                      `mapstructure:"logger" yaml:"logger"`
	Server ServerOps                         `mapstructure:"server" yaml:"server"`
	Auth   middlewares.AuthenticationOptions `mapstructure:"auth" yaml:"auth"`
	Oss    fstorage.OssOptions               `mapstructure:"oss" yaml:"oss"`
}

ApplicationOps is ...

func (*ApplicationOps) Load

func (this *ApplicationOps) Load()

Load 使用viper加载配置文件

type HTTPOps

type HTTPOps struct {
	Host string `mapstructure:"host" yaml:"host"`
	Port uint   `mapstructure:"port" yaml:"port"`
}

HTTPOps is ...

type ServerOps

type ServerOps struct {
	HTTP            HTTPOps  `mapstructure:"http" yaml:"http"`
	CorsAllowOrigin []string `mapstructure:"cors_allow_origin"`
	DefaultExpired  int64    `mapstructure:"default_expired"`
}

ServerOps is ...

Jump to

Keyboard shortcuts

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