Documentation
¶
Overview ¶
Package pg contains generated bindings for API file pg.api.
Contents:
6 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type PgCapture
- type PgCaptureReply
- func (*PgCaptureReply) GetCrcString() string
- func (*PgCaptureReply) GetMessageName() string
- func (*PgCaptureReply) GetMessageType() api.MessageType
- func (m *PgCaptureReply) Marshal(b []byte) ([]byte, error)
- func (m *PgCaptureReply) Reset()
- func (m *PgCaptureReply) Size() (size int)
- func (m *PgCaptureReply) Unmarshal(b []byte) error
- type PgCreateInterface
- func (*PgCreateInterface) GetCrcString() string
- func (*PgCreateInterface) GetMessageName() string
- func (*PgCreateInterface) GetMessageType() api.MessageType
- func (m *PgCreateInterface) Marshal(b []byte) ([]byte, error)
- func (m *PgCreateInterface) Reset()
- func (m *PgCreateInterface) Size() (size int)
- func (m *PgCreateInterface) Unmarshal(b []byte) error
- type PgCreateInterfaceReply
- func (*PgCreateInterfaceReply) GetCrcString() string
- func (*PgCreateInterfaceReply) GetMessageName() string
- func (*PgCreateInterfaceReply) GetMessageType() api.MessageType
- func (m *PgCreateInterfaceReply) Marshal(b []byte) ([]byte, error)
- func (m *PgCreateInterfaceReply) Reset()
- func (m *PgCreateInterfaceReply) Size() (size int)
- func (m *PgCreateInterfaceReply) Unmarshal(b []byte) error
- type PgEnableDisable
- func (*PgEnableDisable) GetCrcString() string
- func (*PgEnableDisable) GetMessageName() string
- func (*PgEnableDisable) GetMessageType() api.MessageType
- func (m *PgEnableDisable) Marshal(b []byte) ([]byte, error)
- func (m *PgEnableDisable) Reset()
- func (m *PgEnableDisable) Size() (size int)
- func (m *PgEnableDisable) Unmarshal(b []byte) error
- type PgEnableDisableReply
- func (*PgEnableDisableReply) GetCrcString() string
- func (*PgEnableDisableReply) GetMessageName() string
- func (*PgEnableDisableReply) GetMessageType() api.MessageType
- func (m *PgEnableDisableReply) Marshal(b []byte) ([]byte, error)
- func (m *PgEnableDisableReply) Reset()
- func (m *PgEnableDisableReply) Size() (size int)
- func (m *PgEnableDisableReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "pg" APIVersion = "1.1.0" VersionCrc = 0x2583e07b )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type PgCapture ¶
type PgCapture struct {
InterfaceID uint32 `binapi:"u32,name=interface_id" json:"interface_id,omitempty"`
IsEnabled uint8 `binapi:"u8,name=is_enabled" json:"is_enabled,omitempty"`
Count uint32 `binapi:"u32,name=count" json:"count,omitempty"`
PcapNameLength uint32 `binapi:"u32,name=pcap_name_length" json:"-"`
PcapFileName []byte `binapi:"u8[pcap_name_length],name=pcap_file_name" json:"pcap_file_name,omitempty"`
}
PgCapture defines message 'pg_capture'.
func (*PgCapture) GetCrcString ¶
func (*PgCapture) GetMessageName ¶
func (*PgCapture) GetMessageType ¶
func (*PgCapture) GetMessageType() api.MessageType
type PgCaptureReply ¶
type PgCaptureReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PgCaptureReply defines message 'pg_capture_reply'.
func (*PgCaptureReply) GetCrcString ¶
func (*PgCaptureReply) GetCrcString() string
func (*PgCaptureReply) GetMessageName ¶
func (*PgCaptureReply) GetMessageName() string
func (*PgCaptureReply) GetMessageType ¶
func (*PgCaptureReply) GetMessageType() api.MessageType
func (*PgCaptureReply) Reset ¶
func (m *PgCaptureReply) Reset()
func (*PgCaptureReply) Size ¶
func (m *PgCaptureReply) Size() (size int)
func (*PgCaptureReply) Unmarshal ¶
func (m *PgCaptureReply) Unmarshal(b []byte) error
type PgCreateInterface ¶
type PgCreateInterface struct {
InterfaceID uint32 `binapi:"u32,name=interface_id" json:"interface_id,omitempty"`
GsoEnabled uint8 `binapi:"u8,name=gso_enabled" json:"gso_enabled,omitempty"`
GsoSize uint32 `binapi:"u32,name=gso_size" json:"gso_size,omitempty"`
}
PgCreateInterface defines message 'pg_create_interface'.
func (*PgCreateInterface) GetCrcString ¶
func (*PgCreateInterface) GetCrcString() string
func (*PgCreateInterface) GetMessageName ¶
func (*PgCreateInterface) GetMessageName() string
func (*PgCreateInterface) GetMessageType ¶
func (*PgCreateInterface) GetMessageType() api.MessageType
func (*PgCreateInterface) Reset ¶
func (m *PgCreateInterface) Reset()
func (*PgCreateInterface) Size ¶
func (m *PgCreateInterface) Size() (size int)
func (*PgCreateInterface) Unmarshal ¶
func (m *PgCreateInterface) Unmarshal(b []byte) error
type PgCreateInterfaceReply ¶
type PgCreateInterfaceReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
}
PgCreateInterfaceReply defines message 'pg_create_interface_reply'.
func (*PgCreateInterfaceReply) GetCrcString ¶
func (*PgCreateInterfaceReply) GetCrcString() string
func (*PgCreateInterfaceReply) GetMessageName ¶
func (*PgCreateInterfaceReply) GetMessageName() string
func (*PgCreateInterfaceReply) GetMessageType ¶
func (*PgCreateInterfaceReply) GetMessageType() api.MessageType
func (*PgCreateInterfaceReply) Marshal ¶
func (m *PgCreateInterfaceReply) Marshal(b []byte) ([]byte, error)
func (*PgCreateInterfaceReply) Reset ¶
func (m *PgCreateInterfaceReply) Reset()
func (*PgCreateInterfaceReply) Size ¶
func (m *PgCreateInterfaceReply) Size() (size int)
func (*PgCreateInterfaceReply) Unmarshal ¶
func (m *PgCreateInterfaceReply) Unmarshal(b []byte) error
type PgEnableDisable ¶
type PgEnableDisable struct {
IsEnabled uint8 `binapi:"u8,name=is_enabled" json:"is_enabled,omitempty"`
StreamNameLength uint32 `binapi:"u32,name=stream_name_length" json:"-"`
StreamName []byte `binapi:"u8[stream_name_length],name=stream_name" json:"stream_name,omitempty"`
}
PgEnableDisable defines message 'pg_enable_disable'.
func (*PgEnableDisable) GetCrcString ¶
func (*PgEnableDisable) GetCrcString() string
func (*PgEnableDisable) GetMessageName ¶
func (*PgEnableDisable) GetMessageName() string
func (*PgEnableDisable) GetMessageType ¶
func (*PgEnableDisable) GetMessageType() api.MessageType
func (*PgEnableDisable) Reset ¶
func (m *PgEnableDisable) Reset()
func (*PgEnableDisable) Size ¶
func (m *PgEnableDisable) Size() (size int)
func (*PgEnableDisable) Unmarshal ¶
func (m *PgEnableDisable) Unmarshal(b []byte) error
type PgEnableDisableReply ¶
type PgEnableDisableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
PgEnableDisableReply defines message 'pg_enable_disable_reply'.
func (*PgEnableDisableReply) GetCrcString ¶
func (*PgEnableDisableReply) GetCrcString() string
func (*PgEnableDisableReply) GetMessageName ¶
func (*PgEnableDisableReply) GetMessageName() string
func (*PgEnableDisableReply) GetMessageType ¶
func (*PgEnableDisableReply) GetMessageType() api.MessageType
func (*PgEnableDisableReply) Marshal ¶
func (m *PgEnableDisableReply) Marshal(b []byte) ([]byte, error)
func (*PgEnableDisableReply) Reset ¶
func (m *PgEnableDisableReply) Reset()
func (*PgEnableDisableReply) Size ¶
func (m *PgEnableDisableReply) Size() (size int)
func (*PgEnableDisableReply) Unmarshal ¶
func (m *PgEnableDisableReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface {
PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error)
PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error)
PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error)
}
RPCService defines RPC service pg.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.