MCPcopy Create free account
hub / github.com/ankorstore/yokai / handlerDefinition

Struct handlerDefinition

fxhttpserver/define.go:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47type handlerDefinition struct {
48 method string
49 path string
50 handler any
51 middlewares []MiddlewareDefinition
52}
53
54// NewHandlerDefinition returns a new [HandlerDefinition].
55func NewHandlerDefinition(method string, path string, handler any, middlewares []MiddlewareDefinition) HandlerDefinition {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected