auth

package
v0.0.0-...-2b22021 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 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) Signature

func (p *Config) Signature(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