command

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: 9 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 {
	logger.Logger
	message.Publisher
}

API dependencies

func CreateAPI

func CreateAPI(p message.Publisher, l logger.Logger) *API

CreateAPI creates new API instance

func (*API) Post

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

Post commands to bus

func (*API) Routes

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

Routes install handlers

type Module

type Module struct {
	Router chi.Router
	logger.Logger
}

Module dependencies

func (*Module) Boot

func (m *Module) Boot()

Boot module

Jump to

Keyboard shortcuts

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