server

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.4.0

type Handler interface {
	Handle(interface{})
}

type Server

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

func NewServer

func NewServer() *Server

func (*Server) AddHandler added in v1.4.0

func (s *Server) AddHandler(topic string, handler Handler)

func (*Server) AddWatcher added in v1.4.0

func (s *Server) AddWatcher(watcher Watcher)

func (*Server) Run

func (s *Server) Run(chi *chi.Mux, port string)

Run starts every handler and watcher, serving the chi.Mux on a given port

type Watcher added in v1.4.0

type Watcher interface {
	Watch(queue queue.Queue)
}

Jump to

Keyboard shortcuts

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