web

package
v0.0.0-...-7e28c37 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func RouteWithMessageRouter

func RouteWithMessageRouter(router *MessageRouter) echo.HandlerFunc

Types

type LayoutHTTPAdapter

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

func NewLayoutHTTP

func NewLayoutHTTP(c *hardware.TrackService, h io.Writer) *LayoutHTTPAdapter

func (*LayoutHTTPAdapter) Handle

func (l *LayoutHTTPAdapter) Handle(ctx context.Context)

func (*LayoutHTTPAdapter) SetSwitch

func (l *LayoutHTTPAdapter) SetSwitch(c echo.Context) error

type LayoutJSONAdapter

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

func NewLayoutJSONAdapter

func NewLayoutJSONAdapter(c *hardware.TrackService, h io.Writer) *LayoutJSONAdapter

func (*LayoutJSONAdapter) Handle

func (l *LayoutJSONAdapter) Handle(ctx context.Context)

func (*LayoutJSONAdapter) SetSwitch

func (l *LayoutJSONAdapter) SetSwitch(c echo.Context) error

type MessageRouter

type MessageRouter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() *MessageRouter

func (*MessageRouter) Subscribe

func (r *MessageRouter) Subscribe() *chan []byte

func (*MessageRouter) Unsubscribe

func (r *MessageRouter) Unsubscribe(c *chan []byte)

func (*MessageRouter) Write

func (r *MessageRouter) Write(in []byte) (int, error)

Directories

Path Synopsis
view
base
templ: version: v0.2.557
templ: version: v0.2.557
layout
templ: version: v0.2.557
templ: version: v0.2.557

Jump to

Keyboard shortcuts

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