cleanup

package
v0.0.0-...-e5acbb5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CleanupFx = fx.Options(
	fx.Provide(
		GetCleanupConfig,
	),
)

CleanupFx will provide the constructor method GetCleanupConfig.

Functions

func Cleanup

func Cleanup(lc fx.Lifecycle, config *Config)

Cleanup /*

Types

type Config

type Config struct {
	//Db *gorm.DB
	GrpcServerConnection *grpc.Server
	GrpcClientConnection *grpc.ClientConn
	JaegerCloser         io.Closer
}

Config CleanupConfig : cleanup config is the configuration of closing the instance. more type will be added in cleanup config if we stop or destroy the instance.

func GetCleanupConfig

func GetCleanupConfig(
	GrpcServerConnection *grpc.Server,
	GrpcClientConnection *grpc.ClientConn,
	JaegerCloser io.Closer) *Config

GetCleanupConfig GetCleanupConfig: Get cleanup config is the constructor.

required all the closing instance

Jump to

Keyboard shortcuts

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