poolservice

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClusterAvailable = errors.New("cluster is unavailable, please check the slots")
View Source
var ErrClusterMigrating = errors.New("the cluster is migrating")
View Source
var ErrDagNodeAlreadyExist = errors.New("this dag node already exists")
View Source
var ErrDagNodeNotFound = errors.New("this dag node does not exist")
View Source
var ErrDagNodeRemove = errors.New("this dag node still has slots and cannot be removed")

Functions

func NewDagPoolService

func NewDagPoolService(ctx context.Context, cfg config.PoolConfig) (*dagPoolService, error)

NewDagPoolService constructs a new DAGPool (using the default implementation).

Types

type ClusterState added in v0.4.0

type ClusterState int
const (
	StateOk ClusterState = iota
	StateMigrating
	StateFail
)

func (ClusterState) String added in v0.4.0

func (cs ClusterState) String() string

type GcControl added in v0.2.0

type GcControl struct {
	// contains filtered or unexported fields
}

func NewGcControl added in v0.2.0

func NewGcControl() *GcControl

func (*GcControl) Interrupt added in v0.2.0

func (c *GcControl) Interrupt() chan chan<- struct{}

func (*GcControl) WaitInterrupt added in v0.2.0

func (c *GcControl) WaitInterrupt()

type MigrateSlot added in v0.4.0

type MigrateSlot struct {
	From      string
	To        string
	SlotPairs []slotsmgr.SlotPair
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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