microservice

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCServer

func GRPCServer(reg GRPCRegistrationFunc, opts ...grpc.ServerOption) *grpc.Server

func Launch

func Launch[T any](name, version string, defaultCfg []byte, cfg T, svc Service[T])

TODO handle exit signals

Types

type GRPCRegistrationFunc

type GRPCRegistrationFunc func(server *grpc.Server)

type Runnable

type Runnable interface {
	Run() error
}

type Service

type Service[T any] interface {
	Runnable
	Wireable[T]
}

type Wireable

type Wireable[T any] interface {
	Wire(cfg T) error
}

Jump to

Keyboard shortcuts

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