udp

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Contents:

1 enum
2 structs
8 messages

Index

Constants

View Source
const (
	APIFile    = "udp"
	APIVersion = "1.1.0"
	VersionCrc = 0x2d3db5fa
)

Variables

View Source
var (
	UDPDecapNextProto_name = map[uint32]string{
		1: "UDP_API_DECAP_PROTO_IP4",
		2: "UDP_API_DECAP_PROTO_IP6",
		3: "UDP_API_DECAP_PROTO_MPLS",
	}
	UDPDecapNextProto_value = map[string]uint32{
		"UDP_API_DECAP_PROTO_IP4":  1,
		"UDP_API_DECAP_PROTO_IP6":  2,
		"UDP_API_DECAP_PROTO_MPLS": 3,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

type RPCService interface {
	UDPDecapAddDel(ctx context.Context, in *UDPDecapAddDel) (*UDPDecapAddDelReply, error)
	UDPEncapAdd(ctx context.Context, in *UDPEncapAdd) (*UDPEncapAddReply, error)
	UDPEncapDel(ctx context.Context, in *UDPEncapDel) (*UDPEncapDelReply, error)
	UDPEncapDump(ctx context.Context, in *UDPEncapDump) (RPCService_UDPEncapDumpClient, error)
}

RPCService defines RPC service udp.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_UDPEncapDumpClient

type RPCService_UDPEncapDumpClient interface {
	Recv() (*UDPEncapDetails, error)
	api.Stream
}

type UDPDecap added in v0.5.0

type UDPDecap struct {
	IsIP4     uint8             `binapi:"u8,name=is_ip4" json:"is_ip4,omitempty"`
	Port      uint16            `binapi:"u16,name=port" json:"port,omitempty"`
	NextProto UDPDecapNextProto `binapi:"udp_decap_next_proto,name=next_proto" json:"next_proto,omitempty"`
}

UDPDecap defines type 'udp_decap'.

type UDPDecapAddDel added in v0.5.0

type UDPDecapAddDel struct {
	IsAdd    bool     `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	UDPDecap UDPDecap `binapi:"udp_decap,name=udp_decap" json:"udp_decap,omitempty"`
}

UDPDecapAddDel defines message 'udp_decap_add_del'.

func (*UDPDecapAddDel) GetCrcString added in v0.5.0

func (*UDPDecapAddDel) GetCrcString() string

func (*UDPDecapAddDel) GetMessageName added in v0.5.0

func (*UDPDecapAddDel) GetMessageName() string

func (*UDPDecapAddDel) GetMessageType added in v0.5.0

func (*UDPDecapAddDel) GetMessageType() api.MessageType

func (*UDPDecapAddDel) Marshal added in v0.5.0

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

func (*UDPDecapAddDel) Reset added in v0.5.0

func (m *UDPDecapAddDel) Reset()

func (*UDPDecapAddDel) Size added in v0.5.0

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

func (*UDPDecapAddDel) Unmarshal added in v0.5.0

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

type UDPDecapAddDelReply added in v0.5.0

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

UDPDecapAddDelReply defines message 'udp_decap_add_del_reply'.

func (*UDPDecapAddDelReply) GetCrcString added in v0.5.0

func (*UDPDecapAddDelReply) GetCrcString() string

func (*UDPDecapAddDelReply) GetMessageName added in v0.5.0

func (*UDPDecapAddDelReply) GetMessageName() string

func (*UDPDecapAddDelReply) GetMessageType added in v0.5.0

func (*UDPDecapAddDelReply) GetMessageType() api.MessageType

func (*UDPDecapAddDelReply) Marshal added in v0.5.0

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

func (*UDPDecapAddDelReply) Reset added in v0.5.0

func (m *UDPDecapAddDelReply) Reset()

func (*UDPDecapAddDelReply) Size added in v0.5.0

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

func (*UDPDecapAddDelReply) Unmarshal added in v0.5.0

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

type UDPDecapNextProto added in v0.5.0

type UDPDecapNextProto uint32

UDPDecapNextProto defines enum 'udp_decap_next_proto'.

const (
	UDP_API_DECAP_PROTO_IP4  UDPDecapNextProto = 1
	UDP_API_DECAP_PROTO_IP6  UDPDecapNextProto = 2
	UDP_API_DECAP_PROTO_MPLS UDPDecapNextProto = 3
)

func (UDPDecapNextProto) String added in v0.5.0

func (x UDPDecapNextProto) String() string

type UDPEncap

type UDPEncap struct {
	TableID uint32           `binapi:"u32,name=table_id" json:"table_id,omitempty"`
	SrcPort uint16           `binapi:"u16,name=src_port" json:"src_port,omitempty"`
	DstPort uint16           `binapi:"u16,name=dst_port" json:"dst_port,omitempty"`
	SrcIP   ip_types.Address `binapi:"address,name=src_ip" json:"src_ip,omitempty"`
	DstIP   ip_types.Address `binapi:"address,name=dst_ip" json:"dst_ip,omitempty"`
	ID      uint32           `binapi:"u32,name=id" json:"id,omitempty"`
}

UDPEncap defines type 'udp_encap'.

type UDPEncapAdd

type UDPEncapAdd struct {
	UDPEncap UDPEncap `binapi:"udp_encap,name=udp_encap" json:"udp_encap,omitempty"`
}

UDPEncapAdd defines message 'udp_encap_add'.

func (*UDPEncapAdd) GetCrcString

func (*UDPEncapAdd) GetCrcString() string

func (*UDPEncapAdd) GetMessageName

func (*UDPEncapAdd) GetMessageName() string

func (*UDPEncapAdd) GetMessageType

func (*UDPEncapAdd) GetMessageType() api.MessageType

func (*UDPEncapAdd) Marshal

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

func (*UDPEncapAdd) Reset

func (m *UDPEncapAdd) Reset()

func (*UDPEncapAdd) Size

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

func (*UDPEncapAdd) Unmarshal

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

type UDPEncapAddReply

type UDPEncapAddReply struct {
	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	ID     uint32 `binapi:"u32,name=id" json:"id,omitempty"`
}

UDPEncapAddReply defines message 'udp_encap_add_reply'.

func (*UDPEncapAddReply) GetCrcString

func (*UDPEncapAddReply) GetCrcString() string

func (*UDPEncapAddReply) GetMessageName

func (*UDPEncapAddReply) GetMessageName() string

func (*UDPEncapAddReply) GetMessageType

func (*UDPEncapAddReply) GetMessageType() api.MessageType

func (*UDPEncapAddReply) Marshal

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

func (*UDPEncapAddReply) Reset

func (m *UDPEncapAddReply) Reset()

func (*UDPEncapAddReply) Size

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

func (*UDPEncapAddReply) Unmarshal

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

type UDPEncapDel

type UDPEncapDel struct {
	ID uint32 `binapi:"u32,name=id" json:"id,omitempty"`
}

UDPEncapDel defines message 'udp_encap_del'.

func (*UDPEncapDel) GetCrcString

func (*UDPEncapDel) GetCrcString() string

func (*UDPEncapDel) GetMessageName

func (*UDPEncapDel) GetMessageName() string

func (*UDPEncapDel) GetMessageType

func (*UDPEncapDel) GetMessageType() api.MessageType

func (*UDPEncapDel) Marshal

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

func (*UDPEncapDel) Reset

func (m *UDPEncapDel) Reset()

func (*UDPEncapDel) Size

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

func (*UDPEncapDel) Unmarshal

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

type UDPEncapDelReply

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

UDPEncapDelReply defines message 'udp_encap_del_reply'.

func (*UDPEncapDelReply) GetCrcString

func (*UDPEncapDelReply) GetCrcString() string

func (*UDPEncapDelReply) GetMessageName

func (*UDPEncapDelReply) GetMessageName() string

func (*UDPEncapDelReply) GetMessageType

func (*UDPEncapDelReply) GetMessageType() api.MessageType

func (*UDPEncapDelReply) Marshal

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

func (*UDPEncapDelReply) Reset

func (m *UDPEncapDelReply) Reset()

func (*UDPEncapDelReply) Size

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

func (*UDPEncapDelReply) Unmarshal

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

type UDPEncapDetails

type UDPEncapDetails struct {
	UDPEncap UDPEncap `binapi:"udp_encap,name=udp_encap" json:"udp_encap,omitempty"`
}

UDPEncapDetails defines message 'udp_encap_details'.

func (*UDPEncapDetails) GetCrcString

func (*UDPEncapDetails) GetCrcString() string

func (*UDPEncapDetails) GetMessageName

func (*UDPEncapDetails) GetMessageName() string

func (*UDPEncapDetails) GetMessageType

func (*UDPEncapDetails) GetMessageType() api.MessageType

func (*UDPEncapDetails) Marshal

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

func (*UDPEncapDetails) Reset

func (m *UDPEncapDetails) Reset()

func (*UDPEncapDetails) Size

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

func (*UDPEncapDetails) Unmarshal

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

type UDPEncapDump

type UDPEncapDump struct{}

UDPEncapDump defines message 'udp_encap_dump'.

func (*UDPEncapDump) GetCrcString

func (*UDPEncapDump) GetCrcString() string

func (*UDPEncapDump) GetMessageName

func (*UDPEncapDump) GetMessageName() string

func (*UDPEncapDump) GetMessageType

func (*UDPEncapDump) GetMessageType() api.MessageType

func (*UDPEncapDump) Marshal

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

func (*UDPEncapDump) Reset

func (m *UDPEncapDump) Reset()

func (*UDPEncapDump) Size

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

func (*UDPEncapDump) Unmarshal

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

Jump to

Keyboard shortcuts

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