Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + const DefaultStorePath + const FileStore + const InMemoryStore + const ServiceID + var ErrInvalidStoreType = errors.New("invalid store type") + var ErrNotAllowed = errors.New("operation not allowed") + var ErrNotEnoughPeers = errors.New("number of connected peers is under configuration threshold") + var ErrNotHost = errors.New("connected service is not a host") + var ErrNotSwarm = errors.New("connected service is not a swarm") + var ErrUnavailable = errors.New("the service is not available") + type Config struct + Addresses []string + ConnectionTimeout string + Host string + Interval string + MinPeerThreshold int + Needs []string + StoreConfig *StoreConfig + Swarm string + func (c *Config) NewStore(ctx context.Context) (proposal.Store, error) + type Host ihost.Host + type Service struct + func (s *Service) AddToGRPCServer(gs *grpc.Server) + func (s *Service) Config() interface{} + func (s *Service) Desc() string + func (s *Service) Expose() interface{} + func (s *Service) ID() string + func (s *Service) Name() string + func (s *Service) Needs() map[string]struct{} + func (s *Service) Plug(exposed map[string]interface{}) error + func (s *Service) Run(ctx context.Context, running, stopping func()) error + func (s *Service) SetConfig(config interface{}) error + type StoreConfig struct + Path string + Type string