Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK Status = "ok" Failed = "failed" Pending = "pending" DoesNotExist = "does_not_exist" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Group ¶
type Group struct { ID string Dependencies []Dependency }
type Manager ¶
type Manager interface { LoadDependencies(ctx context.Context, ids ...string) ([]Dependency, error) LoadGroups(ctx context.Context, ids ...string) ([]Group, error) Resolve(ctx context.Context, values ...Dependency) error NewDependencies(ctx context.Context, n int) ([]Dependency, error) // NewGroup generates id for a group, which then can be passed to SaveGroup NewGroup(ctx context.Context) (groupId string, err error) InitializeGroup(ctx context.Context, groupId string, dependencyIds ...string) error ReadyGroups(ctx context.Context) (<-chan string, error) }
Click to show internal directories.
Click to hide internal directories.