api

package
v0.0.0-...-2f80c7b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Region        string
	AppID         int
	Uin           string
	SubAccountUin string
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(host string, port, appID int, region, uin string) *API

func (*API) StartSession

func (api *API) StartSession(instanceID string) (startSessionResp *StartSessionResp, err error)

type CommonReq

type CommonReq struct {
	Action        string
	Region        string
	Uin           string
	SubAccountUin string
	AppID         int `json:"AppId"`
}

type StartSessionReq

type StartSessionReq struct {
	CommonReq
	InstanceID string `json:"InstanceId"`
}

type StartSessionResp

type StartSessionResp struct {
	Response struct {
		RequestID string `json:"RequestId"`
		SessionID string `json:"SessionId"`
		StreamURL string `json:"StreamUrl"`
	}
}

Jump to

Keyboard shortcuts

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