sflow

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Contents: - 24 messages

Index

Constants

View Source
const (
	APIFile    = "sflow"
	APIVersion = "0.1.0"
	VersionCrc = 0x273ad146
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

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) Marshal

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

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) Marshal

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

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) Marshal

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

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) Marshal

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

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

Jump to

Keyboard shortcuts

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