backend

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UCPProviderName = "System.Resources"
)

Variables

This section is empty.

Functions

func RegisterControllers added in v0.29.0

func RegisterControllers(ctx context.Context, registry *worker.ControllerRegistry, opts ctrl.Options) error

RegisterControllers registers the controllers for the UCP backend.

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.

Directories

Path Synopsis
controller

Jump to

Keyboard shortcuts

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