server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Worker map[string]workertypes.MessageContent
}

Resource defines resource

type ResponseMessage

type ResponseMessage struct {
	Status  int
	Message string
}

ResponseMessage defines send message to worker

type Server

type Server struct {
	Port     string
	Resource *Resource
	// contains filtered or unexported fields
}

Server defines server

func New

func New(options *options.LocalControllerOptions) *Server

New creates a new LC server

func (*Server) AddFeatureManager

func (s *Server) AddFeatureManager(m managers.FeatureManager)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe()

ListenAndServe starts server

Jump to

Keyboard shortcuts

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