service

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 10 Imported by: 0

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