Documentation ¶
Overview ¶
Package span contains generated bindings for API file span.api.
Contents: - 1 enum - 4 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type RPCService_SwInterfaceSpanDumpClient
- type SpanState
- type SwInterfaceSpanDetails
- func (*SwInterfaceSpanDetails) GetCrcString() string
- func (*SwInterfaceSpanDetails) GetMessageName() string
- func (*SwInterfaceSpanDetails) GetMessageType() api.MessageType
- func (m *SwInterfaceSpanDetails) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSpanDetails) Reset()
- func (m *SwInterfaceSpanDetails) Size() (size int)
- func (m *SwInterfaceSpanDetails) Unmarshal(b []byte) error
- type SwInterfaceSpanDump
- func (*SwInterfaceSpanDump) GetCrcString() string
- func (*SwInterfaceSpanDump) GetMessageName() string
- func (*SwInterfaceSpanDump) GetMessageType() api.MessageType
- func (m *SwInterfaceSpanDump) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSpanDump) Reset()
- func (m *SwInterfaceSpanDump) Size() (size int)
- func (m *SwInterfaceSpanDump) Unmarshal(b []byte) error
- type SwInterfaceSpanEnableDisable
- func (*SwInterfaceSpanEnableDisable) GetCrcString() string
- func (*SwInterfaceSpanEnableDisable) GetMessageName() string
- func (*SwInterfaceSpanEnableDisable) GetMessageType() api.MessageType
- func (m *SwInterfaceSpanEnableDisable) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSpanEnableDisable) Reset()
- func (m *SwInterfaceSpanEnableDisable) Size() (size int)
- func (m *SwInterfaceSpanEnableDisable) Unmarshal(b []byte) error
- type SwInterfaceSpanEnableDisableReply
- func (*SwInterfaceSpanEnableDisableReply) GetCrcString() string
- func (*SwInterfaceSpanEnableDisableReply) GetMessageName() string
- func (*SwInterfaceSpanEnableDisableReply) GetMessageType() api.MessageType
- func (m *SwInterfaceSpanEnableDisableReply) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSpanEnableDisableReply) Reset()
- func (m *SwInterfaceSpanEnableDisableReply) Size() (size int)
- func (m *SwInterfaceSpanEnableDisableReply) Unmarshal(b []byte) error
Constants ¶
View Source
const ( APIFile = "span" APIVersion = "2.0.0" VersionCrc = 0xe4ccb39b )
Variables ¶
View Source
var ( SpanState_name = map[uint32]string{ 0: "SPAN_STATE_API_DISABLED", 1: "SPAN_STATE_API_RX", 2: "SPAN_STATE_API_TX", 3: "SPAN_STATE_API_RX_TX", } SpanState_value = map[string]uint32{ "SPAN_STATE_API_DISABLED": 0, "SPAN_STATE_API_RX": 1, "SPAN_STATE_API_TX": 2, "SPAN_STATE_API_RX_TX": 3, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { SwInterfaceSpanDump(ctx context.Context, in *SwInterfaceSpanDump) (RPCService_SwInterfaceSpanDumpClient, error) SwInterfaceSpanEnableDisable(ctx context.Context, in *SwInterfaceSpanEnableDisable) (*SwInterfaceSpanEnableDisableReply, error) }
RPCService defines RPC service span.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_SwInterfaceSpanDumpClient ¶
type RPCService_SwInterfaceSpanDumpClient interface { Recv() (*SwInterfaceSpanDetails, error) api.Stream }
type SwInterfaceSpanDetails ¶
type SwInterfaceSpanDetails struct { SwIfIndexFrom interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index_from" json:"sw_if_index_from,omitempty"` SwIfIndexTo interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index_to" json:"sw_if_index_to,omitempty"` State SpanState `binapi:"span_state,name=state" json:"state,omitempty"` IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"` }
SwInterfaceSpanDetails defines message 'sw_interface_span_details'.
func (*SwInterfaceSpanDetails) GetCrcString ¶
func (*SwInterfaceSpanDetails) GetCrcString() string
func (*SwInterfaceSpanDetails) GetMessageName ¶
func (*SwInterfaceSpanDetails) GetMessageName() string
func (*SwInterfaceSpanDetails) GetMessageType ¶
func (*SwInterfaceSpanDetails) GetMessageType() api.MessageType
func (*SwInterfaceSpanDetails) Marshal ¶
func (m *SwInterfaceSpanDetails) Marshal(b []byte) ([]byte, error)
func (*SwInterfaceSpanDetails) Reset ¶
func (m *SwInterfaceSpanDetails) Reset()
func (*SwInterfaceSpanDetails) Size ¶
func (m *SwInterfaceSpanDetails) Size() (size int)
func (*SwInterfaceSpanDetails) Unmarshal ¶
func (m *SwInterfaceSpanDetails) Unmarshal(b []byte) error
type SwInterfaceSpanDump ¶
type SwInterfaceSpanDump struct {
IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
}
SwInterfaceSpanDump defines message 'sw_interface_span_dump'.
func (*SwInterfaceSpanDump) GetCrcString ¶
func (*SwInterfaceSpanDump) GetCrcString() string
func (*SwInterfaceSpanDump) GetMessageName ¶
func (*SwInterfaceSpanDump) GetMessageName() string
func (*SwInterfaceSpanDump) GetMessageType ¶
func (*SwInterfaceSpanDump) GetMessageType() api.MessageType
func (*SwInterfaceSpanDump) Marshal ¶
func (m *SwInterfaceSpanDump) Marshal(b []byte) ([]byte, error)
func (*SwInterfaceSpanDump) Reset ¶
func (m *SwInterfaceSpanDump) Reset()
func (*SwInterfaceSpanDump) Size ¶
func (m *SwInterfaceSpanDump) Size() (size int)
func (*SwInterfaceSpanDump) Unmarshal ¶
func (m *SwInterfaceSpanDump) Unmarshal(b []byte) error
type SwInterfaceSpanEnableDisable ¶
type SwInterfaceSpanEnableDisable struct { SwIfIndexFrom interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index_from" json:"sw_if_index_from,omitempty"` SwIfIndexTo interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index_to" json:"sw_if_index_to,omitempty"` State SpanState `binapi:"span_state,name=state" json:"state,omitempty"` IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"` }
SwInterfaceSpanEnableDisable defines message 'sw_interface_span_enable_disable'.
func (*SwInterfaceSpanEnableDisable) GetCrcString ¶
func (*SwInterfaceSpanEnableDisable) GetCrcString() string
func (*SwInterfaceSpanEnableDisable) GetMessageName ¶
func (*SwInterfaceSpanEnableDisable) GetMessageName() string
func (*SwInterfaceSpanEnableDisable) GetMessageType ¶
func (*SwInterfaceSpanEnableDisable) GetMessageType() api.MessageType
func (*SwInterfaceSpanEnableDisable) Marshal ¶
func (m *SwInterfaceSpanEnableDisable) Marshal(b []byte) ([]byte, error)
func (*SwInterfaceSpanEnableDisable) Reset ¶
func (m *SwInterfaceSpanEnableDisable) Reset()
func (*SwInterfaceSpanEnableDisable) Size ¶
func (m *SwInterfaceSpanEnableDisable) Size() (size int)
func (*SwInterfaceSpanEnableDisable) Unmarshal ¶
func (m *SwInterfaceSpanEnableDisable) Unmarshal(b []byte) error
type SwInterfaceSpanEnableDisableReply ¶
type SwInterfaceSpanEnableDisableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SwInterfaceSpanEnableDisableReply defines message 'sw_interface_span_enable_disable_reply'.
func (*SwInterfaceSpanEnableDisableReply) GetCrcString ¶
func (*SwInterfaceSpanEnableDisableReply) GetCrcString() string
func (*SwInterfaceSpanEnableDisableReply) GetMessageName ¶
func (*SwInterfaceSpanEnableDisableReply) GetMessageName() string
func (*SwInterfaceSpanEnableDisableReply) GetMessageType ¶
func (*SwInterfaceSpanEnableDisableReply) GetMessageType() api.MessageType
func (*SwInterfaceSpanEnableDisableReply) Marshal ¶
func (m *SwInterfaceSpanEnableDisableReply) Marshal(b []byte) ([]byte, error)
func (*SwInterfaceSpanEnableDisableReply) Reset ¶
func (m *SwInterfaceSpanEnableDisableReply) Reset()
func (*SwInterfaceSpanEnableDisableReply) Size ¶
func (m *SwInterfaceSpanEnableDisableReply) Size() (size int)
func (*SwInterfaceSpanEnableDisableReply) Unmarshal ¶
func (m *SwInterfaceSpanEnableDisableReply) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.