acc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "dtalk"

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(url string, timeout time.Duration) auth.Auth

Types

type AuthErrorDataReconnectNotAllowed

type AuthErrorDataReconnectNotAllowed struct {
	Code    int `json:"code"`
	Message struct {
		Datetime   int64  `json:"datetime"`
		Device     int    `json:"device"`
		DeviceName string `json:"deviceName"`
		Uuid       string `json:"uuid"`
	} `json:"message"`
	Service string `json:"service"`
}

type AuthReply

type AuthReply struct {
	Result  int                    `json:"result"`
	Message string                 `json:"message"`
	Data    map[string]interface{} `json:"data"`
}

type AuthSuccessData

type AuthSuccessData struct {
	Address string `json:"address"`
}

type EndpointRejectResp

type EndpointRejectResp struct {
	Result  int    `json:"result"`
	Message string `json:"message"`
	Data    struct {
		Code    int    `json:"code"`
		Service string `json:"service"`
		Message struct {
			UUid       string `json:"uuid"`
			Device     int    `json:"device"`
			DeviceName string `json:"deviceName"`
			Datetime   int64  `json:"datetime"`
		} `json:"message"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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