udp_ping

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: 4 Imported by: 0

Documentation

Overview

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

Contents:

4 messages

Index

Constants

View Source
const (
	APIFile    = "udp_ping"
	APIVersion = "3.0.0"
	VersionCrc = 0x16d961db
)

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 {
	UDPPingAddDel(ctx context.Context, in *UDPPingAddDel) (*UDPPingAddDelReply, error)
	UDPPingExport(ctx context.Context, in *UDPPingExport) (*UDPPingExportReply, error)
}

RPCService defines RPC service udp_ping.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type UDPPingAddDel

type UDPPingAddDel struct {
	SrcIPAddress ip_types.Address `binapi:"address,name=src_ip_address" json:"src_ip_address,omitempty"`
	DstIPAddress ip_types.Address `binapi:"address,name=dst_ip_address" json:"dst_ip_address,omitempty"`
	StartSrcPort uint16           `binapi:"u16,name=start_src_port" json:"start_src_port,omitempty"`
	EndSrcPort   uint16           `binapi:"u16,name=end_src_port" json:"end_src_port,omitempty"`
	StartDstPort uint16           `binapi:"u16,name=start_dst_port" json:"start_dst_port,omitempty"`
	EndDstPort   uint16           `binapi:"u16,name=end_dst_port" json:"end_dst_port,omitempty"`
	Interval     uint16           `binapi:"u16,name=interval" json:"interval,omitempty"`
	Dis          uint8            `binapi:"u8,name=dis" json:"dis,omitempty"`
	FaultDet     uint8            `binapi:"u8,name=fault_det" json:"fault_det,omitempty"`
	Reserve      []byte           `binapi:"u8[3],name=reserve" json:"reserve,omitempty"`
}

UDPPingAddDel defines message 'udp_ping_add_del'.

func (*UDPPingAddDel) GetCrcString

func (*UDPPingAddDel) GetCrcString() string

func (*UDPPingAddDel) GetMessageName

func (*UDPPingAddDel) GetMessageName() string

func (*UDPPingAddDel) GetMessageType

func (*UDPPingAddDel) GetMessageType() api.MessageType

func (*UDPPingAddDel) Marshal

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

func (*UDPPingAddDel) Reset

func (m *UDPPingAddDel) Reset()

func (*UDPPingAddDel) Size

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

func (*UDPPingAddDel) Unmarshal

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

type UDPPingAddDelReply

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

UDPPingAddDelReply defines message 'udp_ping_add_del_reply'.

func (*UDPPingAddDelReply) GetCrcString

func (*UDPPingAddDelReply) GetCrcString() string

func (*UDPPingAddDelReply) GetMessageName

func (*UDPPingAddDelReply) GetMessageName() string

func (*UDPPingAddDelReply) GetMessageType

func (*UDPPingAddDelReply) GetMessageType() api.MessageType

func (*UDPPingAddDelReply) Marshal

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

func (*UDPPingAddDelReply) Reset

func (m *UDPPingAddDelReply) Reset()

func (*UDPPingAddDelReply) Size

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

func (*UDPPingAddDelReply) Unmarshal

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

type UDPPingExport

type UDPPingExport struct {
	Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
}

UDPPingExport defines message 'udp_ping_export'.

func (*UDPPingExport) GetCrcString

func (*UDPPingExport) GetCrcString() string

func (*UDPPingExport) GetMessageName

func (*UDPPingExport) GetMessageName() string

func (*UDPPingExport) GetMessageType

func (*UDPPingExport) GetMessageType() api.MessageType

func (*UDPPingExport) Marshal

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

func (*UDPPingExport) Reset

func (m *UDPPingExport) Reset()

func (*UDPPingExport) Size

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

func (*UDPPingExport) Unmarshal

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

type UDPPingExportReply

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

UDPPingExportReply defines message 'udp_ping_export_reply'.

func (*UDPPingExportReply) GetCrcString

func (*UDPPingExportReply) GetCrcString() string

func (*UDPPingExportReply) GetMessageName

func (*UDPPingExportReply) GetMessageName() string

func (*UDPPingExportReply) GetMessageType

func (*UDPPingExportReply) GetMessageType() api.MessageType

func (*UDPPingExportReply) Marshal

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

func (*UDPPingExportReply) Reset

func (m *UDPPingExportReply) Reset()

func (*UDPPingExportReply) Size

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

func (*UDPPingExportReply) Unmarshal

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

Jump to

Keyboard shortcuts

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