server

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JobServerName = "job"
)

Variables

This section is empty.

Functions

func GrpcRegisterServer added in v0.1.3

func GrpcRegisterServer(srv *grpc.Server, comps *app.AppOptions)

Get auto translation setting from configuration, default is true (enabled)

Types

type JobServer added in v0.1.3

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

func (*JobServer) AddTask added in v0.1.4

func (k *JobServer) AddTask(ctx context.Context, task string) error

func (*JobServer) Get added in v0.1.3

func (k *JobServer) Get() any

func (*JobServer) Start added in v0.1.3

func (k *JobServer) Start(ctx context.Context) error

func (*JobServer) Stop added in v0.1.3

func (k *JobServer) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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