token

package module
v0.0.0-...-5eb03d8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: GPL-3.0 Imports: 6 Imported by: 1

README

token

Token written in Go, based on rand.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenSalt = "Binacs_Token_Salt"

Functions

func GenTokenAndRefresh

func GenTokenAndRefresh(id string) (string, string)

GenTokenAndRefresh generate token

func GenTokenWithRefresh

func GenTokenWithRefresh(id, refresh string) string

GenTokenWithRefresh generate token

func Md5

func Md5(v string) string

Md5 generate md5

Types

type Buffer

type Buffer struct {
	*bytes.Buffer
}

Buffer bytes buffer

func NewBuffer

func NewBuffer() *Buffer

NewBuffer return a pointer to Buffer

func (*Buffer) Append

func (bf *Buffer) Append(i interface{}) *Buffer

Append append to buffer, support interface

Jump to

Keyboard shortcuts

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