Documentation ¶
Index ¶
- func NewAppFromEnvironmentConfig(service factory.ServiceFactory) (apps []factory.AppServerFactory)
- func SetupCronWorker(service factory.ServiceFactory) factory.AppServerFactory
- func SetupGRPCServer(service factory.ServiceFactory) factory.AppServerFactory
- func SetupGraphQLServer(service factory.ServiceFactory) factory.AppServerFactory
- func SetupKafkaWorker(service factory.ServiceFactory) factory.AppServerFactory
- func SetupPostgresWorker(service factory.ServiceFactory) factory.AppServerFactory
- func SetupRESTServer(service factory.ServiceFactory) factory.AppServerFactory
- func SetupRabbitMQWorker(service factory.ServiceFactory) factory.AppServerFactory
- func SetupRedisWorker(service factory.ServiceFactory) factory.AppServerFactory
- func SetupTaskQueueWorker(service factory.ServiceFactory) 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) 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) factory.AppServerFactory
SetupGRPCServer setup cron worker with default config
func SetupGraphQLServer ¶ added in v1.8.6
func SetupGraphQLServer(service factory.ServiceFactory) factory.AppServerFactory
SetupGraphQLServer setup cron worker with default config
func SetupKafkaWorker ¶ added in v1.8.6
func SetupKafkaWorker(service factory.ServiceFactory) factory.AppServerFactory
SetupKafkaWorker setup cron worker with default config
func SetupPostgresWorker ¶ added in v1.8.6
func SetupPostgresWorker(service factory.ServiceFactory) factory.AppServerFactory
SetupPostgresWorker setup cron worker with default config
func SetupRESTServer ¶ added in v1.8.6
func SetupRESTServer(service factory.ServiceFactory) factory.AppServerFactory
SetupRESTServer setup cron worker with default config
func SetupRabbitMQWorker ¶ added in v1.8.6
func SetupRabbitMQWorker(service factory.ServiceFactory) factory.AppServerFactory
SetupRabbitMQWorker setup cron worker with default config
func SetupRedisWorker ¶ added in v1.8.6
func SetupRedisWorker(service factory.ServiceFactory) factory.AppServerFactory
SetupRedisWorker setup cron worker with default config
func SetupTaskQueueWorker ¶ added in v1.8.6
func SetupTaskQueueWorker(service factory.ServiceFactory) factory.AppServerFactory
SetupTaskQueueWorker setup cron worker with default config
Types ¶
This section is empty.