badoption

package
v0.6.0-alpha.23 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr netip.Addr

func (*Addr) Build

func (a *Addr) Build(defaultAddr netip.Addr) netip.Addr

func (*Addr) MarshalJSON

func (a *Addr) MarshalJSON() ([]byte, error)

func (*Addr) UnmarshalJSON

func (a *Addr) UnmarshalJSON(content []byte) error

type Duration

type Duration time.Duration

func (Duration) Build

func (d Duration) Build() time.Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(bytes []byte) error

type HTTPHeader

type HTTPHeader map[string]Listable[string]

func (HTTPHeader) Build

func (h HTTPHeader) Build() http.Header

type Listable

type Listable[T any] []T

func (Listable[T]) MarshalJSONContext

func (l Listable[T]) MarshalJSONContext(ctx context.Context) ([]byte, error)

func (*Listable[T]) UnmarshalJSONContext

func (l *Listable[T]) UnmarshalJSONContext(ctx context.Context, content []byte) error

type Prefix

type Prefix netip.Prefix

func (*Prefix) MarshalJSON

func (p *Prefix) MarshalJSON() ([]byte, error)

func (*Prefix) UnmarshalJSON

func (p *Prefix) UnmarshalJSON(content []byte) error

type Prefixable

type Prefixable netip.Prefix

func (*Prefixable) MarshalJSON

func (p *Prefixable) MarshalJSON() ([]byte, error)

func (*Prefixable) UnmarshalJSON

func (p *Prefixable) UnmarshalJSON(content []byte) error

type Regexp

type Regexp regexp.Regexp

func (*Regexp) Build

func (r *Regexp) Build() *regexp.Regexp

func (*Regexp) MarshalJSON

func (r *Regexp) MarshalJSON() ([]byte, error)

func (*Regexp) UnmarshalJSON

func (r *Regexp) UnmarshalJSON(content []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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