auth

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCredentials

func WithCredentials(ctx context.Context, cred *Credentials) context.Context

WithCredentials 认证Ctx

func WithCredentialsType

func WithCredentialsType(ctx context.Context, cred *Credentials, t TokenType) context.Context

WithCredentialsType 带Type认证Ctx

Types

type Credentials

type Credentials struct {
	ClientKey    string
	ClientSecret string
}

Credentials 认证结构体

func New

func New(clientKey, clientSecret string) *Credentials

New 新的认证

type TokenType

type TokenType int

TokenType Token类型

const (
	// TokenDouyin 抖音Token类型
	TokenDouyin TokenType = iota
)

Jump to

Keyboard shortcuts

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