memif

package
v2.3.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package memif is a generated VPP binary API for 'memif' module.

It consists of:

10 messages
 5 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "memif"
	// APIVersion is the API version of this module.
	APIVersion = "2.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x939f78a7
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type MemifCreate

type MemifCreate struct {
	Role       uint8
	Mode       uint8
	RxQueues   uint8
	TxQueues   uint8
	ID         uint32
	SocketID   uint32
	Secret     []byte `struc:"[24]byte"`
	RingSize   uint32
	BufferSize uint16
	HwAddr     []byte `struc:"[6]byte"`
}

MemifCreate represents VPP binary API message 'memif_create'.

func (*MemifCreate) GetCrcString

func (*MemifCreate) GetCrcString() string

func (*MemifCreate) GetMessageName

func (*MemifCreate) GetMessageName() string

func (*MemifCreate) GetMessageType

func (*MemifCreate) GetMessageType() api.MessageType

type MemifCreateReply

type MemifCreateReply struct {
	Retval    int32
	SwIfIndex uint32
}

MemifCreateReply represents VPP binary API message 'memif_create_reply'.

func (*MemifCreateReply) GetCrcString

func (*MemifCreateReply) GetCrcString() string

func (*MemifCreateReply) GetMessageName

func (*MemifCreateReply) GetMessageName() string

func (*MemifCreateReply) GetMessageType

func (*MemifCreateReply) GetMessageType() api.MessageType

type MemifDelete

type MemifDelete struct {
	SwIfIndex uint32
}

MemifDelete represents VPP binary API message 'memif_delete'.

func (*MemifDelete) GetCrcString

func (*MemifDelete) GetCrcString() string

func (*MemifDelete) GetMessageName

func (*MemifDelete) GetMessageName() string

func (*MemifDelete) GetMessageType

func (*MemifDelete) GetMessageType() api.MessageType

type MemifDeleteReply

type MemifDeleteReply struct {
	Retval int32
}

MemifDeleteReply represents VPP binary API message 'memif_delete_reply'.

func (*MemifDeleteReply) GetCrcString

func (*MemifDeleteReply) GetCrcString() string

func (*MemifDeleteReply) GetMessageName

func (*MemifDeleteReply) GetMessageName() string

func (*MemifDeleteReply) GetMessageType

func (*MemifDeleteReply) GetMessageType() api.MessageType

type MemifDetails

type MemifDetails struct {
	SwIfIndex   uint32
	IfName      []byte `struc:"[64]byte"`
	HwAddr      []byte `struc:"[6]byte"`
	ID          uint32
	Role        uint8
	Mode        uint8
	SocketID    uint32
	RingSize    uint32
	BufferSize  uint16
	AdminUpDown uint8
	LinkUpDown  uint8
}

MemifDetails represents VPP binary API message 'memif_details'.

func (*MemifDetails) GetCrcString

func (*MemifDetails) GetCrcString() string

func (*MemifDetails) GetMessageName

func (*MemifDetails) GetMessageName() string

func (*MemifDetails) GetMessageType

func (*MemifDetails) GetMessageType() api.MessageType

type MemifDump

type MemifDump struct{}

MemifDump represents VPP binary API message 'memif_dump'.

func (*MemifDump) GetCrcString

func (*MemifDump) GetCrcString() string

func (*MemifDump) GetMessageName

func (*MemifDump) GetMessageName() string

func (*MemifDump) GetMessageType

func (*MemifDump) GetMessageType() api.MessageType

type MemifSocketFilenameAddDel

type MemifSocketFilenameAddDel struct {
	IsAdd          uint8
	SocketID       uint32
	SocketFilename []byte `struc:"[128]byte"`
}

MemifSocketFilenameAddDel represents VPP binary API message 'memif_socket_filename_add_del'.

func (*MemifSocketFilenameAddDel) GetCrcString

func (*MemifSocketFilenameAddDel) GetCrcString() string

func (*MemifSocketFilenameAddDel) GetMessageName

func (*MemifSocketFilenameAddDel) GetMessageName() string

func (*MemifSocketFilenameAddDel) GetMessageType

func (*MemifSocketFilenameAddDel) GetMessageType() api.MessageType

type MemifSocketFilenameAddDelReply

type MemifSocketFilenameAddDelReply struct {
	Retval int32
}

MemifSocketFilenameAddDelReply represents VPP binary API message 'memif_socket_filename_add_del_reply'.

func (*MemifSocketFilenameAddDelReply) GetCrcString

func (*MemifSocketFilenameAddDelReply) GetCrcString() string

func (*MemifSocketFilenameAddDelReply) GetMessageName

func (*MemifSocketFilenameAddDelReply) GetMessageName() string

func (*MemifSocketFilenameAddDelReply) GetMessageType

type MemifSocketFilenameDetails

type MemifSocketFilenameDetails struct {
	SocketID       uint32
	SocketFilename []byte `struc:"[128]byte"`
}

MemifSocketFilenameDetails represents VPP binary API message 'memif_socket_filename_details'.

func (*MemifSocketFilenameDetails) GetCrcString

func (*MemifSocketFilenameDetails) GetCrcString() string

func (*MemifSocketFilenameDetails) GetMessageName

func (*MemifSocketFilenameDetails) GetMessageName() string

func (*MemifSocketFilenameDetails) GetMessageType

func (*MemifSocketFilenameDetails) GetMessageType() api.MessageType

type MemifSocketFilenameDump

type MemifSocketFilenameDump struct{}

MemifSocketFilenameDump represents VPP binary API message 'memif_socket_filename_dump'.

func (*MemifSocketFilenameDump) GetCrcString

func (*MemifSocketFilenameDump) GetCrcString() string

func (*MemifSocketFilenameDump) GetMessageName

func (*MemifSocketFilenameDump) GetMessageName() string

func (*MemifSocketFilenameDump) GetMessageType

func (*MemifSocketFilenameDump) GetMessageType() api.MessageType

type RPCService

type RPCService interface {
	DumpMemif(ctx context.Context, in *MemifDump) (RPCService_DumpMemifClient, error)
	DumpMemifSocketFilename(ctx context.Context, in *MemifSocketFilenameDump) (RPCService_DumpMemifSocketFilenameClient, error)
	MemifCreate(ctx context.Context, in *MemifCreate) (*MemifCreateReply, error)
	MemifDelete(ctx context.Context, in *MemifDelete) (*MemifDeleteReply, error)
	MemifSocketFilenameAddDel(ctx context.Context, in *MemifSocketFilenameAddDel) (*MemifSocketFilenameAddDelReply, error)
}

RPCService represents RPC service API for memif module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpMemifClient

type RPCService_DumpMemifClient interface {
	Recv() (*MemifDetails, error)
}

type RPCService_DumpMemifSocketFilenameClient

type RPCService_DumpMemifSocketFilenameClient interface {
	Recv() (*MemifSocketFilenameDetails, error)
}

Jump to

Keyboard shortcuts

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