span

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 span contains generated bindings for API file span.api.

Contents:

4 messages

Index

Constants

View Source
const (
	APIFile    = "span"
	APIVersion = "1.0.0"
	VersionCrc = 0x10769b5
)

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 {
	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 uint32 `binapi:"u32,name=sw_if_index_from" json:"sw_if_index_from,omitempty"`
	SwIfIndexTo   uint32 `binapi:"u32,name=sw_if_index_to" json:"sw_if_index_to,omitempty"`
	State         uint8  `binapi:"u8,name=state" json:"state,omitempty"`
	IsL2          uint8  `binapi:"u8,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 uint8 `binapi:"u8,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 uint32 `binapi:"u32,name=sw_if_index_from" json:"sw_if_index_from,omitempty"`
	SwIfIndexTo   uint32 `binapi:"u32,name=sw_if_index_to" json:"sw_if_index_to,omitempty"`
	State         uint8  `binapi:"u8,name=state" json:"state,omitempty"`
	IsL2          uint8  `binapi:"u8,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) Marshal

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

func (*SwInterfaceSpanEnableDisableReply) Reset

func (*SwInterfaceSpanEnableDisableReply) Size

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

func (*SwInterfaceSpanEnableDisableReply) Unmarshal

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

Jump to

Keyboard shortcuts

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