network

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkMode

type NetworkMode uint8
const (
	NetworkTCP NetworkMode = iota
	NetworkTCPIPv4
	NetworkTCPIPv6
	NetworkUnixSocket
)

func NetworkModeFromInt

func NetworkModeFromInt(i int64) NetworkMode

func NetworkModeFromString

func NetworkModeFromString(str string) NetworkMode

func (NetworkMode) Int

func (n NetworkMode) Int() int64

func (NetworkMode) MarshalJSON

func (n NetworkMode) MarshalJSON() ([]byte, error)

func (NetworkMode) String

func (n NetworkMode) String() string

func (*NetworkMode) UnmarshalJSON

func (n *NetworkMode) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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