policer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Contents:

4 messages

Index

Constants

View Source
const (
	APIFile    = "policer"
	APIVersion = "1.0.0"
	VersionCrc = 0x4218ed4f
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type PolicerAddDel

type PolicerAddDel struct {
	IsAdd             uint8  `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	Name              []byte `binapi:"u8[64],name=name" json:"name,omitempty"`
	Cir               uint32 `binapi:"u32,name=cir" json:"cir,omitempty"`
	Eir               uint32 `binapi:"u32,name=eir" json:"eir,omitempty"`
	Cb                uint64 `binapi:"u64,name=cb" json:"cb,omitempty"`
	Eb                uint64 `binapi:"u64,name=eb" json:"eb,omitempty"`
	RateType          uint8  `binapi:"u8,name=rate_type" json:"rate_type,omitempty"`
	RoundType         uint8  `binapi:"u8,name=round_type" json:"round_type,omitempty"`
	Type              uint8  `binapi:"u8,name=type" json:"type,omitempty"`
	ColorAware        uint8  `binapi:"u8,name=color_aware" json:"color_aware,omitempty"`
	ConformActionType uint8  `binapi:"u8,name=conform_action_type" json:"conform_action_type,omitempty"`
	ConformDscp       uint8  `binapi:"u8,name=conform_dscp" json:"conform_dscp,omitempty"`
	ExceedActionType  uint8  `binapi:"u8,name=exceed_action_type" json:"exceed_action_type,omitempty"`
	ExceedDscp        uint8  `binapi:"u8,name=exceed_dscp" json:"exceed_dscp,omitempty"`
	ViolateActionType uint8  `binapi:"u8,name=violate_action_type" json:"violate_action_type,omitempty"`
	ViolateDscp       uint8  `binapi:"u8,name=violate_dscp" json:"violate_dscp,omitempty"`
}

PolicerAddDel defines message 'policer_add_del'.

func (*PolicerAddDel) GetCrcString

func (*PolicerAddDel) GetCrcString() string

func (*PolicerAddDel) GetMessageName

func (*PolicerAddDel) GetMessageName() string

func (*PolicerAddDel) GetMessageType

func (*PolicerAddDel) GetMessageType() api.MessageType

func (*PolicerAddDel) Marshal

func (m *PolicerAddDel) Marshal(b []byte) ([]byte, error)

func (*PolicerAddDel) Reset

func (m *PolicerAddDel) Reset()

func (*PolicerAddDel) Size

func (m *PolicerAddDel) Size() (size int)

func (*PolicerAddDel) Unmarshal

func (m *PolicerAddDel) Unmarshal(b []byte) error

type PolicerAddDelReply

type PolicerAddDelReply struct {
	Retval       int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
}

PolicerAddDelReply defines message 'policer_add_del_reply'.

func (*PolicerAddDelReply) GetCrcString

func (*PolicerAddDelReply) GetCrcString() string

func (*PolicerAddDelReply) GetMessageName

func (*PolicerAddDelReply) GetMessageName() string

func (*PolicerAddDelReply) GetMessageType

func (*PolicerAddDelReply) GetMessageType() api.MessageType

func (*PolicerAddDelReply) Marshal

func (m *PolicerAddDelReply) Marshal(b []byte) ([]byte, error)

func (*PolicerAddDelReply) Reset

func (m *PolicerAddDelReply) Reset()

func (*PolicerAddDelReply) Size

func (m *PolicerAddDelReply) Size() (size int)

func (*PolicerAddDelReply) Unmarshal

func (m *PolicerAddDelReply) Unmarshal(b []byte) error

type PolicerDetails

type PolicerDetails struct {
	Name               []byte `binapi:"u8[64],name=name" json:"name,omitempty"`
	Cir                uint32 `binapi:"u32,name=cir" json:"cir,omitempty"`
	Eir                uint32 `binapi:"u32,name=eir" json:"eir,omitempty"`
	Cb                 uint64 `binapi:"u64,name=cb" json:"cb,omitempty"`
	Eb                 uint64 `binapi:"u64,name=eb" json:"eb,omitempty"`
	RateType           uint8  `binapi:"u8,name=rate_type" json:"rate_type,omitempty"`
	RoundType          uint8  `binapi:"u8,name=round_type" json:"round_type,omitempty"`
	Type               uint8  `binapi:"u8,name=type" json:"type,omitempty"`
	ConformActionType  uint8  `binapi:"u8,name=conform_action_type" json:"conform_action_type,omitempty"`
	ConformDscp        uint8  `binapi:"u8,name=conform_dscp" json:"conform_dscp,omitempty"`
	ExceedActionType   uint8  `binapi:"u8,name=exceed_action_type" json:"exceed_action_type,omitempty"`
	ExceedDscp         uint8  `binapi:"u8,name=exceed_dscp" json:"exceed_dscp,omitempty"`
	ViolateActionType  uint8  `binapi:"u8,name=violate_action_type" json:"violate_action_type,omitempty"`
	ViolateDscp        uint8  `binapi:"u8,name=violate_dscp" json:"violate_dscp,omitempty"`
	SingleRate         uint8  `binapi:"u8,name=single_rate" json:"single_rate,omitempty"`
	ColorAware         uint8  `binapi:"u8,name=color_aware" json:"color_aware,omitempty"`
	Scale              uint32 `binapi:"u32,name=scale" json:"scale,omitempty"`
	CirTokensPerPeriod uint32 `binapi:"u32,name=cir_tokens_per_period" json:"cir_tokens_per_period,omitempty"`
	PirTokensPerPeriod uint32 `binapi:"u32,name=pir_tokens_per_period" json:"pir_tokens_per_period,omitempty"`
	CurrentLimit       uint32 `binapi:"u32,name=current_limit" json:"current_limit,omitempty"`
	CurrentBucket      uint32 `binapi:"u32,name=current_bucket" json:"current_bucket,omitempty"`
	ExtendedLimit      uint32 `binapi:"u32,name=extended_limit" json:"extended_limit,omitempty"`
	ExtendedBucket     uint32 `binapi:"u32,name=extended_bucket" json:"extended_bucket,omitempty"`
	LastUpdateTime     uint64 `binapi:"u64,name=last_update_time" json:"last_update_time,omitempty"`
}

PolicerDetails defines message 'policer_details'.

func (*PolicerDetails) GetCrcString

func (*PolicerDetails) GetCrcString() string

func (*PolicerDetails) GetMessageName

func (*PolicerDetails) GetMessageName() string

func (*PolicerDetails) GetMessageType

func (*PolicerDetails) GetMessageType() api.MessageType

func (*PolicerDetails) Marshal

func (m *PolicerDetails) Marshal(b []byte) ([]byte, error)

func (*PolicerDetails) Reset

func (m *PolicerDetails) Reset()

func (*PolicerDetails) Size

func (m *PolicerDetails) Size() (size int)

func (*PolicerDetails) Unmarshal

func (m *PolicerDetails) Unmarshal(b []byte) error

type PolicerDump

type PolicerDump struct {
	MatchNameValid uint8  `binapi:"u8,name=match_name_valid" json:"match_name_valid,omitempty"`
	MatchName      []byte `binapi:"u8[64],name=match_name" json:"match_name,omitempty"`
}

PolicerDump defines message 'policer_dump'.

func (*PolicerDump) GetCrcString

func (*PolicerDump) GetCrcString() string

func (*PolicerDump) GetMessageName

func (*PolicerDump) GetMessageName() string

func (*PolicerDump) GetMessageType

func (*PolicerDump) GetMessageType() api.MessageType

func (*PolicerDump) Marshal

func (m *PolicerDump) Marshal(b []byte) ([]byte, error)

func (*PolicerDump) Reset

func (m *PolicerDump) Reset()

func (*PolicerDump) Size

func (m *PolicerDump) Size() (size int)

func (*PolicerDump) Unmarshal

func (m *PolicerDump) Unmarshal(b []byte) error

type RPCService

type RPCService interface {
	PolicerAddDel(ctx context.Context, in *PolicerAddDel) (*PolicerAddDelReply, error)
	PolicerDump(ctx context.Context, in *PolicerDump) (RPCService_PolicerDumpClient, error)
}

RPCService defines RPC service policer.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_PolicerDumpClient

type RPCService_PolicerDumpClient interface {
	Recv() (*PolicerDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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