auth

package module
v0.0.0-...-343ee69 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Appid     string `json:"appid"`
	Time      int64  `json:"time"`
	Signature string `json:"signature"`
}

type AuthResponse

type AuthResponse struct {
	Code        int     `json:"code"`
	Expiresin   *int    `json:"expiresIn,omitempty"`
	AccessToken *string `json:"accessToken,omitempty"`
	Result      *string `json:"result,omitempty"`
}

type Authenticate

type Authenticate interface {
	GetAccessToken() string
	InitiateTokenRenewal()
}

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func InitAuthenticator

func InitAuthenticator() *Authenticator

func (*Authenticator) GetAccessToken

func (a *Authenticator) GetAccessToken() (string, error)

func (*Authenticator) InitiateTokenRenewal

func (a *Authenticator) InitiateTokenRenewal()

Jump to

Keyboard shortcuts

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