Documentation ¶
Overview ¶
Package sr_pt contains generated bindings for API file sr_pt.api.
Contents: - 6 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type RPCService_SrPtIfaceDumpClient
- type SrPtIfaceAdd
- func (*SrPtIfaceAdd) GetCrcString() string
- func (*SrPtIfaceAdd) GetMessageName() string
- func (*SrPtIfaceAdd) GetMessageType() api.MessageType
- func (m *SrPtIfaceAdd) Marshal(b []byte) ([]byte, error)
- func (m *SrPtIfaceAdd) Reset()
- func (m *SrPtIfaceAdd) Size() (size int)
- func (m *SrPtIfaceAdd) Unmarshal(b []byte) error
- type SrPtIfaceAddReply
- func (*SrPtIfaceAddReply) GetCrcString() string
- func (*SrPtIfaceAddReply) GetMessageName() string
- func (*SrPtIfaceAddReply) GetMessageType() api.MessageType
- func (m *SrPtIfaceAddReply) Marshal(b []byte) ([]byte, error)
- func (m *SrPtIfaceAddReply) Reset()
- func (m *SrPtIfaceAddReply) Size() (size int)
- func (m *SrPtIfaceAddReply) Unmarshal(b []byte) error
- type SrPtIfaceDel
- func (*SrPtIfaceDel) GetCrcString() string
- func (*SrPtIfaceDel) GetMessageName() string
- func (*SrPtIfaceDel) GetMessageType() api.MessageType
- func (m *SrPtIfaceDel) Marshal(b []byte) ([]byte, error)
- func (m *SrPtIfaceDel) Reset()
- func (m *SrPtIfaceDel) Size() (size int)
- func (m *SrPtIfaceDel) Unmarshal(b []byte) error
- type SrPtIfaceDelReply
- func (*SrPtIfaceDelReply) GetCrcString() string
- func (*SrPtIfaceDelReply) GetMessageName() string
- func (*SrPtIfaceDelReply) GetMessageType() api.MessageType
- func (m *SrPtIfaceDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrPtIfaceDelReply) Reset()
- func (m *SrPtIfaceDelReply) Size() (size int)
- func (m *SrPtIfaceDelReply) Unmarshal(b []byte) error
- type SrPtIfaceDetails
- func (*SrPtIfaceDetails) GetCrcString() string
- func (*SrPtIfaceDetails) GetMessageName() string
- func (*SrPtIfaceDetails) GetMessageType() api.MessageType
- func (m *SrPtIfaceDetails) Marshal(b []byte) ([]byte, error)
- func (m *SrPtIfaceDetails) Reset()
- func (m *SrPtIfaceDetails) Size() (size int)
- func (m *SrPtIfaceDetails) Unmarshal(b []byte) error
- type SrPtIfaceDump
- func (*SrPtIfaceDump) GetCrcString() string
- func (*SrPtIfaceDump) GetMessageName() string
- func (*SrPtIfaceDump) GetMessageType() api.MessageType
- func (m *SrPtIfaceDump) Marshal(b []byte) ([]byte, error)
- func (m *SrPtIfaceDump) Reset()
- func (m *SrPtIfaceDump) Size() (size int)
- func (m *SrPtIfaceDump) Unmarshal(b []byte) error
Constants ¶
View Source
const ( APIFile = "sr_pt" APIVersion = "1.0.0" VersionCrc = 0x1fddedad )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
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) 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) 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) 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) 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) 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) Reset ¶
func (m *SrPtIfaceDump) Reset()
func (*SrPtIfaceDump) Size ¶
func (m *SrPtIfaceDump) Size() (size int)
func (*SrPtIfaceDump) Unmarshal ¶
func (m *SrPtIfaceDump) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.