Versions in this module Expand all Collapse all v7 v7.13.0 Sep 1, 2022 Changes in this version + var APIHTTPScheme = "http://" + var APIHost = "linking.qiniuapi.com/v1" + type Channel struct + Channelid int + Comment string + type DevResponse struct + Error string + ErrorCode int + Value json.RawMessage + type Device struct + ActivedAt int64 + Channels []Channel + CreatedAt int64 + Device string + LicenseMode int + LoginAt int64 + MaxChannel int + Meta []byte + RemoteIp string + SegmentExpireDays int + State int + Type int + UpdatedAt int64 + UploadMode int + type DeviceAccessToken struct + Appid string + DeadLine int64 + Device string + Random int64 + Statement []Statement + type DeviceHistoryItem struct + LoginAt int64 + LogoutAt int64 + LogoutReason string + RemoteIp string + type DeviceKey struct + AccessKey string + CreatedAt int64 + SecretKey string + State int + type LiveRequest struct + Appid string + DeviceName string + PlayIP string + PublishIP string + type LiveResponse struct + PlayUrls PlayUrls + PublishUrl string + type M map[string]interface + type Manager struct + func NewManager(mac *auth.Credentials, tr http.RoundTripper) *Manager + func (manager *Manager) AddDevice(appid string, dev *Device) (*Device, error) + func (manager *Manager) AddDeviceKey(appid, device string) ([]DeviceKey, error) + func (manager *Manager) CloneDeviceKey(appid, fromdevice, todevice string, cleanSelfKeys, deleteDevice bool, ...) ([]DeviceKey, error) + func (manager *Manager) DeleteDevice(appid, device string) error + func (manager *Manager) DeleteDeviceKey(appid, device, dak string) error + func (manager *Manager) ListDevice(appid, prefix, marker string, limit int, online, status bool, deviceType int, ...) ([]Device, string, error) + func (manager *Manager) ListDeviceHistoryactivity(appid, dev string, start, end int, marker string, limit int) ([]DeviceHistoryItem, string, error) + func (manager *Manager) QueryAppidDeviceNameByAccessKey(dak string) (string, string, error) + func (manager *Manager) QueryDevice(appid, device string) (*Device, error) + func (manager *Manager) QueryDeviceKey(appid, device string) ([]DeviceKey, error) + func (manager *Manager) RPC(appid, device string, req *RpcRequest) (*RpcResponse, error) + func (manager *Manager) Saveas(appid, device string, start, end int, fname, format string) (*SaveasReply, error) + func (manager *Manager) Segments(appid, device string, start, end int, marker string, limit int) ([]Segment, string, error) + func (manager *Manager) StartLive(req *LiveRequest) (*LiveResponse, error) + func (manager *Manager) Stat(req *StatReq) ([]M, error) + func (manager *Manager) StatusToken(appid, device string, deadline int64) (string, error) + func (manager *Manager) Token(appid, device string, deadline int64, actions []Statement) (string, error) + func (manager *Manager) UpdateDevice(appid, device string, ops []PatchOperation) (*Device, error) + func (manager *Manager) UpdateDeviceKeyState(appid, device, dak string, state int) error + func (manager *Manager) VodToken(appid, device string, deadline int64) (string, error) + type PatchOperation struct + Key string + Op string + Value interface{} + type PlayUrls struct + Flv string + Hls string + Rtmp string + type RpcRequest struct + Action int + Params json.RawMessage + Response bool + Timeout int + type RpcResponse struct + Id string + Resp DevResponse + type SaveasReply struct + Duration int + Fname string + PersistenId string + type Segment struct + Frame string + From int + To int + type StatReq struct + End int + Group string + Select string + Start int + type Statement struct + Action string