messages

package
v0.0.0-...-d7c4d32 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(raw []byte) string

Encode to base64 string from bytes

Types

type Message

type Message struct {
	Data     string `json:"data"`
	Version  string `json:"version"`
	Snapshot bool   `json:"snapshot"`
}

Message sent through websocket connections

func Decode

func Decode(r io.Reader) (Message, error)

Decode message

func DecodeTest

func DecodeTest(data []byte) (Message, error)

DecodeTest base64 data (testing function)

Jump to

Keyboard shortcuts

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