message

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TpPing        = TpMessage("ping")
	TpParams      = TpMessage("params")
	TpSubscribe   = TpMessage("subscribe")
	TpUnsubscribe = TpMessage("unsubscribe")
	TpStack       = TpMessage("stack")
	TpPublish     = TpMessage("publish")
	TpDirect      = TpMessage("direct")
	TpLog         = TpMessage("log")
	TpError       = TpMessage("error")
	TpConnect     = TpMessage("connect")
	TpDisconnect  = TpMessage("disconnect")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	Type() TpMessage
	ToString() string
	Encode() ([]byte, error)
	Json() (js.Json, error)
}

type TpMessage

type TpMessage string

Jump to

Keyboard shortcuts

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