cmd

package
v0.9.0-RC3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

func CreateApp(conf *cfg.Config) *fiber.App

func RunGrpcServer added in v0.8.3

func RunGrpcServer(s *GrpcServer)

RunGrpcServer is the entry point for the GRPC server.

func SetupLogger

func SetupLogger(conf *cfg.Config, logger *zerolog.Logger) fiber.Handler

func SetupMiddlewares

func SetupMiddlewares(conf *cfg.Config,
	logger *zerolog.Logger,
) []fiber.Handler

func SetupWS added in v0.8.18

func SetupWS(app *fiber.App, routes ...string) websocket.Config

SetupWS MUST be called before SetupRoutes Otherwise the websocket handler will not be 'shadowed' by the static file handler

Types

type GrpcServer added in v0.8.3

type GrpcServer struct {
	shutdown.UnimplementedShutdownServiceServer
	protodb.UnimplementedDBServer
	App    *fiber.App
	Log    *zerolog.Logger
	Config *cfg.GrpcConfig
}

func (*GrpcServer) Init added in v0.8.5

func (*GrpcServer) Migrate added in v0.8.5

func (*GrpcServer) SendShutdown added in v0.8.3

Jump to

Keyboard shortcuts

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