Documentation
¶
Index ¶
Constants ¶
View Source
const ( HealthOK = "ok" HealthDegraded = "degraded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandMeta ¶
type CommittedError ¶ added in v0.9.2
type CommittedError struct {
Err error
}
CommittedError marks a mutation whose snapshot must be stored even though the caller receives Err.
func (CommittedError) Error ¶ added in v0.9.2
func (e CommittedError) Error() string
func (CommittedError) Unwrap ¶ added in v0.9.2
func (e CommittedError) Unwrap() error
type ConfigState ¶
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
func NewCoordinator ¶
func NewCoordinator(store *Store) *Coordinator
func (*Coordinator) Do ¶
func (c *Coordinator) Do(ctx context.Context, meta CommandMeta, mutate Mutation) (Snapshot, error)
type Snapshot ¶
type Snapshot struct {
Revision uint64
Version string
StartedAt time.Time
Health string
LastError string
Core CoreState
Config ConfigState
ActiveSubscription string
Subscriptions []SubscriptionState
}
Click to show internal directories.
Click to hide internal directories.