torqsrv

package
v0.16.4-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginRateLimitMiddleware

func NewLoginRateLimitMiddleware() gin.HandlerFunc

NewLoginRateLimitMiddleware is used to limit login attempts

func Start

func Start(port int, apiPswd string, cookiePath string, db *sqlx.DB,
	eventChannel chan interface{}, broadcaster broadcast.BroadcastServer,
	lightningRequestChannel chan interface{},
	serviceChannel chan commons.ServiceChannelMessage) error

func WebsocketHandler added in v0.7.3

func WebsocketHandler(c *gin.Context, db *sqlx.DB, eventChannel chan interface{}, broadcaster broadcast.BroadcastServer) error

Types

type AuthSuccess added in v0.7.3

type AuthSuccess struct {
	AuthSuccess bool `json:"authSuccess"`
}

type Pong added in v0.7.3

type Pong struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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