auth

package
v0.0.0-...-90c113d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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
}

Jump to

Keyboard shortcuts

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