utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(code, cipher, secret string) (string, error)

Types

type Claims

type Claims struct {
	Code   string `json:"code"`
	Cipher string `json:"cipher"`
	jwt.StandardClaims
}

func ParseToken

func ParseToken(token, secret string) (*Claims, error)

type Net

type Net struct{}

func (Net) GetLocalIPV4

func (n Net) GetLocalIPV4() (ipv4 string)

获取本机网卡IP

type YamlSetting

type YamlSetting struct {
	Setting interface{}
}

func (*YamlSetting) Parse added in v0.0.2

func (setting *YamlSetting) Parse(filename string)

Jump to

Keyboard shortcuts

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