zion_echo

package
v0.0.0-...-4f4750c Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathAlive = "/alive"
	PathReady = "/ready"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Debug     bool `json:"debug"`
	Port      int  `json:"port"`
	Gzip      int  `json:"gzip"`
	RequestID bool `json:"request_id"`
	BasicAuth struct {
		Username string `json:"username"`
		Password string `json:"password"`
	} `json:"basic_auth"`
	Static struct {
		Dirs  map[string]string `json:"dirs"`
		Files map[string]string `json:"files"`
	} `json:"static"`
	CORS struct {
		AllowOrigins     []string            `json:"allow_origins"`
		AllowMethods     []string            `json:"allow_methods"`
		AllowHeaders     []string            `json:"allow_headers"`
		AllowCredentials bool                `json:"allow_credentials"`
		ExposeHeaders    []string            `json:"expose_headers"`
		MaxAge           zconf_time.Duration `json:"max_age"`
	} `json:"cors"`
	BodyLimit string            `json:"body_limit"`
	Rewrites  map[string]string `json:"rewrites"`
}

func (Options) Create

func (opts Options) Create() (e *echo.Echo)

type ReadyCheck

type ReadyCheck struct {
	Name  string
	Ready func() bool
}

Jump to

Keyboard shortcuts

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