packet

package
v1.2.28-betax1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet interface {
	Bytes() []byte
	Ctx() context.Context
	CorelId() *corel.CoRelationId
}

func NewPacket

func NewPacket(raw []byte, dst interface{}) (Packet, error)

consumer side of the app logic will use this constructor

func NewPacketFromEntity

func NewPacketFromEntity(ctx context.Context, entity interface{}) Packet

producer side of the app logic will use this constructor

func NewPacketFromStr

func NewPacketFromStr(raw string, dst interface{}) (Packet, error)

Jump to

Keyboard shortcuts

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