service

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Register(ctx context.Context, req domain.Worker) (int64, error)
	FindOrRegisterByName(ctx context.Context, req domain.Worker) (domain.Worker, error)
	FindOrRegisterByKey(ctx context.Context, req domain.Worker) (domain.Worker, error)
	ListWorker(ctx context.Context, offset, limit int64) ([]domain.Worker, int64, error)
	UpdateStatus(ctx context.Context, id int64, status uint8) (int64, error)
	ValidationByName(ctx context.Context, name string) (bool, error)
	FindByName(ctx context.Context, name string) (domain.Worker, error)

	// Execute 推送消息到Kafka
	Execute(ctx context.Context, req domain.Execute) error
}

Jump to

Keyboard shortcuts

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