Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewAnyErrorWrapper[R any](ctx context.Context, ...) (*middleware.AnyErrorWrapper[R], error)
- func NewAnyErrorWrapperWithOptions[R any](ctx context.Context, options *Options, ...) (*middleware.AnyErrorWrapper[R], error)
- func NewAnyErrorWrapperWithPath[R any](ctx context.Context, path string, ...) (*middleware.AnyErrorWrapper[R], error)
- func NewAnyWrapper[R any](ctx context.Context, ...) (*middleware.AnyWrapper[R], error)
- func NewAnyWrapperWithOptions[R any](ctx context.Context, options *Options, ...) (*middleware.AnyWrapper[R], error)
- func NewAnyWrapperWithPath[R any](ctx context.Context, path string, ...) (*middleware.AnyWrapper[R], error)
- func NewErrorWrapper(ctx context.Context, ...) (*middleware.ErrorWrapper, error)
- func NewErrorWrapperWithOptions(ctx context.Context, options *Options, ...) (*middleware.ErrorWrapper, error)
- func NewErrorWrapperWithPath(ctx context.Context, path string, ...) (*middleware.ErrorWrapper, error)
- type Options
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewAnyErrorWrapper ¶
func NewAnyErrorWrapper[R any](ctx context.Context, plugins ...func(ctx context.Context, name string) middleware.AnyErrorMiddleware[R]) (*middleware.AnyErrorWrapper[R], error)
func NewAnyErrorWrapperWithOptions ¶
func NewAnyErrorWrapperWithOptions[R any](ctx context.Context, options *Options, plugins ...func(ctx context.Context, name string) middleware.AnyErrorMiddleware[R]) (*middleware.AnyErrorWrapper[R], error)
func NewAnyErrorWrapperWithPath ¶
func NewAnyErrorWrapperWithPath[R any](ctx context.Context, path string, plugins ...func(ctx context.Context, name string) middleware.AnyErrorMiddleware[R]) (*middleware.AnyErrorWrapper[R], error)
func NewAnyWrapper ¶
func NewAnyWrapper[R any](ctx context.Context, plugins ...func(ctx context.Context, name string) middleware.AnyMiddleware[R]) (*middleware.AnyWrapper[R], error)
func NewAnyWrapperWithOptions ¶
func NewAnyWrapperWithOptions[R any](ctx context.Context, options *Options, plugins ...func(ctx context.Context, name string) middleware.AnyMiddleware[R]) (*middleware.AnyWrapper[R], error)
func NewAnyWrapperWithPath ¶
func NewAnyWrapperWithPath[R any](ctx context.Context, path string, plugins ...func(ctx context.Context, name string) middleware.AnyMiddleware[R]) (*middleware.AnyWrapper[R], error)
func NewErrorWrapper ¶
func NewErrorWrapper(ctx context.Context, plugins ...func(ctx context.Context, name string) middleware.ErrorMiddleware) (*middleware.ErrorWrapper, error)
func NewErrorWrapperWithOptions ¶
func NewErrorWrapperWithOptions(ctx context.Context, options *Options, plugins ...func(ctx context.Context, name string) middleware.ErrorMiddleware) (*middleware.ErrorWrapper, error)
func NewErrorWrapperWithPath ¶
func NewErrorWrapperWithPath(ctx context.Context, path string, plugins ...func(ctx context.Context, name string) middleware.ErrorMiddleware) (*middleware.ErrorWrapper, error)
Types ¶
type Options ¶
type Options struct {
Name string
}
Options struct which represents cors plugin from chi options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.