notify

package
v0.0.0-...-3f93e99 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: GPL-3.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	sync.Mutex
	logger.Logger
	// contains filtered or unexported fields
}

API holds dependencies required by handlers

func CreateAPI

func CreateAPI(s message.Subscriber, l logger.Logger) *API

CreateAPI creates new API instance

func (*API) HandleConnect

func (a *API) HandleConnect(w http.ResponseWriter, r *http.Request)

HandleConnect web socket

func (*API) Routes

func (a *API) Routes(router chi.Router)

Routes install handlers

type Module

type Module struct {
	chi.Router
	logger.Logger
}

Module dependencies

func (*Module) Boot

func (m *Module) Boot()

Boot installs notify module handlers to mux

Jump to

Keyboard shortcuts

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