arping

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

Documentation

Overview

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

Contents:

2 messages

Index

Constants

View Source
const (
	APIFile    = "arping"
	APIVersion = "1.0.0"
	VersionCrc = 0x666f91cc
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type Arping

type Arping struct {
	Address   ip_types.Address               `binapi:"address,name=address" json:"address,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsGarp    bool                           `binapi:"bool,name=is_garp" json:"is_garp,omitempty"`
	Repeat    uint32                         `binapi:"u32,name=repeat,default=1" json:"repeat,omitempty"`
	Interval  float64                        `binapi:"f64,name=interval,default=1" json:"interval,omitempty"`
}

Arping defines message 'arping'.

func (*Arping) GetCrcString

func (*Arping) GetCrcString() string

func (*Arping) GetMessageName

func (*Arping) GetMessageName() string

func (*Arping) GetMessageType

func (*Arping) GetMessageType() api.MessageType

func (*Arping) Marshal

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

func (*Arping) Reset

func (m *Arping) Reset()

func (*Arping) Size

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

func (*Arping) Unmarshal

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

type ArpingReply

type ArpingReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	ReplyCount uint32 `binapi:"u32,name=reply_count" json:"reply_count,omitempty"`
}

ArpingReply defines message 'arping_reply'.

func (*ArpingReply) GetCrcString

func (*ArpingReply) GetCrcString() string

func (*ArpingReply) GetMessageName

func (*ArpingReply) GetMessageName() string

func (*ArpingReply) GetMessageType

func (*ArpingReply) GetMessageType() api.MessageType

func (*ArpingReply) Marshal

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

func (*ArpingReply) Reset

func (m *ArpingReply) Reset()

func (*ArpingReply) Size

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

func (*ArpingReply) Unmarshal

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

type RPCService

type RPCService interface {
	Arping(ctx context.Context, in *Arping) (*ArpingReply, error)
}

RPCService defines RPC service arping.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

Jump to

Keyboard shortcuts

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