stn

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Contents:

4 messages

Index

Constants

View Source
const (
	APIFile    = "stn"
	APIVersion = "2.0.0"
	VersionCrc = 0x8b72d048
)

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 {
	StnAddDelRule(ctx context.Context, in *StnAddDelRule) (*StnAddDelRuleReply, error)
	StnRulesDump(ctx context.Context, in *StnRulesDump) (RPCService_StnRulesDumpClient, error)
}

RPCService defines RPC service stn.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_StnRulesDumpClient

type RPCService_StnRulesDumpClient interface {
	Recv() (*StnRulesDetails, error)
	api.Stream
}

type StnAddDelRule

type StnAddDelRule struct {
	IPAddress ip_types.Address               `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

StnAddDelRule defines message 'stn_add_del_rule'.

func (*StnAddDelRule) GetCrcString

func (*StnAddDelRule) GetCrcString() string

func (*StnAddDelRule) GetMessageName

func (*StnAddDelRule) GetMessageName() string

func (*StnAddDelRule) GetMessageType

func (*StnAddDelRule) GetMessageType() api.MessageType

func (*StnAddDelRule) Marshal

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

func (*StnAddDelRule) Reset

func (m *StnAddDelRule) Reset()

func (*StnAddDelRule) Size

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

func (*StnAddDelRule) Unmarshal

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

type StnAddDelRuleReply

type StnAddDelRuleReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

StnAddDelRuleReply defines message 'stn_add_del_rule_reply'.

func (*StnAddDelRuleReply) GetCrcString

func (*StnAddDelRuleReply) GetCrcString() string

func (*StnAddDelRuleReply) GetMessageName

func (*StnAddDelRuleReply) GetMessageName() string

func (*StnAddDelRuleReply) GetMessageType

func (*StnAddDelRuleReply) GetMessageType() api.MessageType

func (*StnAddDelRuleReply) Marshal

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

func (*StnAddDelRuleReply) Reset

func (m *StnAddDelRuleReply) Reset()

func (*StnAddDelRuleReply) Size

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

func (*StnAddDelRuleReply) Unmarshal

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

type StnRulesDetails

type StnRulesDetails struct {
	IPAddress ip_types.Address               `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

StnRulesDetails defines message 'stn_rules_details'.

func (*StnRulesDetails) GetCrcString

func (*StnRulesDetails) GetCrcString() string

func (*StnRulesDetails) GetMessageName

func (*StnRulesDetails) GetMessageName() string

func (*StnRulesDetails) GetMessageType

func (*StnRulesDetails) GetMessageType() api.MessageType

func (*StnRulesDetails) Marshal

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

func (*StnRulesDetails) Reset

func (m *StnRulesDetails) Reset()

func (*StnRulesDetails) Size

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

func (*StnRulesDetails) Unmarshal

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

type StnRulesDump

type StnRulesDump struct{}

StnRulesDump defines message 'stn_rules_dump'.

func (*StnRulesDump) GetCrcString

func (*StnRulesDump) GetCrcString() string

func (*StnRulesDump) GetMessageName

func (*StnRulesDump) GetMessageName() string

func (*StnRulesDump) GetMessageType

func (*StnRulesDump) GetMessageType() api.MessageType

func (*StnRulesDump) Marshal

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

func (*StnRulesDump) Reset

func (m *StnRulesDump) Reset()

func (*StnRulesDump) Size

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

func (*StnRulesDump) Unmarshal

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

Jump to

Keyboard shortcuts

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