message

package
v0.0.0-...-a535717 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Play  = 0x14
	Pause = 0x12
	Seek  = 0x11
	Join  = 0x41
	Leave = 0x42
	Next  = 0x21
	Prev  = 0x22
	Media = 0x30
	Kill  = 0xFF
)

Variables

View Source
var Mappings = map[int]string{
	Play:  "play",
	Pause: "pause",
	Seek:  "seek",
	Join:  "join",
	Leave: "leave",
	Next:  "next",
	Prev:  "prev",
	Media: "media",
	Kill:  "kill",
}

Functions

This section is empty.

Types

type Message

type Message struct {
	Action byte
	Param  interface{}
}

func Decode

func Decode(bytes []byte) (Message, error)

func (Message) Encode

func (m Message) Encode() []byte

Jump to

Keyboard shortcuts

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