server

package
v0.0.0-...-c66ceb2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*rpc.Server
	// contains filtered or unexported fields
}

Server represents the controllers API server, aware of all the controllers

func New

func New(
	logger *logrus.Entry,
	storage api.Storage,
	loader api.Loader,
	cntl artnet.Controller,
	pm process.Manager,
	visualizer *visualizer.Server,
) (*Server, error)

New returns a new Server instance

func (*Server) Run

func (s *Server) Run(ctx context.Context, endpoint string) error

Run runs the http server

Jump to

Keyboard shortcuts

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