dependency

package
v0.0.0-...-75be81d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 1 Imported by: 0

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 Dependency struct {
	ID     string
	Status Status
}

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)
}

type Status

type Status string

Directories

Path Synopsis
postgres

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL