Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewAnyErrorWrapper[R any](ctx context.Context, ...) (*grapper.AnyErrorWrapper[R], error)
- func NewAnyErrorWrapperWithOptions[R any](ctx context.Context, options *Options, ...) (*grapper.AnyErrorWrapper[R], error)
- func NewAnyErrorWrapperWithPath[R any](ctx context.Context, path string, ...) (*grapper.AnyErrorWrapper[R], error)
- func NewAnyWrapper[R any](ctx context.Context, ...) (*grapper.AnyWrapper[R], error)
- func NewAnyWrapperWithOptions[R any](ctx context.Context, options *Options, ...) (*grapper.AnyWrapper[R], error)
- func NewAnyWrapperWithPath[R any](ctx context.Context, path string, ...) (*grapper.AnyWrapper[R], error)
- func NewErrorWrapper(ctx context.Context, ...) (*grapper.ErrorWrapper, error)
- func NewErrorWrapperWithOptions(ctx context.Context, options *Options, ...) (*grapper.ErrorWrapper, error)
- func NewErrorWrapperWithPath(ctx context.Context, path string, ...) (*grapper.ErrorWrapper, error)
- type Options
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewAnyErrorWrapper ¶ added in v1.3.2
func NewAnyErrorWrapperWithOptions ¶ added in v1.3.2
func NewAnyErrorWrapperWithPath ¶ added in v1.3.2
func NewAnyWrapper ¶ added in v1.3.2
func NewAnyWrapperWithOptions ¶ added in v1.3.2
func NewAnyWrapperWithPath ¶ added in v1.3.2
func NewErrorWrapper ¶ added in v1.3.2
func NewErrorWrapper(ctx context.Context, plugins ...func(ctx context.Context, name string) grapper.ErrorMiddleware) (*grapper.ErrorWrapper, error)
func NewErrorWrapperWithOptions ¶ added in v1.3.2
func NewErrorWrapperWithPath ¶ added in v1.3.2
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.