Documentation
¶
Overview ¶
Package systemservices is responsible to deploy & start all system services and provide their service ids.
Index ¶
Constants ¶
const ( ResolverService = "resolver" WorkflowService = "workflow" )
list of system services. these names are also relative paths of system services in the filesystem.
Variables ¶
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 ¶
func (e *SystemServiceNotFoundError) Error() string
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 (*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. |