discord

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MATCH_TEMPLATE = "^Sig: (.*)$"
)

Variables

View Source
var (
	POST_TEMPLATE = map[string]string{
		"default": "Verifying my discord ID: %s on NextID. \nSig: %%SIG_BASE64%%",
		"en-US":   "Verifying my discord ID: %s on NextID. \nSig: %%SIG_BASE64%%",
		"zh-CN":   "在NextID上认证我的账号: %s \nSig: %%SIG_BASE64%%",
	}
)

Functions

func Init

func Init()

Types

type Discord

type Discord struct {
	*validator.Base
}

func (*Discord) GeneratePostPayload

func (dc *Discord) GeneratePostPayload() (post map[string]string)

func (*Discord) GenerateSignPayload

func (dc *Discord) GenerateSignPayload() (payload string)

func (*Discord) Validate

func (dc *Discord) Validate() (err error)

Jump to

Keyboard shortcuts

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