Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoEvent = errors.New("no such event") ErrNoTask = errors.New("no such task") )
Functions ¶
This section is empty.
Types ¶
type ConsulEventStore ¶
type ConsulEventStore struct {
*ConsulStore
}
func (*ConsulEventStore) Delete ¶
func (c *ConsulEventStore) Delete(id string) error
func (*ConsulEventStore) List ¶
func (c *ConsulEventStore) List() ([]*Event, error)
func (*ConsulEventStore) Update ¶
func (c *ConsulEventStore) Update(e *Event) error
type ConsulStore ¶
type ConsulStore struct {
// contains filtered or unexported fields
}
func NewConsulStore ¶
func NewConsulStore(root string, client *api.Client) *ConsulStore
func (*ConsulStore) Events ¶
func (c *ConsulStore) Events() EventStorer
func (*ConsulStore) Tasks ¶
func (c *ConsulStore) Tasks() TaskStorer
type ConsulTaskStore ¶
type ConsulTaskStore struct {
*ConsulStore
}
func (*ConsulTaskStore) Delete ¶
func (c *ConsulTaskStore) Delete(id string) error
func (*ConsulTaskStore) GetBySubscription ¶
func (c *ConsulTaskStore) GetBySubscription(sub string) ([]*Task, error)
func (*ConsulTaskStore) List ¶
func (c *ConsulTaskStore) List() ([]*Task, error)
func (*ConsulTaskStore) Update ¶
func (c *ConsulTaskStore) Update(e *Task) error
type EventStorer ¶
type Storer ¶
type Storer interface { Tasks() TaskStorer Events() EventStorer }
Click to show internal directories.
Click to hide internal directories.