Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorLocation error indicates that action (i.e. disconnect) ErrorLocation = errors.New("failed to detect service location") )
Functions ¶
This section is empty.
Types ¶
type DialogHandlerFactory ¶
type DialogHandlerFactory func(dto_discovery.ServiceProposal, session.ConfigProvider) communication.DialogHandler
DialogHandlerFactory initiates instance which is able to handle incoming dialogs
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager entrypoint which knows how to start pluggable Mysterium services
func NewManager ¶
func NewManager( networkDefinition metadata.NetworkDefinition, identityLoader identity_selector.Loader, signerFactory identity.SignerFactory, identityRegistry identity_registry.IdentityRegistry, service Service, dialogHandlerFactory DialogHandlerFactory, discoveryService *discovery.Discovery, ) *Manager
NewManager creates new instance of pluggable services manager
type Service ¶
type Service interface { Start(providerID identity.Identity) (dto_discovery.ServiceProposal, session.ConfigProvider, error) Wait() error Stop() error }
Service interface represents pluggable Mysterium service
Click to show internal directories.
Click to hide internal directories.