controller

package
v0.0.0-...-c5d1e48 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const PasswordReserve = "__SWEETLISA__"

Variables

This section is empty.

Functions

func GetChat

func GetChat(ctx *gin.Context)

func GetChatFeed

func GetChatFeed(ctx *gin.Context)

func GetSubscription

func GetSubscription(c *gin.Context)

GetSubscription returns the user's subscription

func GetTicket

func GetTicket(c *gin.Context)

GetTicket will add a ticket to database

func GetVerification

func GetVerification(ctx *gin.Context)

func NameToShow

func NameToShow(server *model.Server, showQuota bool, noQuota bool) string

func PostRegister

func PostRegister(c *gin.Context)

PostRegister registers a server

func PostRenew

func PostRenew(c *gin.Context)

PostRenew will renew a ticket existing

func ResponseError

func ResponseError(c *gin.Context, err error)

func ServerNetType

func ServerNetType(server string) (typ uint8)

func SplitChatIdentifier

func SplitChatIdentifier(ctx *gin.Context) (id string, ext string)

func ValidNetwork

func ValidNetwork(server string, v4v6Mask uint8) (ok bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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