protocol

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol int
const (
	TCP Protocol = iota
	UDP
	ARP
)

func ParseProtocol added in v2.3.5

func ParseProtocol(s string) Protocol

func (Protocol) MarshalJSON

func (p Protocol) MarshalJSON() ([]byte, error)

func (Protocol) String

func (p Protocol) String() string

func (*Protocol) UnmarshalJSON added in v2.3.5

func (p *Protocol) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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