Documentation
¶
Index ¶
- func Auth(providerNames ...string) opt.Option[Options]
- func Description(description string) opt.Option[Options]
- func ErrorConverter(impl func(err error) error) opt.Option[Config]
- func NoOpErrorConverter(err error) error
- func Oauth2(providerName string, scopes ...string) opt.Option[Options]
- func OperationID(operationID string) opt.Option[Options]
- func Tags(tags ...string) opt.Option[Options]
- type Config
- type Created
- type Handler
- type Options
- type Response
- func Forbidden[T any](msg string, err error) (*Response[T], error)
- func NotFound[T any](msg string) (*Response[T], error)
- func NotImplemented[T any](format string, args ...any) (*Response[T], error)
- func Ok[T any](body T) (*Response[T], error)
- func OkCreated(id uuid.UUID) (*Response[Created], error)
- func Unauthorized[T any](msg string, err error) (*Response[T], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoOpErrorConverter ¶
Types ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.