common

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

View Source
const (
	MinMTU = 1280
	MaxMTU = (1 << 16) - 1
	// SupportedMTU is the MTU supported by dispatcher/snet and router.
	// Smaller than MaxMTU to avoid excessive overallocation for packet buffers.
	// It's chosen as a common ethernet jumbo frame size minus IP/UDP headers.
	SupportedMTU = 9216 - 20 - 8
	TimeFmt      = "2006-01-02 15:04:05.000000-0700"
	TimeFmtSecs  = "2006-01-02 15:04:05-0700"
)

Variables

This section is empty.

Functions

func TypeOf

func TypeOf(v interface{}) string

Types

type ErrMsg deprecated

type ErrMsg string

Deprecated: ErrMsg is not useful. It mimics errors.New() but fails to return a singleton. Just use errors.New() if you need cheap sentinel errors.

func (ErrMsg) Error

func (e ErrMsg) Error() string

Jump to

Keyboard shortcuts

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