Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWaitForClosedConnection = errors.New("cannot wait for closed connection") ErrWaitTooLong = errors.New("cannot reconnect to sync service") )
Functions ¶
func NewConnection ¶
func NewLease ¶
func NewLease( ctx context.Context, appPrefix string, ownIp string, client managementpb.ServiceClient, logger golog.Logger, ) *lease
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( ctx context.Context, client managementpb.ServiceClient, logger golog.Logger, appPrefix string, ownIp string, ) (*Service, error)
func (*Service) OnPeerLeave ¶
func (*Service) WaitForStop ¶
func (s *Service) WaitForStop()
Click to show internal directories.
Click to hide internal directories.