service

package
v0.0.0-...-014530f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseToken

func ParseToken(tokenString string) (id uint, err error)

ParseToken validates the usertoken with the specified secret, and returns the context if the usertoken was valid.

func Sign

func Sign(id uint) (tokenString string, err error)

Sign signs the identity with the specified secret.

func UploadFile

func UploadFile(name string, content []byte, contentType string) (link string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳