policer_types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package policer_types contains generated bindings for API file policer_types.api.

Contents:

4 enums
1 struct

Index

Constants

View Source
const (
	APIFile    = "policer_types"
	APIVersion = "1.0.0"
	VersionCrc = 0xae54624b
)

Variables

View Source
var (
	Sse2QosActionType_name = map[uint8]string{
		0: "SSE2_QOS_ACTION_API_DROP",
		1: "SSE2_QOS_ACTION_API_TRANSMIT",
		2: "SSE2_QOS_ACTION_API_MARK_AND_TRANSMIT",
	}
	Sse2QosActionType_value = map[string]uint8{
		"SSE2_QOS_ACTION_API_DROP":              0,
		"SSE2_QOS_ACTION_API_TRANSMIT":          1,
		"SSE2_QOS_ACTION_API_MARK_AND_TRANSMIT": 2,
	}
)
View Source
var (
	Sse2QosPolicerType_name = map[uint8]string{
		0: "SSE2_QOS_POLICER_TYPE_API_1R2C",
		1: "SSE2_QOS_POLICER_TYPE_API_1R3C_RFC_2697",
		2: "SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_2698",
		3: "SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_4115",
		4: "SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_MEF5CF1",
		5: "SSE2_QOS_POLICER_TYPE_API_MAX",
	}
	Sse2QosPolicerType_value = map[string]uint8{
		"SSE2_QOS_POLICER_TYPE_API_1R2C":             0,
		"SSE2_QOS_POLICER_TYPE_API_1R3C_RFC_2697":    1,
		"SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_2698":    2,
		"SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_4115":    3,
		"SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_MEF5CF1": 4,
		"SSE2_QOS_POLICER_TYPE_API_MAX":              5,
	}
)
View Source
var (
	Sse2QosRateType_name = map[uint8]string{
		0: "SSE2_QOS_RATE_API_KBPS",
		1: "SSE2_QOS_RATE_API_PPS",
		2: "SSE2_QOS_RATE_API_INVALID",
	}
	Sse2QosRateType_value = map[string]uint8{
		"SSE2_QOS_RATE_API_KBPS":    0,
		"SSE2_QOS_RATE_API_PPS":     1,
		"SSE2_QOS_RATE_API_INVALID": 2,
	}
)
View Source
var (
	Sse2QosRoundType_name = map[uint8]string{
		0: "SSE2_QOS_ROUND_API_TO_CLOSEST",
		1: "SSE2_QOS_ROUND_API_TO_UP",
		2: "SSE2_QOS_ROUND_API_TO_DOWN",
		3: "SSE2_QOS_ROUND_API_INVALID",
	}
	Sse2QosRoundType_value = map[string]uint8{
		"SSE2_QOS_ROUND_API_TO_CLOSEST": 0,
		"SSE2_QOS_ROUND_API_TO_UP":      1,
		"SSE2_QOS_ROUND_API_TO_DOWN":    2,
		"SSE2_QOS_ROUND_API_INVALID":    3,
	}
)

Functions

This section is empty.

Types

type Sse2QosAction

type Sse2QosAction struct {
	Type Sse2QosActionType `binapi:"sse2_qos_action_type,name=type" json:"type,omitempty"`
	Dscp uint8             `binapi:"u8,name=dscp" json:"dscp,omitempty"`
}

Sse2QosAction defines type 'sse2_qos_action'.

type Sse2QosActionType

type Sse2QosActionType uint8

Sse2QosActionType defines enum 'sse2_qos_action_type'.

const (
	SSE2_QOS_ACTION_API_DROP              Sse2QosActionType = 0
	SSE2_QOS_ACTION_API_TRANSMIT          Sse2QosActionType = 1
	SSE2_QOS_ACTION_API_MARK_AND_TRANSMIT Sse2QosActionType = 2
)

func (Sse2QosActionType) String

func (x Sse2QosActionType) String() string

type Sse2QosPolicerType

type Sse2QosPolicerType uint8

Sse2QosPolicerType defines enum 'sse2_qos_policer_type'.

const (
	SSE2_QOS_POLICER_TYPE_API_1R2C             Sse2QosPolicerType = 0
	SSE2_QOS_POLICER_TYPE_API_1R3C_RFC_2697    Sse2QosPolicerType = 1
	SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_2698    Sse2QosPolicerType = 2
	SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_4115    Sse2QosPolicerType = 3
	SSE2_QOS_POLICER_TYPE_API_2R3C_RFC_MEF5CF1 Sse2QosPolicerType = 4
	SSE2_QOS_POLICER_TYPE_API_MAX              Sse2QosPolicerType = 5
)

func (Sse2QosPolicerType) String

func (x Sse2QosPolicerType) String() string

type Sse2QosRateType

type Sse2QosRateType uint8

Sse2QosRateType defines enum 'sse2_qos_rate_type'.

const (
	SSE2_QOS_RATE_API_KBPS    Sse2QosRateType = 0
	SSE2_QOS_RATE_API_PPS     Sse2QosRateType = 1
	SSE2_QOS_RATE_API_INVALID Sse2QosRateType = 2
)

func (Sse2QosRateType) String

func (x Sse2QosRateType) String() string

type Sse2QosRoundType

type Sse2QosRoundType uint8

Sse2QosRoundType defines enum 'sse2_qos_round_type'.

const (
	SSE2_QOS_ROUND_API_TO_CLOSEST Sse2QosRoundType = 0
	SSE2_QOS_ROUND_API_TO_UP      Sse2QosRoundType = 1
	SSE2_QOS_ROUND_API_TO_DOWN    Sse2QosRoundType = 2
	SSE2_QOS_ROUND_API_INVALID    Sse2QosRoundType = 3
)

func (Sse2QosRoundType) String

func (x Sse2QosRoundType) String() string

Jump to

Keyboard shortcuts

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