service

package module
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 19 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(cmd *cobra.Command, svc Service)

Types

type Option

type Option = optionutil.I[Options]

func WithArguments

func WithArguments(arguments ...string) Option

func WithDescription

func WithDescription(description string) Option

func WithDisplayName

func WithDisplayName(displayName string) Option

func WithEnvVars

func WithEnvVars(envVars map[string]string) Option

type Options

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

type Service

type Service = service.Service

func New

func New(name string, run func(context.Context), options ...Option) Service

Jump to

Keyboard shortcuts

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