api

package
v0.0.0-...-65940b2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessTokenSecret  = "qwerty"
	RefreshTokenSecret = "qwerty"
	TokenDuration      = time.Minute * 1440
)

@TODO: update settings

Variables

This section is empty.

Functions

func AuthLogin

func AuthLogin(c *gin.Context)

func CreateUser

func CreateUser(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func GenerateTokens

func GenerateTokens(userID int64) (string, string, error)

func GetStats

func GetStats(c *gin.Context)

func GetUsers

func GetUsers(c *gin.Context)

func ProcessAuthCommand

func ProcessAuthCommand(bot *tgbotapi.BotAPI, msg *tgbotapi.Message)

Types

This section is empty.

Jump to

Keyboard shortcuts

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