service

package
v1.0.0-beta.18 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTasks

func RunTasks(logger logr.Logger, service Service, tasks []proto.Task) error

Types

type Service

type Service interface {
	Kind() string
	URI() string

	Start() error

	HandleConn(ctx context.Context, conn net.Conn) error

	HandleRequest(ctx context.Context, payload []byte) ([]byte, error)
}

func New

func New(logger logr.Logger, actions []proto.Action, probes []proto.Probe, streaming []string) ([]Service, error)

Jump to

Keyboard shortcuts

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