auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCredentials

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

func WithCredentialsType

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

Types

type Credentials

type Credentials struct {
	ClientKey    string
	ClientSecret string
}

func New

func New(clientKey, clientSecret string) *Credentials

type TokenType

type TokenType int
const (
	TokenDouyin TokenType = iota
)

Jump to

Keyboard shortcuts

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