Versions in this module Expand all Collapse all v0 v0.2.0 May 25, 2024 Changes in this version + func Bind[O any](binder *Binder, item *BindItem[O], middlewares ...api.Handler) + func DeleteBind[O any](binder *Binder, item *SimpleBindItem[O], middlewares ...api.Handler) + func GetBind[O any](binder *Binder, item *SimpleBindItem[O], middlewares ...api.Handler) + func PostBind[O any](binder *Binder, item *SimpleBindItem[O], middlewares ...api.Handler) + func PutBind[O any](binder *Binder, item *SimpleBindItem[O], middlewares ...api.Handler) + func Static(binder *Binder, item *StaticBindItem) + func StaticFile(binder *Binder, item *StaticFileBindItem) + type BindItem struct + Method string + type Binder struct + func NewBinder(router api.Router, i *infrastructure.Infrastructure) *Binder + type FormDomainObjectsFunc func(c *api.Context, params request.Params) ([]domain.Object, error) + type RequestParamsBindFunc func(c *api.Context, params request.Params) error + type ResponseFunc func(c *api.Context, statusCode int, data O, err error) + type ServiceFunc func(c *api.Context, params request.Params, objects []domain.Object, ...) (O, error) + type SimpleBindItem struct + FormDomainObjectsFunc FormDomainObjectsFunc + Objects []domain.Object + Path string + RequestParams request.Params + RequestParamsBindFunc RequestParamsBindFunc + ResponseFunc ResponseFunc[O] + ServiceFunc ServiceFunc[O] + type StaticBindItem struct + RelativePath string + Root string + WithBasePath bool + type StaticFileBindItem struct + FilePath string + RelativePath string + WithBasePath bool