backend

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UCPProviderName = "ucp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	worker.Service
}

Service is a service to run AsyncReqeustProcessWorker.

func NewService

func NewService(options hostoptions.HostOptions) *Service

NewService creates new service instance to run AsyncReqeustProcessWorker.

func (*Service) Name

func (w *Service) Name() string

Name returns a string containing the UCPProviderName and the text "async worker".

func (*Service) Run

func (w *Service) Run(ctx context.Context) error

Run starts the service and worker. It initializes the service and sets the worker options based on the configuration, then starts the service with the given worker options. It returns an error if the initialization fails.

Jump to

Keyboard shortcuts

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