rpc

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGob

func RegisterGob()

RegisterGob -

Types

type AddClient

type AddClient struct {
	DeviceID  string `json:"deviceID"`
	PublicKey string `json:"publicKey"`
	RequestID string `json:"requestID"`
}

AddClient - rpc client message

type AddReplay

type AddReplay struct {
	Error     interface{} `json:"error"`
	PublicKey string      `json:"publicKey"`
	RequestID string      `json:"requestID"`
}

AddReplay - rpc client message

type EncryptedMsg

type EncryptedMsg struct {
	DeviceID  string           `json:"deviceID"`
	RequestID string           `json:"requestID"`
	Error     interface{}      `json:"error"`
	Code      int              `json:"code"`
	Data      EncryptedMsgData `json:"data"`
}

EncryptedMsg -

type EncryptedMsgData

type EncryptedMsgData struct {
	Key  []byte `json:"key"`
	Data []byte `json:"data"`
}

EncryptedMsgData -

type EncryptedMsgDataContains

type EncryptedMsgDataContains struct {
	Token string `json:"token"`
	Data  []byte `json:"data"`
}

EncryptedMsgDataContains -

type GatewayAddress

type GatewayAddress struct {
	Host string `json:"hosts"`
	Port int    `json:"port"`
}

GatewayAddress -

type SubMessage

type SubMessage struct {
	Scope   string                 `json:"scope"`
	Options map[string]interface{} `json:"options"`
}

SubMessage -

Jump to

Keyboard shortcuts

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