Documentation
¶
Index ¶
- type TaskLogEvent
- type TaskLogServiceImpl
- func (i *TaskLogServiceImpl) Close(ctx context.Context)
- func (i *TaskLogServiceImpl) GetLogBufferSize() int
- func (i *TaskLogServiceImpl) GetLogConsumerStats() map[string]interface{}
- func (i *TaskLogServiceImpl) Init() error
- func (i *TaskLogServiceImpl) Name() string
- func (i *TaskLogServiceImpl) QueryTaskLog(ctx context.Context, in *tasklog.QueryTaskLogRequest) (*types.Set[*tasklog.TaskLog], error)
- func (i *TaskLogServiceImpl) SaveTaskLog(ctx context.Context, in *tasklog.TaskLog) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskLogEvent ¶
TaskLogEvent 任务日志事件(用于bus消息总线)
type TaskLogServiceImpl ¶
type TaskLogServiceImpl struct {
ioc.ObjectImpl
// 异步批量日志处理配置
LogTopic string `json:"log_topic" toml:"log_topic" yaml:"log_topic"`
LogBatchIntervalSeconds int64 `json:"log_batch_interval_seconds" toml:"log_batch_interval_seconds" yaml:"log_batch_interval_seconds"`
LogBatchSize int `json:"log_batch_size" toml:"log_batch_size" yaml:"log_batch_size"`
// contains filtered or unexported fields
}
func (*TaskLogServiceImpl) Close ¶
func (i *TaskLogServiceImpl) Close(ctx context.Context)
func (*TaskLogServiceImpl) GetLogBufferSize ¶
func (i *TaskLogServiceImpl) GetLogBufferSize() int
GetLogBufferSize 获取当前日志缓冲区大小(用于监控)
func (*TaskLogServiceImpl) GetLogConsumerStats ¶
func (i *TaskLogServiceImpl) GetLogConsumerStats() map[string]interface{}
GetLogConsumerStats 获取日志消费者统计信息
func (*TaskLogServiceImpl) Init ¶
func (i *TaskLogServiceImpl) Init() error
func (*TaskLogServiceImpl) Name ¶
func (i *TaskLogServiceImpl) Name() string
func (*TaskLogServiceImpl) QueryTaskLog ¶
func (i *TaskLogServiceImpl) QueryTaskLog(ctx context.Context, in *tasklog.QueryTaskLogRequest) (*types.Set[*tasklog.TaskLog], error)
QueryTaskLog implements log.Service.
func (*TaskLogServiceImpl) SaveTaskLog ¶
SaveTaskLog implements log.Service.
Click to show internal directories.
Click to hide internal directories.