Documentation
¶
Index ¶
- func NewSignalGroup(backgroundContext context.Context) (context.Context, *errgroup.Group)
- func RunFiber(ctx context.Context, group *errgroup.Group, fiberApp FiberApp, addr string)
- func RunGRPC(ctx context.Context, group *errgroup.Group, grpcServer GRPCServer, addr string)
- func RunHandler(ctx context.Context, group *errgroup.Group, handler http.Handler, addr string)
- type FiberApp
- type GRPCServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSignalGroup ¶
NewSignalGroup creates a new context and error group that handles OS interrupt signals.
func RunFiber ¶
RunFiber starts a Fiber application in a new goroutine and shuts it down when the context is cancelled.
Types ¶
type GRPCServer ¶
GRPCServer is an interface that represents a gRPC server.
Click to show internal directories.
Click to hide internal directories.