gateway

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPServerModule = fx.Module("http_server",
	fx.Provide(
		New,
	),
)

Functions

func New added in v0.0.15

func New(p Params) (*gin.Engine, error)

func RegisterRoutes added in v0.0.15

func RegisterRoutes(r *gin.Engine, clusterHandler *handler.Cluster) *gin.Engine

Types

type Params added in v0.0.15

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger *slog.Logger
	Config *config.Config

	ClusterHandler *handler.Cluster // Use annotations for easily adding new handlers on the go instead of "just one"
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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