echo_plugin

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiHandler

func ApiHandler(apiInfo *web.ApiInfo, funcType reflect.Method, funcValue reflect.Value)

func PathVariableParser

func PathVariableParser(url string) string

func StaticHandler

func StaticHandler(url, dir string)

Types

type Container added in v1.3.4

type Container struct {
	*echo.Echo `notInject:"true"`
}

func (*Container) Bean added in v1.3.4

func (c *Container) Bean() string

type EchoMapperAdapter

type EchoMapperAdapter struct {
	// contains filtered or unexported fields
}

func NewEchoMapperAdapter

func NewEchoMapperAdapter(c echo.Context) *EchoMapperAdapter

func (*EchoMapperAdapter) Get

func (e *EchoMapperAdapter) Get(param web.Param) interface{}

func (*EchoMapperAdapter) GetBoolFromForm

func (e *EchoMapperAdapter) GetBoolFromForm(param web.Param) bool

func (*EchoMapperAdapter) GetBoolFromPath

func (e *EchoMapperAdapter) GetBoolFromPath(param web.Param) bool

func (*EchoMapperAdapter) GetBoolFromQuery

func (e *EchoMapperAdapter) GetBoolFromQuery(param web.Param) bool

func (*EchoMapperAdapter) GetContext added in v1.3.4

func (e *EchoMapperAdapter) GetContext() context.Context

func (*EchoMapperAdapter) GetFloatFromForm

func (e *EchoMapperAdapter) GetFloatFromForm(param web.Param) float64

func (*EchoMapperAdapter) GetFloatFromPath

func (e *EchoMapperAdapter) GetFloatFromPath(param web.Param) float64

func (*EchoMapperAdapter) GetFloatFromQuery

func (e *EchoMapperAdapter) GetFloatFromQuery(param web.Param) float64

func (*EchoMapperAdapter) GetIntFromForm

func (e *EchoMapperAdapter) GetIntFromForm(param web.Param) int

func (*EchoMapperAdapter) GetIntFromPath

func (e *EchoMapperAdapter) GetIntFromPath(param web.Param) int

func (*EchoMapperAdapter) GetIntFromQuery

func (e *EchoMapperAdapter) GetIntFromQuery(param web.Param) int

func (*EchoMapperAdapter) GetMapFromBody

func (e *EchoMapperAdapter) GetMapFromBody(param web.Param) interface{}

func (*EchoMapperAdapter) GetMapFromForm

func (e *EchoMapperAdapter) GetMapFromForm() map[string][]string

func (*EchoMapperAdapter) GetMultipartFile

func (e *EchoMapperAdapter) GetMultipartFile(param web.Param) multipart.File

func (*EchoMapperAdapter) GetMultipartHeader

func (e *EchoMapperAdapter) GetMultipartHeader(param web.Param) *multipart.FileHeader

func (*EchoMapperAdapter) GetRequest

func (e *EchoMapperAdapter) GetRequest() *http.Request

func (*EchoMapperAdapter) GetResponseWriter

func (e *EchoMapperAdapter) GetResponseWriter() http.ResponseWriter

func (*EchoMapperAdapter) GetStream

func (e *EchoMapperAdapter) GetStream() []byte

func (*EchoMapperAdapter) GetStringFromForm

func (e *EchoMapperAdapter) GetStringFromForm(param web.Param) string

func (*EchoMapperAdapter) GetStringFromHeader

func (e *EchoMapperAdapter) GetStringFromHeader(param web.Param) string

func (*EchoMapperAdapter) GetStringFromMultipart

func (e *EchoMapperAdapter) GetStringFromMultipart(param web.Param) string

func (*EchoMapperAdapter) GetStringFromPath

func (e *EchoMapperAdapter) GetStringFromPath(param web.Param) string

func (*EchoMapperAdapter) GetStringFromQuery

func (e *EchoMapperAdapter) GetStringFromQuery(param web.Param) string

func (*EchoMapperAdapter) GetStructFromBody

func (e *EchoMapperAdapter) GetStructFromBody(param web.Param) interface{}

func (*EchoMapperAdapter) GetStructFromQuery

func (e *EchoMapperAdapter) GetStructFromQuery(param web.Param) interface{}

type Starter added in v1.3.4

type Starter struct {
	bean.Component
	Log logging.Logger `bean:"log"`
}

func (*Starter) Beans added in v1.3.4

func (s *Starter) Beans() (beans bean.Components)

func (*Starter) FsHandler added in v1.3.4

func (s *Starter) FsHandler() web.FsHandler

func (*Starter) ListenAndServe added in v1.3.4

func (s *Starter) ListenAndServe(port int)

func (*Starter) RestHandler added in v1.3.4

func (s *Starter) RestHandler() web.RestHandler

Jump to

Keyboard shortcuts

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