srvcadence

package module
v0.0.0-...-b740f83 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 9 Imported by: 0

README

cadencesrv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Register

type Register interface {
	Register(r worker.Registry)
}

type Worker

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

func NewWorker

func NewWorker(ctx context.Context, opts ...WorkerOption) *Worker

func (*Worker) Close

func (w *Worker) Close(ctx context.Context) error

func (*Worker) Listen

func (w *Worker) Listen(_ context.Context) error

func (*Worker) Name

func (w *Worker) Name() string

type WorkerOption

type WorkerOption func(o *workerOpts)

func WithClientName

func WithClientName(clientName string) WorkerOption

func WithDomain

func WithDomain(domain string) WorkerOption

func WithHostPort

func WithHostPort(hostPort string) WorkerOption

func WithName

func WithName(name string) WorkerOption

func WithOutboundKey

func WithOutboundKey(outboundKey string) WorkerOption

func WithRegister

func WithRegister(register ...Register) WorkerOption

func WithTaskListName

func WithTaskListName(taskListName string) WorkerOption

Jump to

Keyboard shortcuts

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