Documentation ¶ Index ¶ Variables func New(path string, raw []proto.IRoutable) (proto.IApiHandler[Query, Response], error) type Query type Response func (self Response) IntoResponse() types.Response func (self Response) ResponseType() reflect.Type Constants ¶ This section is empty. Variables ¶ View Source var StyleCss []byte Functions ¶ func New ¶ func New( path string, raw []proto.IRoutable, ) (proto.IApiHandler[Query, Response], error) Types ¶ type Query ¶ type Query struct { Method string `srv:"query" name:"method" default:"GET"` Path string `srv:"query" name:"path" default:""` } type Response ¶ added in v0.13.1 type Response struct { Data string } func (Response) IntoResponse ¶ added in v0.13.1 func (self Response) IntoResponse() types.Response func (Response) ResponseType ¶ added in v0.13.1 func (self Response) ResponseType() reflect.Type Source Files ¶ View all Source files handler.go Click to show internal directories. Click to hide internal directories.