httpapi

package
v0.0.0-...-c7e8404 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChannelNotFound = eris.New("Channel not found")

Functions

This section is empty.

Types

type HTTPAPI

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

func NewHTTPAPI

func NewHTTPAPI(messagesChannels []channels.MessageChannelInterface, logger *zerolog.Logger) *HTTPAPI

func (*HTTPAPI) GetChannel

func (api *HTTPAPI) GetChannel(name string) (channels.MessageChannelInterface, error)

func (*HTTPAPI) ServeHTTP

func (api *HTTPAPI) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HTTPAPI) StartAllChannels

func (api *HTTPAPI) StartAllChannels() error

func (*HTTPAPI) StopChannel

func (api *HTTPAPI) StopChannel(name string) error

Jump to

Keyboard shortcuts

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