Documentation
¶
Index ¶
- Constants
- func ConnectHeadset(ws *websocket.Conn, headsetName, clientId, clientSecret string) (string, string, error)
- func Listen(ws *websocket.Conn, token, headsetId, name string) error
- func Receive[T any](ws *websocket.Conn, resp T) error
- func Send(ws *websocket.Conn, request Request) error
- type AccessResponse
- type AuthParams
- type AuthResult
- type AuthorizeResponse
- type ConnectHeadsetResponse
- type ControlDeviceParams
- type DataSample
- type DefaultInfoResponse
- type GetProfileParams
- type HeadsetResponse
- type HeadsetsResponse
- type Request
- func GetAccessRequest(clientId, clientSecret string) Request
- func GetAuthorizeRequest(clientId, clientSecret string) Request
- func GetCloseSessionRequest(token, sessionID string) Request
- func GetConnectHeadsetRequest(headsetID string) Request
- func GetDefaultInfoRequest() Request
- func GetHeadsetsRequest() Request
- func GetOpenSessionRequest(token, headsetID string) Request
- func GetSubscribeRequest(token, sessionId string) Request
- type Response
- type SessionCreateParams
- type SessionResponse
- type SessionUpdateParams
- type Settings
- type SetupProfileParams
- type SubscribeData
- type SubscribeParams
- type SubscribeResponse
- type SubscribeSuccess
- type TrainingParams
Constants ¶
View Source
const (
ErrInvalidData = "invalid length of data"
)
Variables ¶
This section is empty.
Functions ¶
func ConnectHeadset ¶
Types ¶
type AccessResponse ¶
type AuthParams ¶
type AuthResult ¶
type AuthResult struct { CortexToken string `json:"cortexToken"` Warning interface{} `json:"warning"` }
type AuthorizeResponse ¶
type AuthorizeResponse struct {
CortexToken string `json:"cortexToken"`
}
type ConnectHeadsetResponse ¶
type ControlDeviceParams ¶
type DataSample ¶
type DefaultInfoResponse ¶
type GetProfileParams ¶
type HeadsetResponse ¶
type HeadsetResponse struct { ID string `json:"id"` Status string `json:"status"` ConnectedBy string `json:"connectedBy"` Dongle string `json:"dongle"` Firmware string `json:"firmware"` MotionSensors []string `json:"motionSensors"` Sensors []string `json:"sensors"` Settings Settings `json:"settings"` HeadbandPosition string `json:"headbandPosition"` CustomName string `json:"customName"` }
type HeadsetsResponse ¶
type HeadsetsResponse []HeadsetResponse
type Request ¶
type Request struct { ID int `json:"id"` JsonRPC string `json:"jsonrpc"` Method string `json:"method"` Params interface{} `json:"params"` }
func GetAccessRequest ¶
func GetAuthorizeRequest ¶
func GetCloseSessionRequest ¶
func GetDefaultInfoRequest ¶
func GetDefaultInfoRequest() Request
func GetHeadsetsRequest ¶
func GetHeadsetsRequest() Request
func GetOpenSessionRequest ¶
func GetSubscribeRequest ¶
type SessionCreateParams ¶
type SessionResponse ¶
type SessionResponse struct { ID string `json:"id"` Status string `json:"status"` Owner string `json:"owner"` License string `json:"license"` AppID string `json:"appId"` Started string `json:"started"` Stopped string `json:"stopped"` Streams []string `json:"streams"` RecordIDs []string `json:"recordIds"` Recording bool `json:"recording"` Headset HeadsetResponse `json:"headset"` }
type SessionUpdateParams ¶
type SetupProfileParams ¶
type SubscribeData ¶
type SubscribeParams ¶
type SubscribeResponse ¶
type SubscribeResponse struct {
Success []SubscribeSuccess `json:"success"`
}
type SubscribeSuccess ¶
Click to show internal directories.
Click to hide internal directories.