api

package
v0.0.0-...-1eee0f7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func CreateApi

func CreateApi(conf *config.Config, acnodeHandler *acnode.ACNodeHandler, usageLogger usagelogs.UsageLogger) Api

func (*Api) GetRouter

func (api *Api) GetRouter() http.Handler

type WebSocket

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

func CreateWebsockerHandler

func CreateWebsockerHandler(handler *acnode.ACNodeHandler) *WebSocket

func (*WebSocket) Send

func (ws *WebSocket) Send(msg []byte)

func (*WebSocket) ServeHTTP

func (ws *WebSocket) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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