ginEntry

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "gin_entry"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	RedirectTrailingSlash  bool     `json:"redirect_trailing_slash" yaml:"redirect_trailing_slash"`
	RedirectFixedPath      bool     `json:"redirect_fixed_path" yaml:"redirect_fixed_path"`
	HandleMethodNotAllowed bool     `json:"handle_method_not_allowed" yaml:"handle_method_not_allowed"`
	ForwardedByClientIP    bool     `json:"forwarded_by_client_ip" yaml:"forwarded_by_client_ip"`
	RemoteIPHeaders        []string `json:"remote_ip_headers" yaml:"remote_ip_headers"`
	TrustedProxies         []string `json:"trusted_proxies" yaml:"trusted_proxies"`
	AppEngine              bool     `json:"app_engine" yaml:"app_engine"`
	UseRawPath             bool     `json:"use_raw_path" yaml:"use_raw_path"`
	UnescapePathValues     bool     `json:"unescape_path_values" yaml:"unescape_path_values"`
	MaxMultipartMemory     int64    `json:"max_multipart_memory" yaml:"max_multipart_memory"`
	RemoveExtraSlash       bool     `json:"remove_extra_slash" yaml:"remove_extra_slash"`
}

type Entry

type Entry interface {
	entry.Entry
	Use(middleware ...gin.HandlerFunc)
	Register(entry.InitHandler)
}

func New

func New(name string) Entry

type Router

type Router interface {
	Router(r gin.IRouter)
}

Jump to

Keyboard shortcuts

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