module

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module is the module for the server.

Functions

This section is empty.

Types

type BinderFunc

type BinderFunc func(*zap.Logger) ([]LifecycleHook, error)

type LifecycleHook

type LifecycleHook = func(lc fx.Lifecycle)

type ServiceBinder

type ServiceBinder struct {
	fx.In
	mfx.AppParams // app settings params

	sfx.SettingsParams         // server settings
	sfx.SecuritySettingsParams // server security settings

	sfx.ConnectionMuxParams  // connection mux params
	sfx.GrpcServiceParams    //all grpc service injected (grpc)
	sfx.ZinxServiceParams    // all zinx service injected (tcp/udp/websocket)
	sfx.GatewayServiceParams // all gateway service injected (http)
	sfx.AuthMiddlewareParams // grpc rpc auth middleware injected
	sfx.OTelProviderParams   // opentelemetry provider injected
}

ServiceBinder bind all register services to the server Service types: grpc, zinx, gateway and opentelemetry provider

func (*ServiceBinder) Bind

func (sb *ServiceBinder) Bind(l *zap.Logger, lc fx.Lifecycle) error

Bind all types service to the specified server

Jump to

Keyboard shortcuts

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