system

package
v0.0.0-...-0140298 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 8 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 {
	HTTP    HTTPConfig
	Watch   watch.Config
	Bot     telegram.Config
	Storage storage.Config
}

Config holds configuration for the whole system basically, it wraps all other configurations

type HTTPConfig

type HTTPConfig struct {
	Client next.Config
}

type StopEvent

type StopEvent struct{}

type StorageConfig

type StorageConfig struct {
	Type    string
	Options map[string]interface{}
}

type System

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

func New

func New(config Config) *System

func (*System) Start

func (s *System) Start() error

Start initializes all the components and runs the processing loop

func (*System) Stop

func (s *System) Stop()

Stop stops and uninitialized system components

func (*System) StoppedCh

func (s *System) StoppedCh() <-chan StopEvent

Jump to

Keyboard shortcuts

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