configs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpMethodGet     = "GET"
	HttpMethodPost    = "POST"
	HttpMethodPut     = "PUT"
	HttpMethodPatch   = "PATCH"
	HttpMethodHead    = "HEAD"
	HttpMethodOptions = "OPTIONS"
	HttpMethodDelete  = "DELETE"
	HttpMethodConnect = "CONNECT"
	HttpMethodTrace   = "TRACE"
	HttpMethodALL     = "GET|POST|PUT|PATCH|HEAD|OPTIONS|DELETE|CONNECT|TRACE"
)
View Source
const (
	ServerTypeAPI  = "api"
	ServerTypeCron = "cron"
	ServerTypeMQ   = "mq"
)

Variables

View Source
var (
	PlatInfo       = &plat{}
	SystemInfo     = &system{}
	LoggerInfo     = &logger{}
	HttpServerInfo = &httpserver{}
	CronServerInfo = &cronserver{}
	DBInfo         = &db{}
	MQServer       = &mqserver{}
)

Functions

func Setup

func Setup()

Types

type Config

type Config struct {
	Plat       plat       `json:"plat"`
	System     system     `json:"system"`
	Logger     logger     `json:"logger"`
	DB         db         `json:"db"`
	HttpServer httpserver `json:"httpserver"`
	CronServer cronserver `json:"cronserver"`
	MQServer   mqserver   `json:"mqserver"`
}

Jump to

Keyboard shortcuts

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