auth

package
Version: v0.0.0-...-177e52b Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key    string
	Secret string

	// SubAccountID use Account as needed when rewrite ID
	SubAccountID int
	// contains filtered or unexported fields
}

func New

func New(key, secret string, subaccounts ...SubAccount) *Config

func (*Config) Signture

func (p *Config) Signture(body string) string

func (*Config) SubAccount

func (p *Config) SubAccount() SubAccount

func (*Config) UseSubAccountID

func (p *Config) UseSubAccountID(uuid int)

type SubAccount

type SubAccount struct {
	UUID     int
	Nickname string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL