websocket

package
v0.0.0-...-ce289cb Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MethodHandlers []MethodHandler

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func New

func New(idb *idblib.IDB, logging bool, logger idbutil.Logger, readLimit int64, shutdown func()) *Api

func (*Api) Run

func (a *Api) Run(r *gin.Engine)

func (*Api) SubmitMetricUpdate

func (a *Api) SubmitMetricUpdate(metric metric.Metric, value any)

type Handler

type Handler func(a *Api, conn *websocket.Conn, request map[string]interface{}, rawRequest map[string]json.RawMessage) (any, error)

type MethodHandler

type MethodHandler struct {
	Method  method.ServerMethod
	Handler Handler
}

Jump to

Keyboard shortcuts

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