api

package
v0.0.2-dev Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiLogColor color.Attribute = color.FgHiBlue
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiManager

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

func NewApiManager

func NewApiManager(sp *services.ServiceProvider, socketPath string, debugMode bool) *ApiManager

parameter: sp *services.ServiceProvider

func (*ApiManager) Start

func (m *ApiManager) Start(wg *sync.WaitGroup) error

Starts listening for incoming HTTP requests

func (*ApiManager) Stop

func (m *ApiManager) Stop() error

Stops the HTTP listener

type IHandler

type IHandler interface {
	RegisterRoutes(router *mux.Router, debugMode bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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