grpc

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC transport for the controls lifecycle controller, enabling remote service management and health checking over gRPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg config.Containable, opt ...grpc.ServerOption) (*grpc.Server, error)

NewServer returns a new preconfigured grpc.Server.

func Register

func Register(ctx context.Context, id string, controller controls.Controllable, cfg config.Containable, logger *slog.Logger, opt ...grpc.ServerOption) error

Register creates a new gRPC server and registers it with the controller under the given id.

func Start

func Start(cfg config.Containable, logger *slog.Logger, srv *grpc.Server) controls.StartFunc

Start returns a curried function suitable for use with the controls package.

func Status

func Status()

Status returns a curried function suitable for use with the controls package.

func Stop

func Stop(logger *slog.Logger, srv *grpc.Server) controls.StopFunc

Stop returns a curried function suitable for use with the controls package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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