service

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AdminStreamSpec []byte
	NotifyChanSize  int
	Registry        registry.Config
	Engine          engine.Config
	Entity          assembly.Config
}

func (Config) Close

func (c Config) Close(ctx context.Context) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is responsible for creating and injecting concrete implementations of the various parts required by GEIST to function.

func New

func New(ctx context.Context, cfg Config) (*Service, error)

func (*Service) AwaitReady added in v0.3.0

func (s *Service) AwaitReady()

func (*Service) Entities added in v0.3.0

func (s *Service) Entities() map[string]map[string]bool

func (*Service) Metrics added in v0.4.0

func (s *Service) Metrics() map[string]entity.Metrics

func (*Service) NotifyChan added in v0.4.0

func (s *Service) NotifyChan() entity.NotifyChan

func (*Service) Registry

func (s *Service) Registry() *registry.StreamRegistry

func (*Service) Run

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

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context) error

func (*Service) Stream

func (s *Service) Stream(streamId string) (*engine.Stream, error)

func (*Service) String

func (s *Service) String() string

Jump to

Keyboard shortcuts

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