Documentation
¶
Overview ¶
Package sflow contains generated bindings for API file sflow.api.
Contents: - 24 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type RPCService_SflowInterfaceDumpClient
- type SflowDirectionGet
- func (*SflowDirectionGet) GetCrcString() string
- func (*SflowDirectionGet) GetMessageName() string
- func (*SflowDirectionGet) GetMessageType() api.MessageType
- func (m *SflowDirectionGet) Marshal(b []byte) ([]byte, error)
- func (m *SflowDirectionGet) Reset()
- func (m *SflowDirectionGet) Size() (size int)
- func (m *SflowDirectionGet) Unmarshal(b []byte) error
- type SflowDirectionGetReply
- func (*SflowDirectionGetReply) GetCrcString() string
- func (*SflowDirectionGetReply) GetMessageName() string
- func (*SflowDirectionGetReply) GetMessageType() api.MessageType
- func (m *SflowDirectionGetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowDirectionGetReply) Reset()
- func (m *SflowDirectionGetReply) Size() (size int)
- func (m *SflowDirectionGetReply) Unmarshal(b []byte) error
- type SflowDirectionSet
- func (*SflowDirectionSet) GetCrcString() string
- func (*SflowDirectionSet) GetMessageName() string
- func (*SflowDirectionSet) GetMessageType() api.MessageType
- func (m *SflowDirectionSet) Marshal(b []byte) ([]byte, error)
- func (m *SflowDirectionSet) Reset()
- func (m *SflowDirectionSet) Size() (size int)
- func (m *SflowDirectionSet) Unmarshal(b []byte) error
- type SflowDirectionSetReply
- func (*SflowDirectionSetReply) GetCrcString() string
- func (*SflowDirectionSetReply) GetMessageName() string
- func (*SflowDirectionSetReply) GetMessageType() api.MessageType
- func (m *SflowDirectionSetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowDirectionSetReply) Reset()
- func (m *SflowDirectionSetReply) Size() (size int)
- func (m *SflowDirectionSetReply) Unmarshal(b []byte) error
- type SflowDropMonitoringGet
- func (*SflowDropMonitoringGet) GetCrcString() string
- func (*SflowDropMonitoringGet) GetMessageName() string
- func (*SflowDropMonitoringGet) GetMessageType() api.MessageType
- func (m *SflowDropMonitoringGet) Marshal(b []byte) ([]byte, error)
- func (m *SflowDropMonitoringGet) Reset()
- func (m *SflowDropMonitoringGet) Size() (size int)
- func (m *SflowDropMonitoringGet) Unmarshal(b []byte) error
- type SflowDropMonitoringGetReply
- func (*SflowDropMonitoringGetReply) GetCrcString() string
- func (*SflowDropMonitoringGetReply) GetMessageName() string
- func (*SflowDropMonitoringGetReply) GetMessageType() api.MessageType
- func (m *SflowDropMonitoringGetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowDropMonitoringGetReply) Reset()
- func (m *SflowDropMonitoringGetReply) Size() (size int)
- func (m *SflowDropMonitoringGetReply) Unmarshal(b []byte) error
- type SflowDropMonitoringSet
- func (*SflowDropMonitoringSet) GetCrcString() string
- func (*SflowDropMonitoringSet) GetMessageName() string
- func (*SflowDropMonitoringSet) GetMessageType() api.MessageType
- func (m *SflowDropMonitoringSet) Marshal(b []byte) ([]byte, error)
- func (m *SflowDropMonitoringSet) Reset()
- func (m *SflowDropMonitoringSet) Size() (size int)
- func (m *SflowDropMonitoringSet) Unmarshal(b []byte) error
- type SflowDropMonitoringSetReply
- func (*SflowDropMonitoringSetReply) GetCrcString() string
- func (*SflowDropMonitoringSetReply) GetMessageName() string
- func (*SflowDropMonitoringSetReply) GetMessageType() api.MessageType
- func (m *SflowDropMonitoringSetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowDropMonitoringSetReply) Reset()
- func (m *SflowDropMonitoringSetReply) Size() (size int)
- func (m *SflowDropMonitoringSetReply) Unmarshal(b []byte) error
- type SflowEnableDisable
- func (*SflowEnableDisable) GetCrcString() string
- func (*SflowEnableDisable) GetMessageName() string
- func (*SflowEnableDisable) GetMessageType() api.MessageType
- func (m *SflowEnableDisable) Marshal(b []byte) ([]byte, error)
- func (m *SflowEnableDisable) Reset()
- func (m *SflowEnableDisable) Size() (size int)
- func (m *SflowEnableDisable) Unmarshal(b []byte) error
- type SflowEnableDisableReply
- func (*SflowEnableDisableReply) GetCrcString() string
- func (*SflowEnableDisableReply) GetMessageName() string
- func (*SflowEnableDisableReply) GetMessageType() api.MessageType
- func (m *SflowEnableDisableReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowEnableDisableReply) Reset()
- func (m *SflowEnableDisableReply) Size() (size int)
- func (m *SflowEnableDisableReply) Unmarshal(b []byte) error
- type SflowHeaderBytesGet
- func (*SflowHeaderBytesGet) GetCrcString() string
- func (*SflowHeaderBytesGet) GetMessageName() string
- func (*SflowHeaderBytesGet) GetMessageType() api.MessageType
- func (m *SflowHeaderBytesGet) Marshal(b []byte) ([]byte, error)
- func (m *SflowHeaderBytesGet) Reset()
- func (m *SflowHeaderBytesGet) Size() (size int)
- func (m *SflowHeaderBytesGet) Unmarshal(b []byte) error
- type SflowHeaderBytesGetReply
- func (*SflowHeaderBytesGetReply) GetCrcString() string
- func (*SflowHeaderBytesGetReply) GetMessageName() string
- func (*SflowHeaderBytesGetReply) GetMessageType() api.MessageType
- func (m *SflowHeaderBytesGetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowHeaderBytesGetReply) Reset()
- func (m *SflowHeaderBytesGetReply) Size() (size int)
- func (m *SflowHeaderBytesGetReply) Unmarshal(b []byte) error
- type SflowHeaderBytesSet
- func (*SflowHeaderBytesSet) GetCrcString() string
- func (*SflowHeaderBytesSet) GetMessageName() string
- func (*SflowHeaderBytesSet) GetMessageType() api.MessageType
- func (m *SflowHeaderBytesSet) Marshal(b []byte) ([]byte, error)
- func (m *SflowHeaderBytesSet) Reset()
- func (m *SflowHeaderBytesSet) Size() (size int)
- func (m *SflowHeaderBytesSet) Unmarshal(b []byte) error
- type SflowHeaderBytesSetReply
- func (*SflowHeaderBytesSetReply) GetCrcString() string
- func (*SflowHeaderBytesSetReply) GetMessageName() string
- func (*SflowHeaderBytesSetReply) GetMessageType() api.MessageType
- func (m *SflowHeaderBytesSetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowHeaderBytesSetReply) Reset()
- func (m *SflowHeaderBytesSetReply) Size() (size int)
- func (m *SflowHeaderBytesSetReply) Unmarshal(b []byte) error
- type SflowInterfaceDetails
- func (*SflowInterfaceDetails) GetCrcString() string
- func (*SflowInterfaceDetails) GetMessageName() string
- func (*SflowInterfaceDetails) GetMessageType() api.MessageType
- func (m *SflowInterfaceDetails) Marshal(b []byte) ([]byte, error)
- func (m *SflowInterfaceDetails) Reset()
- func (m *SflowInterfaceDetails) Size() (size int)
- func (m *SflowInterfaceDetails) Unmarshal(b []byte) error
- type SflowInterfaceDump
- func (*SflowInterfaceDump) GetCrcString() string
- func (*SflowInterfaceDump) GetMessageName() string
- func (*SflowInterfaceDump) GetMessageType() api.MessageType
- func (m *SflowInterfaceDump) Marshal(b []byte) ([]byte, error)
- func (m *SflowInterfaceDump) Reset()
- func (m *SflowInterfaceDump) Size() (size int)
- func (m *SflowInterfaceDump) Unmarshal(b []byte) error
- type SflowPollingIntervalGet
- func (*SflowPollingIntervalGet) GetCrcString() string
- func (*SflowPollingIntervalGet) GetMessageName() string
- func (*SflowPollingIntervalGet) GetMessageType() api.MessageType
- func (m *SflowPollingIntervalGet) Marshal(b []byte) ([]byte, error)
- func (m *SflowPollingIntervalGet) Reset()
- func (m *SflowPollingIntervalGet) Size() (size int)
- func (m *SflowPollingIntervalGet) Unmarshal(b []byte) error
- type SflowPollingIntervalGetReply
- func (*SflowPollingIntervalGetReply) GetCrcString() string
- func (*SflowPollingIntervalGetReply) GetMessageName() string
- func (*SflowPollingIntervalGetReply) GetMessageType() api.MessageType
- func (m *SflowPollingIntervalGetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowPollingIntervalGetReply) Reset()
- func (m *SflowPollingIntervalGetReply) Size() (size int)
- func (m *SflowPollingIntervalGetReply) Unmarshal(b []byte) error
- type SflowPollingIntervalSet
- func (*SflowPollingIntervalSet) GetCrcString() string
- func (*SflowPollingIntervalSet) GetMessageName() string
- func (*SflowPollingIntervalSet) GetMessageType() api.MessageType
- func (m *SflowPollingIntervalSet) Marshal(b []byte) ([]byte, error)
- func (m *SflowPollingIntervalSet) Reset()
- func (m *SflowPollingIntervalSet) Size() (size int)
- func (m *SflowPollingIntervalSet) Unmarshal(b []byte) error
- type SflowPollingIntervalSetReply
- func (*SflowPollingIntervalSetReply) GetCrcString() string
- func (*SflowPollingIntervalSetReply) GetMessageName() string
- func (*SflowPollingIntervalSetReply) GetMessageType() api.MessageType
- func (m *SflowPollingIntervalSetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowPollingIntervalSetReply) Reset()
- func (m *SflowPollingIntervalSetReply) Size() (size int)
- func (m *SflowPollingIntervalSetReply) Unmarshal(b []byte) error
- type SflowSamplingRateGet
- func (*SflowSamplingRateGet) GetCrcString() string
- func (*SflowSamplingRateGet) GetMessageName() string
- func (*SflowSamplingRateGet) GetMessageType() api.MessageType
- func (m *SflowSamplingRateGet) Marshal(b []byte) ([]byte, error)
- func (m *SflowSamplingRateGet) Reset()
- func (m *SflowSamplingRateGet) Size() (size int)
- func (m *SflowSamplingRateGet) Unmarshal(b []byte) error
- type SflowSamplingRateGetReply
- func (*SflowSamplingRateGetReply) GetCrcString() string
- func (*SflowSamplingRateGetReply) GetMessageName() string
- func (*SflowSamplingRateGetReply) GetMessageType() api.MessageType
- func (m *SflowSamplingRateGetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowSamplingRateGetReply) Reset()
- func (m *SflowSamplingRateGetReply) Size() (size int)
- func (m *SflowSamplingRateGetReply) Unmarshal(b []byte) error
- type SflowSamplingRateSet
- func (*SflowSamplingRateSet) GetCrcString() string
- func (*SflowSamplingRateSet) GetMessageName() string
- func (*SflowSamplingRateSet) GetMessageType() api.MessageType
- func (m *SflowSamplingRateSet) Marshal(b []byte) ([]byte, error)
- func (m *SflowSamplingRateSet) Reset()
- func (m *SflowSamplingRateSet) Size() (size int)
- func (m *SflowSamplingRateSet) Unmarshal(b []byte) error
- type SflowSamplingRateSetReply
- func (*SflowSamplingRateSetReply) GetCrcString() string
- func (*SflowSamplingRateSetReply) GetMessageName() string
- func (*SflowSamplingRateSetReply) GetMessageType() api.MessageType
- func (m *SflowSamplingRateSetReply) Marshal(b []byte) ([]byte, error)
- func (m *SflowSamplingRateSetReply) Reset()
- func (m *SflowSamplingRateSetReply) Size() (size int)
- func (m *SflowSamplingRateSetReply) Unmarshal(b []byte) error
Constants ¶
const ( APIFile = "sflow" APIVersion = "0.1.0" VersionCrc = 0x273ad146 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface {
SflowDirectionGet(ctx context.Context, in *SflowDirectionGet) (*SflowDirectionGetReply, error)
SflowDirectionSet(ctx context.Context, in *SflowDirectionSet) (*SflowDirectionSetReply, error)
SflowDropMonitoringGet(ctx context.Context, in *SflowDropMonitoringGet) (*SflowDropMonitoringGetReply, error)
SflowDropMonitoringSet(ctx context.Context, in *SflowDropMonitoringSet) (*SflowDropMonitoringSetReply, error)
SflowEnableDisable(ctx context.Context, in *SflowEnableDisable) (*SflowEnableDisableReply, error)
SflowHeaderBytesGet(ctx context.Context, in *SflowHeaderBytesGet) (*SflowHeaderBytesGetReply, error)
SflowHeaderBytesSet(ctx context.Context, in *SflowHeaderBytesSet) (*SflowHeaderBytesSetReply, error)
SflowInterfaceDump(ctx context.Context, in *SflowInterfaceDump) (RPCService_SflowInterfaceDumpClient, error)
SflowPollingIntervalGet(ctx context.Context, in *SflowPollingIntervalGet) (*SflowPollingIntervalGetReply, error)
SflowPollingIntervalSet(ctx context.Context, in *SflowPollingIntervalSet) (*SflowPollingIntervalSetReply, error)
SflowSamplingRateGet(ctx context.Context, in *SflowSamplingRateGet) (*SflowSamplingRateGetReply, error)
SflowSamplingRateSet(ctx context.Context, in *SflowSamplingRateSet) (*SflowSamplingRateSetReply, error)
}
RPCService defines RPC service sflow.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_SflowInterfaceDumpClient ¶
type RPCService_SflowInterfaceDumpClient interface {
Recv() (*SflowInterfaceDetails, error)
api.Stream
}
type SflowDirectionGet ¶
type SflowDirectionGet struct{}
@brief API to get sflow direction SflowDirectionGet defines message 'sflow_direction_get'.
func (*SflowDirectionGet) GetCrcString ¶
func (*SflowDirectionGet) GetCrcString() string
func (*SflowDirectionGet) GetMessageName ¶
func (*SflowDirectionGet) GetMessageName() string
func (*SflowDirectionGet) GetMessageType ¶
func (*SflowDirectionGet) GetMessageType() api.MessageType
func (*SflowDirectionGet) Reset ¶
func (m *SflowDirectionGet) Reset()
func (*SflowDirectionGet) Size ¶
func (m *SflowDirectionGet) Size() (size int)
func (*SflowDirectionGet) Unmarshal ¶
func (m *SflowDirectionGet) Unmarshal(b []byte) error
type SflowDirectionGetReply ¶
type SflowDirectionGetReply struct {
SamplingD uint32 `binapi:"u32,name=sampling_D" json:"sampling_D,omitempty"`
}
reply to get the sflow direction
- sampling_D - direction
SflowDirectionGetReply defines message 'sflow_direction_get_reply'. InProgress: the message form may change in the future versions
func (*SflowDirectionGetReply) GetCrcString ¶
func (*SflowDirectionGetReply) GetCrcString() string
func (*SflowDirectionGetReply) GetMessageName ¶
func (*SflowDirectionGetReply) GetMessageName() string
func (*SflowDirectionGetReply) GetMessageType ¶
func (*SflowDirectionGetReply) GetMessageType() api.MessageType
func (*SflowDirectionGetReply) Marshal ¶
func (m *SflowDirectionGetReply) Marshal(b []byte) ([]byte, error)
func (*SflowDirectionGetReply) Reset ¶
func (m *SflowDirectionGetReply) Reset()
func (*SflowDirectionGetReply) Size ¶
func (m *SflowDirectionGetReply) Size() (size int)
func (*SflowDirectionGetReply) Unmarshal ¶
func (m *SflowDirectionGetReply) Unmarshal(b []byte) error
type SflowDirectionSet ¶
type SflowDirectionSet struct {
SamplingD uint32 `binapi:"u32,name=sampling_D" json:"sampling_D,omitempty"`
}
@brief API to set sflow direction
- sampling_D - direction
SflowDirectionSet defines message 'sflow_direction_set'.
func (*SflowDirectionSet) GetCrcString ¶
func (*SflowDirectionSet) GetCrcString() string
func (*SflowDirectionSet) GetMessageName ¶
func (*SflowDirectionSet) GetMessageName() string
func (*SflowDirectionSet) GetMessageType ¶
func (*SflowDirectionSet) GetMessageType() api.MessageType
func (*SflowDirectionSet) Reset ¶
func (m *SflowDirectionSet) Reset()
func (*SflowDirectionSet) Size ¶
func (m *SflowDirectionSet) Size() (size int)
func (*SflowDirectionSet) Unmarshal ¶
func (m *SflowDirectionSet) Unmarshal(b []byte) error
type SflowDirectionSetReply ¶
type SflowDirectionSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SflowDirectionSetReply defines message 'sflow_direction_set_reply'.
func (*SflowDirectionSetReply) GetCrcString ¶
func (*SflowDirectionSetReply) GetCrcString() string
func (*SflowDirectionSetReply) GetMessageName ¶
func (*SflowDirectionSetReply) GetMessageName() string
func (*SflowDirectionSetReply) GetMessageType ¶
func (*SflowDirectionSetReply) GetMessageType() api.MessageType
func (*SflowDirectionSetReply) Marshal ¶
func (m *SflowDirectionSetReply) Marshal(b []byte) ([]byte, error)
func (*SflowDirectionSetReply) Reset ¶
func (m *SflowDirectionSetReply) Reset()
func (*SflowDirectionSetReply) Size ¶
func (m *SflowDirectionSetReply) Size() (size int)
func (*SflowDirectionSetReply) Unmarshal ¶
func (m *SflowDirectionSetReply) Unmarshal(b []byte) error
type SflowDropMonitoringGet ¶
type SflowDropMonitoringGet struct{}
@brief API to get sflow drop-monitoring SflowDropMonitoringGet defines message 'sflow_drop_monitoring_get'.
func (*SflowDropMonitoringGet) GetCrcString ¶
func (*SflowDropMonitoringGet) GetCrcString() string
func (*SflowDropMonitoringGet) GetMessageName ¶
func (*SflowDropMonitoringGet) GetMessageName() string
func (*SflowDropMonitoringGet) GetMessageType ¶
func (*SflowDropMonitoringGet) GetMessageType() api.MessageType
func (*SflowDropMonitoringGet) Marshal ¶
func (m *SflowDropMonitoringGet) Marshal(b []byte) ([]byte, error)
func (*SflowDropMonitoringGet) Reset ¶
func (m *SflowDropMonitoringGet) Reset()
func (*SflowDropMonitoringGet) Size ¶
func (m *SflowDropMonitoringGet) Size() (size int)
func (*SflowDropMonitoringGet) Unmarshal ¶
func (m *SflowDropMonitoringGet) Unmarshal(b []byte) error
type SflowDropMonitoringGetReply ¶
type SflowDropMonitoringGetReply struct {
DropM uint32 `binapi:"u32,name=drop_M" json:"drop_M,omitempty"`
}
reply to get the sflow drop-monitoring
- drop_M - is drop monitoring enabled
SflowDropMonitoringGetReply defines message 'sflow_drop_monitoring_get_reply'. InProgress: the message form may change in the future versions
func (*SflowDropMonitoringGetReply) GetCrcString ¶
func (*SflowDropMonitoringGetReply) GetCrcString() string
func (*SflowDropMonitoringGetReply) GetMessageName ¶
func (*SflowDropMonitoringGetReply) GetMessageName() string
func (*SflowDropMonitoringGetReply) GetMessageType ¶
func (*SflowDropMonitoringGetReply) GetMessageType() api.MessageType
func (*SflowDropMonitoringGetReply) Marshal ¶
func (m *SflowDropMonitoringGetReply) Marshal(b []byte) ([]byte, error)
func (*SflowDropMonitoringGetReply) Reset ¶
func (m *SflowDropMonitoringGetReply) Reset()
func (*SflowDropMonitoringGetReply) Size ¶
func (m *SflowDropMonitoringGetReply) Size() (size int)
func (*SflowDropMonitoringGetReply) Unmarshal ¶
func (m *SflowDropMonitoringGetReply) Unmarshal(b []byte) error
type SflowDropMonitoringSet ¶
type SflowDropMonitoringSet struct {
DropM uint32 `binapi:"u32,name=drop_M" json:"drop_M,omitempty"`
}
@brief API to set sflow drop-monitoring
- drop_M - enable drop monitoring
SflowDropMonitoringSet defines message 'sflow_drop_monitoring_set'.
func (*SflowDropMonitoringSet) GetCrcString ¶
func (*SflowDropMonitoringSet) GetCrcString() string
func (*SflowDropMonitoringSet) GetMessageName ¶
func (*SflowDropMonitoringSet) GetMessageName() string
func (*SflowDropMonitoringSet) GetMessageType ¶
func (*SflowDropMonitoringSet) GetMessageType() api.MessageType
func (*SflowDropMonitoringSet) Marshal ¶
func (m *SflowDropMonitoringSet) Marshal(b []byte) ([]byte, error)
func (*SflowDropMonitoringSet) Reset ¶
func (m *SflowDropMonitoringSet) Reset()
func (*SflowDropMonitoringSet) Size ¶
func (m *SflowDropMonitoringSet) Size() (size int)
func (*SflowDropMonitoringSet) Unmarshal ¶
func (m *SflowDropMonitoringSet) Unmarshal(b []byte) error
type SflowDropMonitoringSetReply ¶
type SflowDropMonitoringSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SflowDropMonitoringSetReply defines message 'sflow_drop_monitoring_set_reply'.
func (*SflowDropMonitoringSetReply) GetCrcString ¶
func (*SflowDropMonitoringSetReply) GetCrcString() string
func (*SflowDropMonitoringSetReply) GetMessageName ¶
func (*SflowDropMonitoringSetReply) GetMessageName() string
func (*SflowDropMonitoringSetReply) GetMessageType ¶
func (*SflowDropMonitoringSetReply) GetMessageType() api.MessageType
func (*SflowDropMonitoringSetReply) Marshal ¶
func (m *SflowDropMonitoringSetReply) Marshal(b []byte) ([]byte, error)
func (*SflowDropMonitoringSetReply) Reset ¶
func (m *SflowDropMonitoringSetReply) Reset()
func (*SflowDropMonitoringSetReply) Size ¶
func (m *SflowDropMonitoringSetReply) Size() (size int)
func (*SflowDropMonitoringSetReply) Unmarshal ¶
func (m *SflowDropMonitoringSetReply) Unmarshal(b []byte) error
type SflowEnableDisable ¶
type SflowEnableDisable struct {
EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
HwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=hw_if_index" json:"hw_if_index,omitempty"`
}
@brief API to enable / disable sflow
- enable_disable - 1 to enable, 0 to disable the feature
- hw_if_index - hardware interface handle
SflowEnableDisable defines message 'sflow_enable_disable'.
func (*SflowEnableDisable) GetCrcString ¶
func (*SflowEnableDisable) GetCrcString() string
func (*SflowEnableDisable) GetMessageName ¶
func (*SflowEnableDisable) GetMessageName() string
func (*SflowEnableDisable) GetMessageType ¶
func (*SflowEnableDisable) GetMessageType() api.MessageType
func (*SflowEnableDisable) Reset ¶
func (m *SflowEnableDisable) Reset()
func (*SflowEnableDisable) Size ¶
func (m *SflowEnableDisable) Size() (size int)
func (*SflowEnableDisable) Unmarshal ¶
func (m *SflowEnableDisable) Unmarshal(b []byte) error
type SflowEnableDisableReply ¶
type SflowEnableDisableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SflowEnableDisableReply defines message 'sflow_enable_disable_reply'.
func (*SflowEnableDisableReply) GetCrcString ¶
func (*SflowEnableDisableReply) GetCrcString() string
func (*SflowEnableDisableReply) GetMessageName ¶
func (*SflowEnableDisableReply) GetMessageName() string
func (*SflowEnableDisableReply) GetMessageType ¶
func (*SflowEnableDisableReply) GetMessageType() api.MessageType
func (*SflowEnableDisableReply) Marshal ¶
func (m *SflowEnableDisableReply) Marshal(b []byte) ([]byte, error)
func (*SflowEnableDisableReply) Reset ¶
func (m *SflowEnableDisableReply) Reset()
func (*SflowEnableDisableReply) Size ¶
func (m *SflowEnableDisableReply) Size() (size int)
func (*SflowEnableDisableReply) Unmarshal ¶
func (m *SflowEnableDisableReply) Unmarshal(b []byte) error
type SflowHeaderBytesGet ¶
type SflowHeaderBytesGet struct{}
@brief API to get sflow header-bytes SflowHeaderBytesGet defines message 'sflow_header_bytes_get'.
func (*SflowHeaderBytesGet) GetCrcString ¶
func (*SflowHeaderBytesGet) GetCrcString() string
func (*SflowHeaderBytesGet) GetMessageName ¶
func (*SflowHeaderBytesGet) GetMessageName() string
func (*SflowHeaderBytesGet) GetMessageType ¶
func (*SflowHeaderBytesGet) GetMessageType() api.MessageType
func (*SflowHeaderBytesGet) Marshal ¶
func (m *SflowHeaderBytesGet) Marshal(b []byte) ([]byte, error)
func (*SflowHeaderBytesGet) Reset ¶
func (m *SflowHeaderBytesGet) Reset()
func (*SflowHeaderBytesGet) Size ¶
func (m *SflowHeaderBytesGet) Size() (size int)
func (*SflowHeaderBytesGet) Unmarshal ¶
func (m *SflowHeaderBytesGet) Unmarshal(b []byte) error
type SflowHeaderBytesGetReply ¶
type SflowHeaderBytesGetReply struct {
HeaderB uint32 `binapi:"u32,name=header_B" json:"header_B,omitempty"`
}
reply to get the sflow header-bytes
- header_B - current maximum header length in bytes
SflowHeaderBytesGetReply defines message 'sflow_header_bytes_get_reply'. InProgress: the message form may change in the future versions
func (*SflowHeaderBytesGetReply) GetCrcString ¶
func (*SflowHeaderBytesGetReply) GetCrcString() string
func (*SflowHeaderBytesGetReply) GetMessageName ¶
func (*SflowHeaderBytesGetReply) GetMessageName() string
func (*SflowHeaderBytesGetReply) GetMessageType ¶
func (*SflowHeaderBytesGetReply) GetMessageType() api.MessageType
func (*SflowHeaderBytesGetReply) Marshal ¶
func (m *SflowHeaderBytesGetReply) Marshal(b []byte) ([]byte, error)
func (*SflowHeaderBytesGetReply) Reset ¶
func (m *SflowHeaderBytesGetReply) Reset()
func (*SflowHeaderBytesGetReply) Size ¶
func (m *SflowHeaderBytesGetReply) Size() (size int)
func (*SflowHeaderBytesGetReply) Unmarshal ¶
func (m *SflowHeaderBytesGetReply) Unmarshal(b []byte) error
type SflowHeaderBytesSet ¶
type SflowHeaderBytesSet struct {
HeaderB uint32 `binapi:"u32,name=header_B,default=128" json:"header_B,omitempty"`
}
@brief API to set sflow header-bytes
- header_B - max header length in bytes
SflowHeaderBytesSet defines message 'sflow_header_bytes_set'.
func (*SflowHeaderBytesSet) GetCrcString ¶
func (*SflowHeaderBytesSet) GetCrcString() string
func (*SflowHeaderBytesSet) GetMessageName ¶
func (*SflowHeaderBytesSet) GetMessageName() string
func (*SflowHeaderBytesSet) GetMessageType ¶
func (*SflowHeaderBytesSet) GetMessageType() api.MessageType
func (*SflowHeaderBytesSet) Marshal ¶
func (m *SflowHeaderBytesSet) Marshal(b []byte) ([]byte, error)
func (*SflowHeaderBytesSet) Reset ¶
func (m *SflowHeaderBytesSet) Reset()
func (*SflowHeaderBytesSet) Size ¶
func (m *SflowHeaderBytesSet) Size() (size int)
func (*SflowHeaderBytesSet) Unmarshal ¶
func (m *SflowHeaderBytesSet) Unmarshal(b []byte) error
type SflowHeaderBytesSetReply ¶
type SflowHeaderBytesSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SflowHeaderBytesSetReply defines message 'sflow_header_bytes_set_reply'.
func (*SflowHeaderBytesSetReply) GetCrcString ¶
func (*SflowHeaderBytesSetReply) GetCrcString() string
func (*SflowHeaderBytesSetReply) GetMessageName ¶
func (*SflowHeaderBytesSetReply) GetMessageName() string
func (*SflowHeaderBytesSetReply) GetMessageType ¶
func (*SflowHeaderBytesSetReply) GetMessageType() api.MessageType
func (*SflowHeaderBytesSetReply) Marshal ¶
func (m *SflowHeaderBytesSetReply) Marshal(b []byte) ([]byte, error)
func (*SflowHeaderBytesSetReply) Reset ¶
func (m *SflowHeaderBytesSetReply) Reset()
func (*SflowHeaderBytesSetReply) Size ¶
func (m *SflowHeaderBytesSetReply) Size() (size int)
func (*SflowHeaderBytesSetReply) Unmarshal ¶
func (m *SflowHeaderBytesSetReply) Unmarshal(b []byte) error
type SflowInterfaceDetails ¶
type SflowInterfaceDetails struct {
HwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=hw_if_index" json:"hw_if_index,omitempty"`
}
sflow enabled interface details SflowInterfaceDetails defines message 'sflow_interface_details'.
func (*SflowInterfaceDetails) GetCrcString ¶
func (*SflowInterfaceDetails) GetCrcString() string
func (*SflowInterfaceDetails) GetMessageName ¶
func (*SflowInterfaceDetails) GetMessageName() string
func (*SflowInterfaceDetails) GetMessageType ¶
func (*SflowInterfaceDetails) GetMessageType() api.MessageType
func (*SflowInterfaceDetails) Marshal ¶
func (m *SflowInterfaceDetails) Marshal(b []byte) ([]byte, error)
func (*SflowInterfaceDetails) Reset ¶
func (m *SflowInterfaceDetails) Reset()
func (*SflowInterfaceDetails) Size ¶
func (m *SflowInterfaceDetails) Size() (size int)
func (*SflowInterfaceDetails) Unmarshal ¶
func (m *SflowInterfaceDetails) Unmarshal(b []byte) error
type SflowInterfaceDump ¶
type SflowInterfaceDump struct {
HwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=hw_if_index,default=4294967295" json:"hw_if_index,omitempty"`
}
Dump sflow enabled interface(s)
- hw_if_index - hw_if_index of a specific interface, or -1 (default) to return all sflow enabled interfaces
SflowInterfaceDump defines message 'sflow_interface_dump'.
func (*SflowInterfaceDump) GetCrcString ¶
func (*SflowInterfaceDump) GetCrcString() string
func (*SflowInterfaceDump) GetMessageName ¶
func (*SflowInterfaceDump) GetMessageName() string
func (*SflowInterfaceDump) GetMessageType ¶
func (*SflowInterfaceDump) GetMessageType() api.MessageType
func (*SflowInterfaceDump) Reset ¶
func (m *SflowInterfaceDump) Reset()
func (*SflowInterfaceDump) Size ¶
func (m *SflowInterfaceDump) Size() (size int)
func (*SflowInterfaceDump) Unmarshal ¶
func (m *SflowInterfaceDump) Unmarshal(b []byte) error
type SflowPollingIntervalGet ¶
type SflowPollingIntervalGet struct{}
@brief API to get sflow polling-interval SflowPollingIntervalGet defines message 'sflow_polling_interval_get'.
func (*SflowPollingIntervalGet) GetCrcString ¶
func (*SflowPollingIntervalGet) GetCrcString() string
func (*SflowPollingIntervalGet) GetMessageName ¶
func (*SflowPollingIntervalGet) GetMessageName() string
func (*SflowPollingIntervalGet) GetMessageType ¶
func (*SflowPollingIntervalGet) GetMessageType() api.MessageType
func (*SflowPollingIntervalGet) Marshal ¶
func (m *SflowPollingIntervalGet) Marshal(b []byte) ([]byte, error)
func (*SflowPollingIntervalGet) Reset ¶
func (m *SflowPollingIntervalGet) Reset()
func (*SflowPollingIntervalGet) Size ¶
func (m *SflowPollingIntervalGet) Size() (size int)
func (*SflowPollingIntervalGet) Unmarshal ¶
func (m *SflowPollingIntervalGet) Unmarshal(b []byte) error
type SflowPollingIntervalGetReply ¶
type SflowPollingIntervalGetReply struct {
PollingS uint32 `binapi:"u32,name=polling_S" json:"polling_S,omitempty"`
}
reply to get the sflow polling-interval
- polling_S - current polling interval in seconds
SflowPollingIntervalGetReply defines message 'sflow_polling_interval_get_reply'. InProgress: the message form may change in the future versions
func (*SflowPollingIntervalGetReply) GetCrcString ¶
func (*SflowPollingIntervalGetReply) GetCrcString() string
func (*SflowPollingIntervalGetReply) GetMessageName ¶
func (*SflowPollingIntervalGetReply) GetMessageName() string
func (*SflowPollingIntervalGetReply) GetMessageType ¶
func (*SflowPollingIntervalGetReply) GetMessageType() api.MessageType
func (*SflowPollingIntervalGetReply) Marshal ¶
func (m *SflowPollingIntervalGetReply) Marshal(b []byte) ([]byte, error)
func (*SflowPollingIntervalGetReply) Reset ¶
func (m *SflowPollingIntervalGetReply) Reset()
func (*SflowPollingIntervalGetReply) Size ¶
func (m *SflowPollingIntervalGetReply) Size() (size int)
func (*SflowPollingIntervalGetReply) Unmarshal ¶
func (m *SflowPollingIntervalGetReply) Unmarshal(b []byte) error
type SflowPollingIntervalSet ¶
type SflowPollingIntervalSet struct {
PollingS uint32 `binapi:"u32,name=polling_S,default=20" json:"polling_S,omitempty"`
}
@brief API to set sflow polling-interval
- polling_S - polling interval in seconds
SflowPollingIntervalSet defines message 'sflow_polling_interval_set'.
func (*SflowPollingIntervalSet) GetCrcString ¶
func (*SflowPollingIntervalSet) GetCrcString() string
func (*SflowPollingIntervalSet) GetMessageName ¶
func (*SflowPollingIntervalSet) GetMessageName() string
func (*SflowPollingIntervalSet) GetMessageType ¶
func (*SflowPollingIntervalSet) GetMessageType() api.MessageType
func (*SflowPollingIntervalSet) Marshal ¶
func (m *SflowPollingIntervalSet) Marshal(b []byte) ([]byte, error)
func (*SflowPollingIntervalSet) Reset ¶
func (m *SflowPollingIntervalSet) Reset()
func (*SflowPollingIntervalSet) Size ¶
func (m *SflowPollingIntervalSet) Size() (size int)
func (*SflowPollingIntervalSet) Unmarshal ¶
func (m *SflowPollingIntervalSet) Unmarshal(b []byte) error
type SflowPollingIntervalSetReply ¶
type SflowPollingIntervalSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SflowPollingIntervalSetReply defines message 'sflow_polling_interval_set_reply'.
func (*SflowPollingIntervalSetReply) GetCrcString ¶
func (*SflowPollingIntervalSetReply) GetCrcString() string
func (*SflowPollingIntervalSetReply) GetMessageName ¶
func (*SflowPollingIntervalSetReply) GetMessageName() string
func (*SflowPollingIntervalSetReply) GetMessageType ¶
func (*SflowPollingIntervalSetReply) GetMessageType() api.MessageType
func (*SflowPollingIntervalSetReply) Marshal ¶
func (m *SflowPollingIntervalSetReply) Marshal(b []byte) ([]byte, error)
func (*SflowPollingIntervalSetReply) Reset ¶
func (m *SflowPollingIntervalSetReply) Reset()
func (*SflowPollingIntervalSetReply) Size ¶
func (m *SflowPollingIntervalSetReply) Size() (size int)
func (*SflowPollingIntervalSetReply) Unmarshal ¶
func (m *SflowPollingIntervalSetReply) Unmarshal(b []byte) error
type SflowSamplingRateGet ¶
type SflowSamplingRateGet struct{}
@brief API to get sflow sampling-rate SflowSamplingRateGet defines message 'sflow_sampling_rate_get'.
func (*SflowSamplingRateGet) GetCrcString ¶
func (*SflowSamplingRateGet) GetCrcString() string
func (*SflowSamplingRateGet) GetMessageName ¶
func (*SflowSamplingRateGet) GetMessageName() string
func (*SflowSamplingRateGet) GetMessageType ¶
func (*SflowSamplingRateGet) GetMessageType() api.MessageType
func (*SflowSamplingRateGet) Marshal ¶
func (m *SflowSamplingRateGet) Marshal(b []byte) ([]byte, error)
func (*SflowSamplingRateGet) Reset ¶
func (m *SflowSamplingRateGet) Reset()
func (*SflowSamplingRateGet) Size ¶
func (m *SflowSamplingRateGet) Size() (size int)
func (*SflowSamplingRateGet) Unmarshal ¶
func (m *SflowSamplingRateGet) Unmarshal(b []byte) error
type SflowSamplingRateGetReply ¶
type SflowSamplingRateGetReply struct {
SamplingN uint32 `binapi:"u32,name=sampling_N" json:"sampling_N,omitempty"`
}
reply to get the sflow sampling-rate
- sampling_N - the current 1-in-N sampling rate
SflowSamplingRateGetReply defines message 'sflow_sampling_rate_get_reply'. InProgress: the message form may change in the future versions
func (*SflowSamplingRateGetReply) GetCrcString ¶
func (*SflowSamplingRateGetReply) GetCrcString() string
func (*SflowSamplingRateGetReply) GetMessageName ¶
func (*SflowSamplingRateGetReply) GetMessageName() string
func (*SflowSamplingRateGetReply) GetMessageType ¶
func (*SflowSamplingRateGetReply) GetMessageType() api.MessageType
func (*SflowSamplingRateGetReply) Marshal ¶
func (m *SflowSamplingRateGetReply) Marshal(b []byte) ([]byte, error)
func (*SflowSamplingRateGetReply) Reset ¶
func (m *SflowSamplingRateGetReply) Reset()
func (*SflowSamplingRateGetReply) Size ¶
func (m *SflowSamplingRateGetReply) Size() (size int)
func (*SflowSamplingRateGetReply) Unmarshal ¶
func (m *SflowSamplingRateGetReply) Unmarshal(b []byte) error
type SflowSamplingRateSet ¶
type SflowSamplingRateSet struct {
SamplingN uint32 `binapi:"u32,name=sampling_N,default=10000" json:"sampling_N,omitempty"`
}
@brief API to set sflow sampling-rate
- sampling_N - 1-in-N random sampling rate
SflowSamplingRateSet defines message 'sflow_sampling_rate_set'.
func (*SflowSamplingRateSet) GetCrcString ¶
func (*SflowSamplingRateSet) GetCrcString() string
func (*SflowSamplingRateSet) GetMessageName ¶
func (*SflowSamplingRateSet) GetMessageName() string
func (*SflowSamplingRateSet) GetMessageType ¶
func (*SflowSamplingRateSet) GetMessageType() api.MessageType
func (*SflowSamplingRateSet) Marshal ¶
func (m *SflowSamplingRateSet) Marshal(b []byte) ([]byte, error)
func (*SflowSamplingRateSet) Reset ¶
func (m *SflowSamplingRateSet) Reset()
func (*SflowSamplingRateSet) Size ¶
func (m *SflowSamplingRateSet) Size() (size int)
func (*SflowSamplingRateSet) Unmarshal ¶
func (m *SflowSamplingRateSet) Unmarshal(b []byte) error
type SflowSamplingRateSetReply ¶
type SflowSamplingRateSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SflowSamplingRateSetReply defines message 'sflow_sampling_rate_set_reply'.
func (*SflowSamplingRateSetReply) GetCrcString ¶
func (*SflowSamplingRateSetReply) GetCrcString() string
func (*SflowSamplingRateSetReply) GetMessageName ¶
func (*SflowSamplingRateSetReply) GetMessageName() string
func (*SflowSamplingRateSetReply) GetMessageType ¶
func (*SflowSamplingRateSetReply) GetMessageType() api.MessageType
func (*SflowSamplingRateSetReply) Marshal ¶
func (m *SflowSamplingRateSetReply) Marshal(b []byte) ([]byte, error)
func (*SflowSamplingRateSetReply) Reset ¶
func (m *SflowSamplingRateSetReply) Reset()
func (*SflowSamplingRateSetReply) Size ¶
func (m *SflowSamplingRateSetReply) Size() (size int)
func (*SflowSamplingRateSetReply) Unmarshal ¶
func (m *SflowSamplingRateSetReply) Unmarshal(b []byte) error