cfgcommon

package
v4.0.0-...-960decf Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigureLoadingContext

func NewConfigureLoadingContext(ctx context.Context) context.Context

func SetGeoDataLoader

func SetGeoDataLoader(ctx context.Context, loader geodata.Loader)

Types

type Address

type Address struct {
	net.Address
}

func (*Address) Build

func (v *Address) Build() *net.IPOrDomain

func (*Address) UnmarshalJSON

func (v *Address) UnmarshalJSON(data []byte) error

type ConfigureLoadingEnvironment

type ConfigureLoadingEnvironment interface {
	GetGeoLoader() geodata.Loader
}

func GetConfigureLoadingEnvironment

func GetConfigureLoadingEnvironment(ctx context.Context) ConfigureLoadingEnvironment

type Network

type Network string

func (Network) Build

func (v Network) Build() net.Network

type NetworkList

type NetworkList []Network

func (*NetworkList) Build

func (v *NetworkList) Build() []net.Network

func (*NetworkList) UnmarshalJSON

func (v *NetworkList) UnmarshalJSON(data []byte) error

type PortList

type PortList struct {
	Range []PortRange
}

func (*PortList) Build

func (list *PortList) Build() *net.PortList

func (*PortList) UnmarshalJSON

func (list *PortList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements encoding/json.Unmarshaler.UnmarshalJSON

type PortRange

type PortRange struct {
	From uint32
	To   uint32
}

func (*PortRange) Build

func (v *PortRange) Build() *net.PortRange

func (*PortRange) UnmarshalJSON

func (v *PortRange) UnmarshalJSON(data []byte) error

UnmarshalJSON implements encoding/json.Unmarshaler.UnmarshalJSON

type StringList

type StringList []string

func NewStringList

func NewStringList(raw []string) *StringList

func (StringList) Len

func (v StringList) Len() int

func (*StringList) UnmarshalJSON

func (v *StringList) UnmarshalJSON(data []byte) error

type User

type User struct {
	EmailString string `json:"email"`
	LevelByte   byte   `json:"level"`
}

func (*User) Build

func (v *User) Build() *protocol.User

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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