Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func NewRouter ¶
func NewRouter() *MessageRouter
func (*MessageRouter) Subscribe ¶
func (r *MessageRouter) Subscribe() *chan []byte
func (*MessageRouter) Unsubscribe ¶
func (r *MessageRouter) Unsubscribe(c *chan []byte)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.