torqsrv

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 25 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, db *sqlx.DB, restartLNDSub func() error)

func WebsocketHandler added in v0.7.3

func WebsocketHandler(c *gin.Context, db *sqlx.DB, apiPwd string)

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