example

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidSample = errors.New("invalid Sample type")
View Source
var InvalidScheme = errors.New("invalid Scheme type")

Functions

This section is empty.

Types

type PullPolicy

type PullPolicy string
const (
	PullAlways       PullPolicy = "Always"
	PullNever        PullPolicy = "Never"
	PullIfNotPresent PullPolicy = "IfNotPresent"
)

type Sample

type Sample uint8
const (
	SAMPLE_UNKNOWN Sample = iota
	SAMPLE__XXX           // 样例XXX
	SAMPLE__YYY           // 样例YYY
	SAMPLE__ZZZ           // 样例ZZZ
)

func ParseSampleFromLabel

func ParseSampleFromLabel(s string) (Sample, error)

func ParseSampleFromString

func ParseSampleFromString(s string) (Sample, error)

func (Sample) ConstValues

func (v Sample) ConstValues() []enum.IntStringerEnum

func (Sample) Int

func (v Sample) Int() int

func (Sample) Label

func (v Sample) Label() string

func (Sample) MarshalText

func (v Sample) MarshalText() ([]byte, error)

func (*Sample) Scan

func (v *Sample) Scan(src interface{}) error

func (Sample) String

func (v Sample) String() string

func (Sample) TypeName

func (v Sample) TypeName() string

func (*Sample) UnmarshalText

func (v *Sample) UnmarshalText(data []byte) error

func (Sample) Value

func (v Sample) Value() (driver.Value, error)

type Scheme

type Scheme int
const (
	SCHEME_UNKNOWN Scheme = iota
	SCHEME__HTTP          // http
	SCHEME__HTTPS         // https

	SCHEME__TCP
	SCHEME__UDP
	SCHEME__QUIC
)

func ParseSchemeFromLabel

func ParseSchemeFromLabel(s string) (Scheme, error)

func ParseSchemeFromString

func ParseSchemeFromString(s string) (Scheme, error)

func (Scheme) ConstValues

func (v Scheme) ConstValues() []enum.IntStringerEnum

func (Scheme) Int

func (v Scheme) Int() int

func (Scheme) Label

func (v Scheme) Label() string

func (Scheme) MarshalText

func (v Scheme) MarshalText() ([]byte, error)

func (Scheme) Offset

func (Scheme) Offset() int

func (*Scheme) Scan

func (v *Scheme) Scan(src interface{}) error

func (Scheme) String

func (v Scheme) String() string

func (Scheme) TypeName

func (v Scheme) TypeName() string

func (*Scheme) UnmarshalText

func (v *Scheme) UnmarshalText(data []byte) error

func (Scheme) Value

func (v Scheme) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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