common

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ClientToServerMessageRequestTypeResponse = "rs"
View Source
const ClientToServerMessageRequestTypeSubscribe = "s"
View Source
const ClientToServerMessageRequestTypeUnsubscribe = "u"
View Source
const ServerToClientMessageRequestTypeRequest = "rq"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientToServerMessage

type ClientToServerMessage struct {
	RequestType string           `json:"requestType"`
	Application string           `json:"channel"`
	Response    *funcie.Response `json:"response"`
}

type ServerToClientMessage

type ServerToClientMessage struct {
	RequestType string          `json:"requestType"`
	Message     *funcie.Message `json:"message"`
}

Jump to

Keyboard shortcuts

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