js

package
v0.0.0-...-a02e5fe Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Method Method          `json:"method"`
	Params json.RawMessage `json:"params"`
}

type InputMessage

type InputMessage struct {
	Type       MessageType `json:"type"`
	InputTime  int64       `json:"inputTime"`
	UserId     string      `json:"userId"`
	DeviceId   string      `json:"deviceId"`
	Host       string      `json:"host"`
	RemoteAddr string      `json:"remoteAddr"`
	Body       []byte      `json:"data"`
}

type MessageType

type MessageType int32
const (
	TEXT   MessageType = 0
	BINARY MessageType = 1
)

type Method

type Method int32
const (
	SEND_MESSAGE_TO_ALL_USER_DEVICES Method = 0
	SEND_MESSAGE_TO_DEVICE           Method = 1
)

type SendMessageToAllUserDevicesParams

type SendMessageToAllUserDevicesParams struct {
	MessageType   MessageType `json:"messageType"`
	UserId        string      `json:"userId"`
	ExcludeDevice string      `json:"excludeDevice"`
	Message       []byte      `json:"message"`
}

type SendMessageToDeviceParams

type SendMessageToDeviceParams struct {
	MessageType MessageType `json:"messageType"`
	DeviceId    string      `json:"deviceId"`
	Message     []byte      `json:"message"`
}

Jump to

Keyboard shortcuts

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