bootstrap

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadGrpcService

func LoadGrpcService(ctx context.Context, server *grpc.Server, reg *registry.AppRegistry, loaders ...LoaderGrpcFunc) error

func LoadRegistry

func LoadRegistry(ctx context.Context, reg *registry.AppRegistry, loaders ...LoaderRegistryFunc) error

func LoadRouter

func LoadRouter(router chi.Router, loaders ...LoaderRouter)

Types

type LoaderGrpcFunc

type LoaderGrpcFunc interface {
	Loader(ctx context.Context, server *grpc.Server, reg *registry.AppRegistry) error
}

type LoaderRegistryFunc

type LoaderRegistryFunc interface {
	Loader(ctx context.Context, dep *registry.AppRegistry) error
}

type LoaderRouter

type LoaderRouter interface {
	Loader(router chi.Router) LoaderRouter
	Route()
}

Jump to

Keyboard shortcuts

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