cmd

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 34 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

func (*GrpcServer) BuildIndex added in v0.9.14

func (s *GrpcServer) BuildIndex(
	ctx context.Context,
	req *protosearch.BuildRequest,
) (res *protosearch.BuildResponse, err error)

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