Documentation ¶
Index ¶
- func NewAppFromEnvironmentConfig(service factory.ServiceFactory) (apps []factory.AppServerFactory)
- func SetupCronWorker(service factory.ServiceFactory, opts ...cronworker.OptionFunc) factory.AppServerFactory
- func SetupGRPCServer(service factory.ServiceFactory, opts ...grpcserver.OptionFunc) factory.AppServerFactory
- func SetupGraphQLServer(service factory.ServiceFactory, opts ...graphqlserver.OptionFunc) factory.AppServerFactory
- func SetupKafkaWorker(service factory.ServiceFactory, opts ...kafkaworker.OptionFunc) factory.AppServerFactory
- func SetupPostgresWorker(service factory.ServiceFactory, opts ...postgresworker.OptionFunc) factory.AppServerFactory
- func SetupRESTServer(service factory.ServiceFactory, opts ...restserver.OptionFunc) factory.AppServerFactory
- func SetupRabbitMQWorker(service factory.ServiceFactory, opts ...rabbitmqworker.OptionFunc) factory.AppServerFactory
- func SetupRedisWorker(service factory.ServiceFactory, opts ...redisworker.OptionFunc) factory.AppServerFactory
- func SetupTaskQueueWorker(service factory.ServiceFactory, opts ...taskqueueworker.OptionFunc) factory.AppServerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppFromEnvironmentConfig ¶
func NewAppFromEnvironmentConfig(service factory.ServiceFactory) (apps []factory.AppServerFactory)
NewAppFromEnvironmentConfig constructor
Construct server/worker for running application from environment value
## Server
USE_REST=[bool]
USE_GRPC=[bool]
USE_GRAPHQL=[bool]
## Worker
USE_KAFKA_CONSUMER=[bool] # event driven handler
USE_CRON_SCHEDULER=[bool] # static scheduler
USE_REDIS_SUBSCRIBER=[bool] # dynamic scheduler
USE_TASK_QUEUE_WORKER=[bool]
USE_POSTGRES_LISTENER_WORKER=[bool]
USE_RABBITMQ_CONSUMER=[bool] # event driven handler and dynamic scheduler
func SetupCronWorker ¶ added in v1.8.6
func SetupCronWorker(service factory.ServiceFactory, opts ...cronworker.OptionFunc) factory.AppServerFactory
SetupCronWorker setup cron worker with default config, copy this function if you want to construct with custom config
func SetupGRPCServer ¶ added in v1.8.6
func SetupGRPCServer(service factory.ServiceFactory, opts ...grpcserver.OptionFunc) factory.AppServerFactory
SetupGRPCServer setup grpc server with default config
func SetupGraphQLServer ¶ added in v1.8.6
func SetupGraphQLServer(service factory.ServiceFactory, opts ...graphqlserver.OptionFunc) factory.AppServerFactory
SetupGraphQLServer setup graphql server with default config
func SetupKafkaWorker ¶ added in v1.8.6
func SetupKafkaWorker(service factory.ServiceFactory, opts ...kafkaworker.OptionFunc) factory.AppServerFactory
SetupKafkaWorker setup kafka worker with default config
func SetupPostgresWorker ¶ added in v1.8.6
func SetupPostgresWorker(service factory.ServiceFactory, opts ...postgresworker.OptionFunc) factory.AppServerFactory
SetupPostgresWorker setup postgres worker with default config
func SetupRESTServer ¶ added in v1.8.6
func SetupRESTServer(service factory.ServiceFactory, opts ...restserver.OptionFunc) factory.AppServerFactory
SetupRESTServer setup rest server with default config
func SetupRabbitMQWorker ¶ added in v1.8.6
func SetupRabbitMQWorker(service factory.ServiceFactory, opts ...rabbitmqworker.OptionFunc) factory.AppServerFactory
SetupRabbitMQWorker setup rabbitmq worker with default config
func SetupRedisWorker ¶ added in v1.8.6
func SetupRedisWorker(service factory.ServiceFactory, opts ...redisworker.OptionFunc) factory.AppServerFactory
SetupRedisWorker setup redis worker with default config
func SetupTaskQueueWorker ¶ added in v1.8.6
func SetupTaskQueueWorker(service factory.ServiceFactory, opts ...taskqueueworker.OptionFunc) factory.AppServerFactory
SetupTaskQueueWorker setup task queue worker with default config
Types ¶
This section is empty.