evictor

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package evictor provides a scalable worker Group implementing service.Service and service.Scalable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled   bool
	Interval  int64
	Instances int
}

Config configures the worker group.

type Group

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

Group is a scalable worker set.

func New

func New(ctx context.Context, name string, backend workers.EvictionBackend) *Group

func (*Group) Name added in v1.5.0

func (g *Group) Name() string

func (*Group) Replicas added in v1.5.0

func (g *Group) Replicas() int

func (*Group) Serve added in v1.5.0

func (g *Group) Serve(t orchestrator.Transport)

func (*Group) Transport added in v1.5.0

func (g *Group) Transport() orchestrator.Transport

Jump to

Keyboard shortcuts

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