factory

package
v1.10.14 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 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 {
	// Basic server type (current using echo rest framework)
	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