factory

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServerFactory

type AppServerFactory interface {
	Serve()
	Shutdown(ctx context.Context)
	Name() string
}

AppServerFactory factory for server and/or worker abstraction

type ModuleFactory

type ModuleFactory interface {
	RESTHandler() interfaces.RESTHandler
	GRPCHandler() interfaces.GRPCHandler
	GraphQLHandler() interfaces.GraphQLHandler
	WorkerHandler(workerType types.Worker) interfaces.WorkerHandler
	Name() types.Module

	// Additional server type (another rest framework, p2p, and many more)
	ServerHandler(serverType types.Server) interfaces.ServerHandler
}

ModuleFactory factory

type ServiceFactory

type ServiceFactory interface {
	GetConfig() *config.Config
	GetDependency() dependency.Dependency
	GetApplications() []AppServerFactory
	GetModules() []ModuleFactory
	Name() types.Service
}

ServiceFactory factory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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