Documentation
¶
Overview ¶
Package feature contains generated bindings for API file feature.api.
Contents: - 4 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type FeatureEnableDisable
- func (*FeatureEnableDisable) GetCrcString() string
- func (*FeatureEnableDisable) GetMessageName() string
- func (*FeatureEnableDisable) GetMessageType() api.MessageType
- func (m *FeatureEnableDisable) Marshal(b []byte) ([]byte, error)
- func (m *FeatureEnableDisable) Reset()
- func (m *FeatureEnableDisable) Size() (size int)
- func (m *FeatureEnableDisable) Unmarshal(b []byte) error
- type FeatureEnableDisableReply
- func (*FeatureEnableDisableReply) GetCrcString() string
- func (*FeatureEnableDisableReply) GetMessageName() string
- func (*FeatureEnableDisableReply) GetMessageType() api.MessageType
- func (m *FeatureEnableDisableReply) Marshal(b []byte) ([]byte, error)
- func (m *FeatureEnableDisableReply) Reset()
- func (m *FeatureEnableDisableReply) Size() (size int)
- func (m *FeatureEnableDisableReply) Unmarshal(b []byte) error
- type FeatureIsEnabled
- func (*FeatureIsEnabled) GetCrcString() string
- func (*FeatureIsEnabled) GetMessageName() string
- func (*FeatureIsEnabled) GetMessageType() api.MessageType
- func (m *FeatureIsEnabled) Marshal(b []byte) ([]byte, error)
- func (m *FeatureIsEnabled) Reset()
- func (m *FeatureIsEnabled) Size() (size int)
- func (m *FeatureIsEnabled) Unmarshal(b []byte) error
- type FeatureIsEnabledReply
- func (*FeatureIsEnabledReply) GetCrcString() string
- func (*FeatureIsEnabledReply) GetMessageName() string
- func (*FeatureIsEnabledReply) GetMessageType() api.MessageType
- func (m *FeatureIsEnabledReply) Marshal(b []byte) ([]byte, error)
- func (m *FeatureIsEnabledReply) Reset()
- func (m *FeatureIsEnabledReply) Size() (size int)
- func (m *FeatureIsEnabledReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "feature" APIVersion = "1.0.2" VersionCrc = 0x30d6f180 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type FeatureEnableDisable ¶
type FeatureEnableDisable struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
ArcName string `binapi:"string[64],name=arc_name" json:"arc_name,omitempty"`
FeatureName string `binapi:"string[64],name=feature_name" json:"feature_name,omitempty"`
}
Feature path enable/disable request
- sw_if_index - the interface
- enable - 1 = on, 0 = off
FeatureEnableDisable defines message 'feature_enable_disable'.
func (*FeatureEnableDisable) GetCrcString ¶
func (*FeatureEnableDisable) GetCrcString() string
func (*FeatureEnableDisable) GetMessageName ¶
func (*FeatureEnableDisable) GetMessageName() string
func (*FeatureEnableDisable) GetMessageType ¶
func (*FeatureEnableDisable) GetMessageType() api.MessageType
func (*FeatureEnableDisable) Marshal ¶
func (m *FeatureEnableDisable) Marshal(b []byte) ([]byte, error)
func (*FeatureEnableDisable) Reset ¶
func (m *FeatureEnableDisable) Reset()
func (*FeatureEnableDisable) Size ¶
func (m *FeatureEnableDisable) Size() (size int)
func (*FeatureEnableDisable) Unmarshal ¶
func (m *FeatureEnableDisable) Unmarshal(b []byte) error
type FeatureEnableDisableReply ¶
type FeatureEnableDisableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
FeatureEnableDisableReply defines message 'feature_enable_disable_reply'.
func (*FeatureEnableDisableReply) GetCrcString ¶
func (*FeatureEnableDisableReply) GetCrcString() string
func (*FeatureEnableDisableReply) GetMessageName ¶
func (*FeatureEnableDisableReply) GetMessageName() string
func (*FeatureEnableDisableReply) GetMessageType ¶
func (*FeatureEnableDisableReply) GetMessageType() api.MessageType
func (*FeatureEnableDisableReply) Marshal ¶
func (m *FeatureEnableDisableReply) Marshal(b []byte) ([]byte, error)
func (*FeatureEnableDisableReply) Reset ¶
func (m *FeatureEnableDisableReply) Reset()
func (*FeatureEnableDisableReply) Size ¶
func (m *FeatureEnableDisableReply) Size() (size int)
func (*FeatureEnableDisableReply) Unmarshal ¶
func (m *FeatureEnableDisableReply) Unmarshal(b []byte) error
type FeatureIsEnabled ¶ added in v0.9.0
type FeatureIsEnabled struct {
ArcName string `binapi:"string[64],name=arc_name" json:"arc_name,omitempty"`
FeatureName string `binapi:"string[64],name=feature_name" json:"feature_name,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
FeatureIsEnabled defines message 'feature_is_enabled'.
func (*FeatureIsEnabled) GetCrcString ¶ added in v0.9.0
func (*FeatureIsEnabled) GetCrcString() string
func (*FeatureIsEnabled) GetMessageName ¶ added in v0.9.0
func (*FeatureIsEnabled) GetMessageName() string
func (*FeatureIsEnabled) GetMessageType ¶ added in v0.9.0
func (*FeatureIsEnabled) GetMessageType() api.MessageType
func (*FeatureIsEnabled) Marshal ¶ added in v0.9.0
func (m *FeatureIsEnabled) Marshal(b []byte) ([]byte, error)
func (*FeatureIsEnabled) Reset ¶ added in v0.9.0
func (m *FeatureIsEnabled) Reset()
func (*FeatureIsEnabled) Size ¶ added in v0.9.0
func (m *FeatureIsEnabled) Size() (size int)
func (*FeatureIsEnabled) Unmarshal ¶ added in v0.9.0
func (m *FeatureIsEnabled) Unmarshal(b []byte) error
type FeatureIsEnabledReply ¶ added in v0.9.0
type FeatureIsEnabledReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
IsEnabled bool `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
}
FeatureIsEnabledReply defines message 'feature_is_enabled_reply'.
func (*FeatureIsEnabledReply) GetCrcString ¶ added in v0.9.0
func (*FeatureIsEnabledReply) GetCrcString() string
func (*FeatureIsEnabledReply) GetMessageName ¶ added in v0.9.0
func (*FeatureIsEnabledReply) GetMessageName() string
func (*FeatureIsEnabledReply) GetMessageType ¶ added in v0.9.0
func (*FeatureIsEnabledReply) GetMessageType() api.MessageType
func (*FeatureIsEnabledReply) Marshal ¶ added in v0.9.0
func (m *FeatureIsEnabledReply) Marshal(b []byte) ([]byte, error)
func (*FeatureIsEnabledReply) Reset ¶ added in v0.9.0
func (m *FeatureIsEnabledReply) Reset()
func (*FeatureIsEnabledReply) Size ¶ added in v0.9.0
func (m *FeatureIsEnabledReply) Size() (size int)
func (*FeatureIsEnabledReply) Unmarshal ¶ added in v0.9.0
func (m *FeatureIsEnabledReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface {
FeatureEnableDisable(ctx context.Context, in *FeatureEnableDisable) (*FeatureEnableDisableReply, error)
FeatureIsEnabled(ctx context.Context, in *FeatureIsEnabled) (*FeatureIsEnabledReply, error)
}
RPCService defines RPC service feature.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.