policer

package
v0.0.0-...-f91f7f2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package policer is a generated VPP binary API for 'policer' module.

It consists of:

4 messages
2 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "policer"
	// VersionCrc is the CRC of this module.
	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
	Name              []byte `struc:"[64]byte"`
	Cir               uint32
	Eir               uint32
	Cb                uint64
	Eb                uint64
	RateType          uint8
	RoundType         uint8
	Type              uint8
	ColorAware        uint8
	ConformActionType uint8
	ConformDscp       uint8
	ExceedActionType  uint8
	ExceedDscp        uint8
	ViolateActionType uint8
	ViolateDscp       uint8
}

PolicerAddDel represents VPP binary API 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) Reset

func (m *PolicerAddDel) Reset()

type PolicerAddDelReply

type PolicerAddDelReply struct {
	Retval       int32
	PolicerIndex uint32
}

PolicerAddDelReply represents VPP binary API 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) Reset

func (m *PolicerAddDelReply) Reset()

type PolicerDetails

type PolicerDetails struct {
	Name               []byte `struc:"[64]byte"`
	Cir                uint32
	Eir                uint32
	Cb                 uint64
	Eb                 uint64
	RateType           uint8
	RoundType          uint8
	Type               uint8
	ConformActionType  uint8
	ConformDscp        uint8
	ExceedActionType   uint8
	ExceedDscp         uint8
	ViolateActionType  uint8
	ViolateDscp        uint8
	SingleRate         uint8
	ColorAware         uint8
	Scale              uint32
	CirTokensPerPeriod uint32
	PirTokensPerPeriod uint32
	CurrentLimit       uint32
	CurrentBucket      uint32
	ExtendedLimit      uint32
	ExtendedBucket     uint32
	LastUpdateTime     uint64
}

PolicerDetails represents VPP binary API 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) Reset

func (m *PolicerDetails) Reset()

type PolicerDump

type PolicerDump struct {
	MatchNameValid uint8
	MatchName      []byte `struc:"[64]byte"`
}

PolicerDump represents VPP binary API 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) Reset

func (m *PolicerDump) Reset()

type RPCService

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

RPCService represents RPC service API for policer module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpPolicerClient

type RPCService_DumpPolicerClient interface {
	Recv() (*PolicerDetails, error)
}

Jump to

Keyboard shortcuts

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