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 + var ErrNotFound = errors.New("contact not found") + var ErrUnavailable = errors.New("the service is not available") + type Config struct + Filename string + type Contact struct + PeerID peer.ID + type Manager struct + func NewManager(filename string) (*Manager, error) + func (m *Manager) Delete(name string) error + func (m *Manager) Get(name string) (*Contact, error) + func (m *Manager) List() map[string]Contact + func (m *Manager) Set(name string, contact *Contact) error + 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) Run(ctx context.Context, running, stopping func()) error + func (s *Service) SetConfig(config interface{}) error