cfgcommon

package
v5.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 10 Imported by: 15

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 Buildable

type Buildable interface {
	Build() (proto.Message, error)
}

type BuildableV5

type BuildableV5 interface {
	BuildV5(ctx context.Context) (proto.Message, error)
}

type ConfigureLoadingEnvironment

type ConfigureLoadingEnvironment interface {
	ConfigureLoadingEnvironmentCapabilitySet
	// contains filtered or unexported methods
}

func GetConfigureLoadingEnvironment

func GetConfigureLoadingEnvironment(ctx context.Context) ConfigureLoadingEnvironment

type ConfigureLoadingEnvironmentCapabilitySet

type ConfigureLoadingEnvironmentCapabilitySet interface {
	GetGeoLoader() geodata.Loader
}

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

func (*PortList) UnmarshalText

func (list *PortList) UnmarshalText(listStr string) error

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