sr_pt

package
v0.9.0-alpha Latest Latest
Warning

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

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

Documentation

Overview

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

Contents: - 6 messages

Index

Constants

View Source
const (
	APIFile    = "sr_pt"
	APIVersion = "1.0.0"
	VersionCrc = 0x1fddedad
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

type RPCService interface {
	SrPtIfaceAdd(ctx context.Context, in *SrPtIfaceAdd) (*SrPtIfaceAddReply, error)
	SrPtIfaceDel(ctx context.Context, in *SrPtIfaceDel) (*SrPtIfaceDelReply, error)
	SrPtIfaceDump(ctx context.Context, in *SrPtIfaceDump) (RPCService_SrPtIfaceDumpClient, error)
}

RPCService defines RPC service sr_pt.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SrPtIfaceDumpClient

type RPCService_SrPtIfaceDumpClient interface {
	Recv() (*SrPtIfaceDetails, error)
	api.Stream
}

type SrPtIfaceAdd

type SrPtIfaceAdd struct {
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	ID          uint16                         `binapi:"u16,name=id" json:"id,omitempty"`
	IngressLoad uint8                          `binapi:"u8,name=ingress_load" json:"ingress_load,omitempty"`
	EgressLoad  uint8                          `binapi:"u8,name=egress_load" json:"egress_load,omitempty"`
	TtsTemplate uint8                          `binapi:"u8,name=tts_template" json:"tts_template,omitempty"`
}

SR PT iface add request

  • sw_if_index - index of the interface to add to SR PT
  • id - SR PT interface id
  • ingress_load - incoming interface load
  • egress_load - outgoing interface load
  • tts_template - truncated timestamp template to use

SrPtIfaceAdd defines message 'sr_pt_iface_add'.

func (*SrPtIfaceAdd) GetCrcString

func (*SrPtIfaceAdd) GetCrcString() string

func (*SrPtIfaceAdd) GetMessageName

func (*SrPtIfaceAdd) GetMessageName() string

func (*SrPtIfaceAdd) GetMessageType

func (*SrPtIfaceAdd) GetMessageType() api.MessageType

func (*SrPtIfaceAdd) Marshal

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

func (*SrPtIfaceAdd) Reset

func (m *SrPtIfaceAdd) Reset()

func (*SrPtIfaceAdd) Size

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

func (*SrPtIfaceAdd) Unmarshal

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

type SrPtIfaceAddReply

type SrPtIfaceAddReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SrPtIfaceAddReply defines message 'sr_pt_iface_add_reply'.

func (*SrPtIfaceAddReply) GetCrcString

func (*SrPtIfaceAddReply) GetCrcString() string

func (*SrPtIfaceAddReply) GetMessageName

func (*SrPtIfaceAddReply) GetMessageName() string

func (*SrPtIfaceAddReply) GetMessageType

func (*SrPtIfaceAddReply) GetMessageType() api.MessageType

func (*SrPtIfaceAddReply) Marshal

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

func (*SrPtIfaceAddReply) Reset

func (m *SrPtIfaceAddReply) Reset()

func (*SrPtIfaceAddReply) Size

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

func (*SrPtIfaceAddReply) Unmarshal

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

type SrPtIfaceDel

type SrPtIfaceDel struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

SR PT iface del request

  • sw_if_index - index of the interface to delete from SR PT

SrPtIfaceDel defines message 'sr_pt_iface_del'.

func (*SrPtIfaceDel) GetCrcString

func (*SrPtIfaceDel) GetCrcString() string

func (*SrPtIfaceDel) GetMessageName

func (*SrPtIfaceDel) GetMessageName() string

func (*SrPtIfaceDel) GetMessageType

func (*SrPtIfaceDel) GetMessageType() api.MessageType

func (*SrPtIfaceDel) Marshal

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

func (*SrPtIfaceDel) Reset

func (m *SrPtIfaceDel) Reset()

func (*SrPtIfaceDel) Size

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

func (*SrPtIfaceDel) Unmarshal

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

type SrPtIfaceDelReply

type SrPtIfaceDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SrPtIfaceDelReply defines message 'sr_pt_iface_del_reply'.

func (*SrPtIfaceDelReply) GetCrcString

func (*SrPtIfaceDelReply) GetCrcString() string

func (*SrPtIfaceDelReply) GetMessageName

func (*SrPtIfaceDelReply) GetMessageName() string

func (*SrPtIfaceDelReply) GetMessageType

func (*SrPtIfaceDelReply) GetMessageType() api.MessageType

func (*SrPtIfaceDelReply) Marshal

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

func (*SrPtIfaceDelReply) Reset

func (m *SrPtIfaceDelReply) Reset()

func (*SrPtIfaceDelReply) Size

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

func (*SrPtIfaceDelReply) Unmarshal

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

type SrPtIfaceDetails

type SrPtIfaceDetails struct {
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	ID          uint16                         `binapi:"u16,name=id" json:"id,omitempty"`
	IngressLoad uint8                          `binapi:"u8,name=ingress_load" json:"ingress_load,omitempty"`
	EgressLoad  uint8                          `binapi:"u8,name=egress_load" json:"egress_load,omitempty"`
	TtsTemplate uint8                          `binapi:"u8,name=tts_template" json:"tts_template,omitempty"`
}

SrPtIfaceDetails defines message 'sr_pt_iface_details'.

func (*SrPtIfaceDetails) GetCrcString

func (*SrPtIfaceDetails) GetCrcString() string

func (*SrPtIfaceDetails) GetMessageName

func (*SrPtIfaceDetails) GetMessageName() string

func (*SrPtIfaceDetails) GetMessageType

func (*SrPtIfaceDetails) GetMessageType() api.MessageType

func (*SrPtIfaceDetails) Marshal

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

func (*SrPtIfaceDetails) Reset

func (m *SrPtIfaceDetails) Reset()

func (*SrPtIfaceDetails) Size

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

func (*SrPtIfaceDetails) Unmarshal

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

type SrPtIfaceDump

type SrPtIfaceDump struct{}

SR PT iface dump request SrPtIfaceDump defines message 'sr_pt_iface_dump'.

func (*SrPtIfaceDump) GetCrcString

func (*SrPtIfaceDump) GetCrcString() string

func (*SrPtIfaceDump) GetMessageName

func (*SrPtIfaceDump) GetMessageName() string

func (*SrPtIfaceDump) GetMessageType

func (*SrPtIfaceDump) GetMessageType() api.MessageType

func (*SrPtIfaceDump) Marshal

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

func (*SrPtIfaceDump) Reset

func (m *SrPtIfaceDump) Reset()

func (*SrPtIfaceDump) Size

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

func (*SrPtIfaceDump) Unmarshal

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

Jump to

Keyboard shortcuts

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