Documentation
¶
Index ¶
- type BlocApp
- func (bA *BlocApp) CreateFunctionRunLogger(funcRunRecordID value_object.UUID) *log.Logger
- func (blocApp *BlocApp) CrontabWatcher()
- func (blocApp *BlocApp) FlowTaskFinishedConsumer()
- func (blocApp *BlocApp) FlowTaskStartConsumer()
- func (blocApp *BlocApp) FunctionRunConsumer()
- func (bloc *BlocApp) GetConfigBuilder() *ConfigBuilder
- func (bA *BlocApp) GetFunctionByRepoID(functionRepoID value_object.UUID) *aggregate.Function
- func (bA *BlocApp) GetOrCreateConsumerObjectStorage() object_storage.ObjectStorage
- func (bA *BlocApp) GetOrCreateEventMQ() mq.MsgQueue
- func (bA *BlocApp) GetOrCreateFlowRepository() flow_repository.FlowRepository
- func (bA *BlocApp) GetOrCreateFlowRunRecordRepository() flowRunRecord_repository.FlowRunRecordRepository
- func (bA *BlocApp) GetOrCreateFuncRunHBeatRepository() function_execute_heartbeat_repository.FunctionExecuteHeartbeatRepository
- func (bA *BlocApp) GetOrCreateFunctionRepository() function_repository.FunctionRepository
- func (bA *BlocApp) GetOrCreateFunctionRunRecordRepository() funcRunRec_repository.FunctionRunRecordRepository
- func (bA *BlocApp) GetOrCreateFutureEventStorage() event.FuturePubEventStorage
- func (bA *BlocApp) GetOrCreateHttpLogger() *log.Logger
- func (bA *BlocApp) GetOrCreateLogBackEnd() (log_collect_backend.LogBackEnd, error)
- func (bA *BlocApp) GetOrCreateScheduleLogger() *log.Logger
- func (bA *BlocApp) GetOrCreateUserRepository() user_repository.UserRepository
- func (bA *BlocApp) HttpAddress() string
- func (bA *BlocApp) HttpListener() net.Listener
- func (bA *BlocApp) InitialUserInfo() (name, rawPassword string)
- func (blocApp *BlocApp) RePubDeadRuns()
- func (bA *BlocApp) Run()
- func (blocApp *BlocApp) RunHttpServer()
- func (blocApp *BlocApp) RunScheduler()
- type ConfigBuilder
- func (congbder *ConfigBuilder) BuildUp()
- func (confbder *ConfigBuilder) SetDefaultUser(name, password string) *ConfigBuilder
- func (confbder *ConfigBuilder) SetHttpServer(ip string, port int) *ConfigBuilder
- func (confbder *ConfigBuilder) SetInfluxDBConfig(user, password, address, organization, token string) *ConfigBuilder
- func (confbder *ConfigBuilder) SetLogConfig(maxKeepDays int) *ConfigBuilder
- func (confbder *ConfigBuilder) SetMinioConfig(bucketName string, addresses []string, key, password string) *ConfigBuilder
- func (confbder *ConfigBuilder) SetMongoConfig(user, password string, addresses []string, ...) *ConfigBuilder
- func (confbder *ConfigBuilder) SetRabbitConfig(user, password string, host []string, vHost string) *ConfigBuilder
- type DefaultUserConfig
- type HttpServerConfig
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlocApp ¶
func NewBlocApp ¶
func (*BlocApp) CreateFunctionRunLogger ¶
func (bA *BlocApp) CreateFunctionRunLogger(funcRunRecordID value_object.UUID) *log.Logger
func (*BlocApp) CrontabWatcher ¶
func (blocApp *BlocApp) CrontabWatcher()
CrontabWatcher 分钟接别的观测配置了crontab的flow并进行发起
func (*BlocApp) FlowTaskFinishedConsumer ¶
func (blocApp *BlocApp) FlowTaskFinishedConsumer()
FlowTaskFinishedConsumer receive flow run finished event
func (*BlocApp) FlowTaskStartConsumer ¶
func (blocApp *BlocApp) FlowTaskStartConsumer()
func (*BlocApp) FunctionRunConsumer ¶
func (blocApp *BlocApp) FunctionRunConsumer()
FunctionRunConsumer 接收到要运行的function,主要有以下预操作: 1. 装配ipt具体值 2. 检测是否已超时 3. 都没问题发布client能识别的的运行消息
func (*BlocApp) GetConfigBuilder ¶
func (bloc *BlocApp) GetConfigBuilder() *ConfigBuilder
GetConfigBuilder
func (*BlocApp) GetFunctionByRepoID ¶
func (bA *BlocApp) GetFunctionByRepoID(functionRepoID value_object.UUID) *aggregate.Function
func (*BlocApp) GetOrCreateConsumerObjectStorage ¶
func (bA *BlocApp) GetOrCreateConsumerObjectStorage() object_storage.ObjectStorage
func (*BlocApp) GetOrCreateEventMQ ¶
func (*BlocApp) GetOrCreateFlowRepository ¶
func (bA *BlocApp) GetOrCreateFlowRepository() flow_repository.FlowRepository
func (*BlocApp) GetOrCreateFlowRunRecordRepository ¶
func (bA *BlocApp) GetOrCreateFlowRunRecordRepository() flowRunRecord_repository.FlowRunRecordRepository
func (*BlocApp) GetOrCreateFuncRunHBeatRepository ¶
func (bA *BlocApp) GetOrCreateFuncRunHBeatRepository() function_execute_heartbeat_repository.FunctionExecuteHeartbeatRepository
func (*BlocApp) GetOrCreateFunctionRepository ¶
func (bA *BlocApp) GetOrCreateFunctionRepository() function_repository.FunctionRepository
func (*BlocApp) GetOrCreateFunctionRunRecordRepository ¶
func (bA *BlocApp) GetOrCreateFunctionRunRecordRepository() funcRunRec_repository.FunctionRunRecordRepository
func (*BlocApp) GetOrCreateFutureEventStorage ¶
func (bA *BlocApp) GetOrCreateFutureEventStorage() event.FuturePubEventStorage
func (*BlocApp) GetOrCreateHttpLogger ¶
func (*BlocApp) GetOrCreateLogBackEnd ¶
func (bA *BlocApp) GetOrCreateLogBackEnd() (log_collect_backend.LogBackEnd, error)
func (*BlocApp) GetOrCreateScheduleLogger ¶
func (*BlocApp) GetOrCreateUserRepository ¶
func (bA *BlocApp) GetOrCreateUserRepository() user_repository.UserRepository
func (*BlocApp) HttpAddress ¶
func (*BlocApp) HttpListener ¶
func (*BlocApp) InitialUserInfo ¶
func (*BlocApp) RunHttpServer ¶
func (blocApp *BlocApp) RunHttpServer()
func (*BlocApp) RunScheduler ¶
func (blocApp *BlocApp) RunScheduler()
type ConfigBuilder ¶
type ConfigBuilder struct { DefaultUserConf *DefaultUserConfig HttpServerConf *HttpServerConfig RabbitConf *rabbit_conn.RabbitConfig InfluxDBConf *influxdb.InfluxDBConfig LogConf *LogConfig // contains filtered or unexported fields }
func (*ConfigBuilder) BuildUp ¶
func (congbder *ConfigBuilder) BuildUp()
BuildUp 对于必须要输入的做输入检查 & 有效性检查
func (*ConfigBuilder) SetDefaultUser ¶
func (confbder *ConfigBuilder) SetDefaultUser(name, password string) *ConfigBuilder
func (*ConfigBuilder) SetHttpServer ¶
func (confbder *ConfigBuilder) SetHttpServer(ip string, port int) *ConfigBuilder
func (*ConfigBuilder) SetInfluxDBConfig ¶
func (confbder *ConfigBuilder) SetInfluxDBConfig( user, password, address, organization, token string, ) *ConfigBuilder
func (*ConfigBuilder) SetLogConfig ¶
func (confbder *ConfigBuilder) SetLogConfig(maxKeepDays int) *ConfigBuilder
func (*ConfigBuilder) SetMinioConfig ¶
func (confbder *ConfigBuilder) SetMinioConfig( bucketName string, addresses []string, key, password string) *ConfigBuilder
func (*ConfigBuilder) SetMongoConfig ¶
func (confbder *ConfigBuilder) SetMongoConfig( user, password string, addresses []string, defaultDB, replicaSetName, authSource string, ) *ConfigBuilder
func (*ConfigBuilder) SetRabbitConfig ¶
func (confbder *ConfigBuilder) SetRabbitConfig( user, password string, host []string, vHost string, ) *ConfigBuilder
type DefaultUserConfig ¶
func (*DefaultUserConfig) IsNil ¶
func (dUC *DefaultUserConfig) IsNil() bool
type HttpServerConfig ¶
func (*HttpServerConfig) HttpAddress ¶
func (hSC *HttpServerConfig) HttpAddress() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.