worker

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ID          uint64
	Name        string
	Version     string
	Connection  *nats.Conn
	Repository  *repository.Repository
	Filesystems map[string]risoros.FS
	EventCh     chan<- Event
}

type Event

type Event any

type EventWorkerStarted

type EventWorkerStarted struct {
	WorkerID    uint64
	ServiceName string
	ServiceID   string
}

type EventWorkerStopped

type EventWorkerStopped struct {
	WorkerID uint64
	Reason   any
}

type Service

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

func New

func New(args Arguments) *Service

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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