model

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrorResponse added in v0.0.3

type APIErrorResponse struct {
	Code    int    `json:"code"` // error code
	Message string `json:"msg"`  // error msg
}

APIErrorResponse API and SAPI error response

type WebsocketCommon

type WebsocketCommon struct {
	Method string      `json:"method"`           // Method method
	Params interface{} `json:"params,omitempty"` // Params params
	ID     uint        `json:"id"`               // ID id
}

WebsocketCommon websocket common (property subscribe property etc.)

type WebsocketCommonResponse

type WebsocketCommonResponse struct {
	Result interface{} `json:"result"` // Result result
	ID     uint        `json:"id"`     // ID id
}

WebsocketCommonResponse websocket common (subscribe unsubscribe property etc.)

type WebsocketErrorResponse

type WebsocketErrorResponse struct {
	Code    int    `json:"code"` // Code error code
	Message string `json:"msg"`  // Message error message
}

WebsocketErrorResponse websocket error message

Jump to

Keyboard shortcuts

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