Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { io.Closer // Create creates an object in the store Create(ctx context.Context, object *topoapi.Object) error // Update updates an existing object in the store Update(ctx context.Context, object *topoapi.Object) error // Get retrieves an object from the store Get(ctx context.Context, id topoapi.ID) (*topoapi.Object, error) // Delete deletes a object from the store Delete(ctx context.Context, id topoapi.ID, revision topoapi.Revision) error // List streams objects to the given channel List(ctx context.Context, filters *topoapi.Filters) ([]topoapi.Object, error) // Watch streams object events to the given channel Watch(ctx context.Context, ch chan<- topoapi.Event, filters *topoapi.Filters, opts ...WatchOption) error }
Store stores topology information
type WatchOption ¶
type WatchOption interface {
// contains filtered or unexported methods
}
WatchOption is a configuration option for Watch calls
func WithReplay ¶
func WithReplay() WatchOption
WithReplay returns a WatchOption that replays past changes
Click to show internal directories.
Click to hide internal directories.