server

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package server provides a broker and modular host for microservices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name           string
	ConfigStore    string
	Listen         []*sfproto.NetConfig
	Bridges        []*sfproto.NetConfig
	Gateways       []*sfproto.NetConfig
	EnabledModules []string
	BaseModules    []string
}

type Server

type Server struct {
	*core.App
	ServerConfig Config

	Broker *sfproto.Broker
	Client sarif.Client
	*services.ModuleManager
	// contains filtered or unexported fields
}

func New

func New(appName, moduleName string) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Init

func (s *Server) Init()

func (*Server) InitBroker

func (s *Server) InitBroker() error

func (*Server) InitModules

func (s *Server) InitModules() error

func (*Server) Inject

func (s *Server) Inject(name string, container interface{}) error

func (*Server) Run

func (s *Server) Run()

func (*Server) SetupInjector

func (s *Server) SetupInjector(inj *inject.Injector, name string)

Jump to

Keyboard shortcuts

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