alloter

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlloterContext

type AlloterContext struct {
	Actx *alloter.Context
	// contains filtered or unexported fields
}

func (*AlloterContext) Bind

func (ctx *AlloterContext) Bind(obj interface{}) error

func (*AlloterContext) Close

func (ctx *AlloterContext) Close()

func (*AlloterContext) Context

func (ctx *AlloterContext) Context() context.Context

func (*AlloterContext) GetImpl

func (ctx *AlloterContext) GetImpl() interface{}

func (*AlloterContext) Header

func (ctx *AlloterContext) Header(key string) string

func (*AlloterContext) Log

func (ctx *AlloterContext) Log() log.Logger

func (*AlloterContext) LogOptions

func (ctx *AlloterContext) LogOptions() *log.Options

func (*AlloterContext) Meta

func (ctx *AlloterContext) Meta() map[string]interface{}

func (*AlloterContext) Request

func (ctx *AlloterContext) Request() vctx.Request

func (*AlloterContext) ResetContext

func (ctx *AlloterContext) ResetContext(nctx context.Context)

func (*AlloterContext) Response

func (ctx *AlloterContext) Response() vctx.Response

func (*AlloterContext) ServerName

func (ctx *AlloterContext) ServerName() string

func (*AlloterContext) ServerType

func (ctx *AlloterContext) ServerType() string

type AlloterEngine

type AlloterEngine struct {
	Engine *alloter.Engine
	// contains filtered or unexported fields
}

func NewAlloterEngine

func NewAlloterEngine(innerEngine *alloter.Engine, opts ...engine.Option) *AlloterEngine

func (*AlloterEngine) GetImpl

func (e *AlloterEngine) GetImpl() any

func (*AlloterEngine) Handle

func (e *AlloterEngine) Handle(method string, path string, callfunc engine.HandlerFunc)

func (*AlloterEngine) HandleRequest

func (e *AlloterEngine) HandleRequest(req engine.Request, resp engine.ResponseWriter) (err error)

func (*AlloterEngine) NoMethod

func (e *AlloterEngine) NoMethod()

func (*AlloterEngine) NoRoute

func (e *AlloterEngine) NoRoute()

func (*AlloterEngine) Write

func (e *AlloterEngine) Write(ctx context.Context, resp interface{})

Jump to

Keyboard shortcuts

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