task

package
v1.5.3-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CompactionInterval = 10 * time.Second
View Source
const (
	MaxRetryNumber = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompactService

type CompactService struct {
	Service
	// contains filtered or unexported fields
}

func NewCompactService

func NewCompactService(interval time.Duration, engine engine.Engine) *CompactService

type Service

type Service struct {
	MetaClient meta.MetaClient
	// contains filtered or unexported fields
}

func NewService

func NewService(engine engine.Engine) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) Open

func (s *Service) Open() error

func (*Service) ProcessGetTask

func (s *Service) ProcessGetTask(typ scheduler.TaskType) (scheduler.Task, uint64, error)

func (*Service) SendRequestOnNode

func (s *Service) SendRequestOnNode(nodeID uint64, typ uint8, req codec.BinaryCodec) (interface{}, error)

func (*Service) WithLogger

func (s *Service) WithLogger(logger *logger.Logger)

Jump to

Keyboard shortcuts

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