uni

package
v0.0.0-...-d85f73f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(
	ctx context.Context,
	msg *Message,
	opts map[string]interface{},
) ([]byte, error)

func Unmarshal

func Unmarshal(
	ctx context.Context,
	data []byte,
	msg *Message,
	opts map[string]interface{},
) error

Types

type MapBuffer

type MapBuffer map[string]map[string][]byte

type MapBufferV3

type MapBufferV3 map[string][]byte

type Message

type Message struct {
	Version     int16             `jce:",1" json:"version,omitempty"`
	PacketType  uint8             `jce:",2" json:"packet_type,omitempty"`
	MessageType uint32            `jce:",3" json:"message_type,omitempty"`
	RequestID   int32             `jce:",4" json:"request_id,omitempty"`
	ServantName string            `jce:",5" json:"servant_name,omitempty"`
	FuncName    string            `jce:",6" json:"func_name,omitempty"`
	Buffer      []byte            `jce:",7" json:"buffer,omitempty"`
	Timeout     int32             `jce:",8" json:"timeout,omitempty"`
	Context     map[string]string `jce:",9" json:"context,omitempty"`
	Status      map[string]string `jce:",10" json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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