message

package
v0.0.0-...-18de4b0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgToByte

func MsgToByte(ctx context.Context, msg any, msgType MsgType) ([]byte, error)

Types

type ConsumerMessage

type ConsumerMessage struct {
	Msg     json.RawMessage `json:"msg"`
	TrackID string          `json:"track_id"`
}

type Message

type Message any

type MsgType

type MsgType uint16
const (
	DefaultMsgType MsgType = iota
	WitchTrackMsgType
)

type MsgWithTrack

type MsgWithTrack struct {
	Msg     any    `json:"msg"`
	TrackID string `json:"track_id"`
}

Jump to

Keyboard shortcuts

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