utils

package
v0.0.0-...-84faedb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext, key string) (string, error)

Decrypt 使用AES解密

func Encrypt

func Encrypt(plaintext, key string) (string, error)

Encrypt 使用AES加密

func GenJwt

func GenJwt(id, name, jwtSecret, secret string) (string, error)

func GetLocalIP

func GetLocalIP() string

func GraceFul

func GraceFul(timeout time.Duration, server *http.Server) *graceful.Server

func Id

func Id() int64

Id Generate an ID.

func MustLoad

func MustLoad(configFile *string, c any)

func ParseJwt

func ParseJwt(tokenString, jwtSecret, secret, targetId, targetName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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