messages

package
v0.0.0-...-931a7b5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader) (json.RawMessage, error)

Decode message

Types

type Message

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

Message sent through websocket connections

func DecodeTest

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

DecodeTest data (testing function)

Jump to

Keyboard shortcuts

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