service

package
v0.0.0-...-99b6fc9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContactService = &contactService{}
View Source
var EventService = &_Event{}
View Source
var MessageService = &messageService{}
View Source
var (
	UserService = &userService{}
)

Functions

func BuildToken

func BuildToken(id uint64, username string) (string, error)

Types

type LocalClaims

type LocalClaims struct {
	Id       uint64 `json:"id"`
	Username string `json:"username"`
	jwt.StandardClaims
}

type UserMeta

type UserMeta struct {
	Id       uint64
	Username string
}

func ValidToken

func ValidToken(tokenStr string) (*UserMeta, error)

Jump to

Keyboard shortcuts

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