Documentation
¶
Index ¶
- type Config
- type Server
- type Service
- func (s *Service) AcquireLease(ctx context.Context, nodeToken string, _ int) (protocol.CoordinatorLease, error)
- func (s *Service) Close() error
- func (s *Service) CreateJoinKey(ctx context.Context) (string, error)
- func (s *Service) ExpireLease(ctx context.Context, nodeToken string, fencingToken int64) (protocol.CoordinatorLease, error)
- func (s *Service) HandoffLease(ctx context.Context, nodeToken string, fencingToken int64, ...) (protocol.CoordinatorLease, error)
- func (s *Service) Heartbeat(ctx context.Context, nodeToken string, req protocol.HeartbeatRequest) (protocol.HeartbeatResponse, error)
- func (s *Service) Join(ctx context.Context, req protocol.JoinRequest) (protocol.JoinResponse, error)
- func (s *Service) Leave(ctx context.Context, nodeToken string) error
- func (s *Service) NetworkID(ctx context.Context) (string, error)
- func (s *Service) NodeStatus(ctx context.Context, nodeToken string) (protocol.NodeStatusResponse, error)
- func (s *Service) RecordWebhookDelivery(eventType, deliveryID, repo string)
- func (s *Service) RenewLease(ctx context.Context, nodeToken string, fencingToken int64, _ int) (protocol.CoordinatorLease, error)
- func (s *Service) RevalidateLease(ctx context.Context, nodeToken string, ...) error
- func (s *Service) Status(ctx context.Context) (protocol.StatusResponse, error)
- func (s *Service) Subscribe() (<-chan protocol.AuditEnvelope, func())
- func (s *Service) WebhookSecret(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AcquireLease ¶
func (*Service) CreateJoinKey ¶
func (*Service) ExpireLease ¶
func (*Service) HandoffLease ¶
func (*Service) Heartbeat ¶
func (s *Service) Heartbeat(ctx context.Context, nodeToken string, req protocol.HeartbeatRequest) (protocol.HeartbeatResponse, error)
func (*Service) Join ¶
func (s *Service) Join(ctx context.Context, req protocol.JoinRequest) (protocol.JoinResponse, error)
func (*Service) NodeStatus ¶
func (*Service) RecordWebhookDelivery ¶
func (*Service) RenewLease ¶
func (*Service) RevalidateLease ¶
func (*Service) Subscribe ¶
func (s *Service) Subscribe() (<-chan protocol.AuditEnvelope, func())
Click to show internal directories.
Click to hide internal directories.