handler

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized = newError("Unauthorized")
	ErrBadRequest   = newError("Body invalid")
)

Functions

func CloseAllConnections

func CloseAllConnections(c *gin.Context)

func CloseConnection

func CloseConnection(c *gin.Context)

func Connections

func Connections(c *gin.Context)

func Logs

func Logs(c *gin.Context)

func Traffic

func Traffic(c *gin.Context)

func Version

func Version(c *gin.Context)

Types

type HTTPError

type HTTPError struct {
	Code int64  `json:"Code"`
	Msg  string `json:"Msg"`
}

HTTPError is custom HTTP error for API

func (*HTTPError) Error

func (e *HTTPError) Error() string

type Log

type Log struct {
	Type    string `json:"Type"`
	Payload string `json:"Payload"`
}

Jump to

Keyboard shortcuts

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