server

package
v0.0.0-...-5db00e0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the node command

func Run

func Run(ctx context.Context, conf config.Config) error

Run runs the "server run" command.

Types

type Server

type Server struct {
	*server.Server
	*scheduler.Scheduler
	DB       server.Database
	SDB      scheduler.Database
	SBackend scheduler.Backend
}

Server is a Funnel server + scheduler.

func NewServer

func NewServer(conf config.Config, log *logger.Logger) (*Server, error)

NewServer returns a new Funnel server + scheduler based on the given config.

func (*Server) Run

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

Run runs a default Funnel server. This opens a database, and starts an API server, scheduler and task logger. This blocks indefinitely.

Jump to

Keyboard shortcuts

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