services

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: 0 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 interface {
	Exists() bool
	Set(v interface{}) error
	Get(v interface{}) (error, bool)

	Dir() string
}

type ErrModuleNotFound

type ErrModuleNotFound struct {
	Module string
}

func (ErrModuleNotFound) Error

func (e ErrModuleNotFound) Error() string

type Module

type Module struct {
	Name        string
	Version     string
	Description string

	NewInstance interface{}
}

type ModuleManager

type ModuleManager struct {
	Instantiate func(*Module) (interface{}, error)
	Modules     map[string]*Module
	Instances   map[string]interface{}
}

func NewModuleManager

func NewModuleManager(instantiate func(*Module) (interface{}, error)) *ModuleManager

func (*ModuleManager) DisableModule

func (s *ModuleManager) DisableModule(name string) error

func (*ModuleManager) EnableModule

func (s *ModuleManager) EnableModule(name string) error

func (*ModuleManager) GetModule

func (s *ModuleManager) GetModule(name string) (*Module, error)

func (*ModuleManager) RegisterModule

func (s *ModuleManager) RegisterModule(mod *Module)

Directories

Path Synopsis
Service auth provides token and challenge based auth.
Service auth provides token and challenge based auth.
Service commands provides a variety of simple functions.
Service commands provides a variety of simple functions.
Service dbus provides access to DBUS notifications and system state.
Service dbus provides access to DBUS notifications and system state.
Service events stores and manipulates timeseries data.
Service events stores and manipulates timeseries data.
Service hostscan scans the local network for devices and provides status updates.
Service hostscan scans the local network for devices and provides status updates.
Service js provides JavaScript scripting for the sarif network.
Service js provides JavaScript scripting for the sarif network.
Service jsonapi provides a simple REST client
Service jsonapi provides a simple REST client
Service know answers questions by asking multiple knowledge providers.
Service know answers questions by asking multiple knowledge providers.
Service lastfm provides access to Last.FM API and stores the user library.
Service lastfm provides access to Last.FM API and stores the user library.
Service location stores the user location and provides automatic checkins and geocoding.
Service location stores the user location and provides automatic checkins and geocoding.
Service logger logs matching messages to file or stdout.
Service logger logs matching messages to file or stdout.
Service lua provides Lua scripting for the sarif network.
Service lua provides Lua scripting for the sarif network.
Service meals tracks calories and imports them from fddb.
Service meals tracks calories and imports them from fddb.
Service mock provides examples and testing data.
Service mock provides examples and testing data.
Service mpd can control the Music Player Daemon.
Service mpd can control the Music Player Daemon.
Service natural provides a conversational interface to the sarif network.
Service natural provides a conversational interface to the sarif network.
Service pushgateway provides notifications to FCM
Service pushgateway provides notifications to FCM
Service reasoner provides a knowledge base and inference engine.
Service reasoner provides a knowledge base and inference engine.
Service scheduler provides reminders and scheduled task messages.
Service scheduler provides reminders and scheduled task messages.
Service scrobbler scrobbles tracks to Last.fm
Service scrobbler scrobbles tracks to Last.fm
Service store provides a key-value store to the sarif network.
Service store provides a key-value store to the sarif network.
bolt
BoltDB driver for the store service.
BoltDB driver for the store service.
es7
Elasticsearch 7 driver for the store service.
Elasticsearch 7 driver for the store service.
replicate
Replicate driver for writing to two drivers
Replicate driver for writing to two drivers
Service vdir provides access to VCard contacts and VCal calendars.
Service vdir provides access to VCard contacts and VCal calendars.
Service web provides a web dashboard and communication between sarif and HTTP.
Service web provides a web dashboard and communication between sarif and HTTP.
Service xmpp provides access to the sarif network over XMPP.
Service xmpp provides access to the sarif network over XMPP.

Jump to

Keyboard shortcuts

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