systemservices

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package systemservices is responsible to deploy & start all system services and provide their service ids.

Index

Constants

View Source
const (
	ResolverService = "resolver"
	WorkflowService = "workflow"
)

list of system services. these names are also relative paths of system services in the filesystem.

Variables

View Source
var SystemServicesList = []string{}

SystemServicesList is the list of system services. system services will be created from this list.

Functions

This section is empty.

Types

type SystemServiceNotFoundError

type SystemServiceNotFoundError struct {
	Name string
}

SystemServiceNotFoundError is returned when an expected system service is not found.

func (*SystemServiceNotFoundError) Error

type SystemServices

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

SystemServices is managing all system services. It is responsible to start all system services when the core start. All system services should run all the time. Any interaction with the system services are done by using the api package.

func New

func New() *SystemServices

New creates a new SystemServices instance.

func (*SystemServices) GetServiceID

func (s *SystemServices) GetServiceID(name string) (string, error)

GetServiceID returns the service id of a system service that matches with name. name compared with the unique name/relative path of system service.

func (*SystemServices) RegisterSystemService

func (s *SystemServices) RegisterSystemService(name string, service *service.Service) error

RegisterSystemService adds a deployed system service in the systemservices manager

func (*SystemServices) ResolverServiceID

func (s *SystemServices) ResolverServiceID() (string, error)

ResolverServiceID returns resolver system service's id.

func (*SystemServices) WorkflowServiceID

func (s *SystemServices) WorkflowServiceID() (string, error)

WorkflowServiceID returns workflow service's id.

Directories

Path Synopsis
Package deployer deploys and starts system services by using api and provides ids of services by their names.
Package deployer deploys and starts system services by using api and provides ids of services by their names.
ethwallet module
Package resolver is a wrapper for system resolver service to map tasks data.
Package resolver is a wrapper for system resolver service to map tasks data.
sources
resolver command
workflow/cli command
workflow/workflow
Package workflow is Workflow System Service for managing and running workflows.
Package workflow is Workflow System Service for managing and running workflows.

Jump to

Keyboard shortcuts

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