json

package
v1.14.0-beta.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func Register

func Register(ctx context.Context, options *fiber.Options) (fiber.ConfigPlugin, fiber.AppPlugin)

Register registers a new goccy/go-json plugin for fiber.

Types

type Json

type Json struct {
	// contains filtered or unexported fields
}

Json represents a goccy/go-json plugin for fiber.

func NewJson

func NewJson() *Json

NewJson returns a new goccy/go-json plugin with default options.

func NewJsonWithConfigPath

func NewJsonWithConfigPath(path string) (*Json, error)

NewJsonWithConfigPath returns a new goccy/go-json plugin with options from config path.

func NewJsonWithOptions

func NewJsonWithOptions(options *Options) *Json

NewJsonWithOptions returns a new goccy/go-json plugin with options.

func (*Json) Register

func (i *Json) Register(ctx context.Context, options *fiber.Options) (fiber.ConfigPlugin, fiber.AppPlugin)

Register registers this goccy/go-json plugin for fiber.

type Options

type Options struct {
	Enabled bool
}

Options represents goccy/go-json plugin for fiber options.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

NewOptionsWithPath unmarshals a given key path into options and returns it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL