common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectionType

type DirectionType int
const (
	DirectionTypeIn DirectionType = iota
	DirectionTypeOut
)

func (DirectionType) MarshalJSON

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

MarshalJSON returns the string representation of DirectionType

func (*DirectionType) UnmarshalJSON

func (d *DirectionType) UnmarshalJSON(b []byte) error

UnmarshalJSON returns the appropriate DirectionType for parsed string

type RoleType

type RoleType int

RoleType

const (
	RoleNormal RoleType = iota
	RoleInterRouter
	RoleRouteContainer
	RoleEdge
)

func (RoleType) MarshalJSON

func (a RoleType) MarshalJSON() ([]byte, error)

MarshalJSON returns the string representation of RoleType

func (*RoleType) UnmarshalJSON

func (a *RoleType) UnmarshalJSON(b []byte) error

UnmarshalJSON returns the appropriate RoleType for parsed string

type SocketAddressFamilyType

type SocketAddressFamilyType int

SocketAddressFamilyType

const (
	SocketAddressFamilyIPv4 SocketAddressFamilyType = iota
	SocketAddressFamilyIPv6
)

func (SocketAddressFamilyType) MarshalJSON

func (a SocketAddressFamilyType) MarshalJSON() ([]byte, error)

MarshalJSON returns the string representation of SocketAddressFamilyType

func (*SocketAddressFamilyType) UnmarshalJSON

func (a *SocketAddressFamilyType) UnmarshalJSON(b []byte) error

UnmarshalJSON returns the appropriate SocketAddressFamilyType for parsed string

Jump to

Keyboard shortcuts

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