server

package
v0.0.0-...-2e51320 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 29 Imported by: 3

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, log *logger.Logger) error

Run runs the "server run" command.

Types

type Database

type Database interface {
	tes.ReadOnlyServer
	Init() error
}

Database represents the base funnel database interface

type Server

type Server struct {
	*server.Server
	*scheduler.Scheduler
}

Server is a Funnel server + scheduler.

func NewServer

func NewServer(ctx context.Context, 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