gc

package
v1.6.0 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: 9 Imported by: 0

Documentation

Overview

Package gc provides a scalable worker Group implementing service.Service and service.Scalable, identical по архитектуре evictor.Group, но вместо эвикции делает принудительный GC.

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 (оставлено для симметрии с evictor).

type Group

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

Group is a scalable worker set (аналогично evictor.Group).

func New

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

func (*Group) Name

func (g *Group) Name() string

func (*Group) Replicas

func (g *Group) Replicas() int

func (*Group) Serve

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

func (*Group) Transport

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

Jump to

Keyboard shortcuts

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