Documentation
¶
Index ¶
- func NewServer(cfg config.Containable, opt ...grpc.ServerOption) (*grpc.Server, error)
- func Register(ctx context.Context, id string, controller controls.Controllable, ...) error
- func Start(cfg config.Containable, logger *slog.Logger, srv *grpc.Server) controls.StartFunc
- func Status()
- func Stop(logger *slog.Logger, srv *grpc.Server) controls.StopFunc
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 ¶ added in v1.0.7
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.