impl

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskLogEvent

type TaskLogEvent struct {
	Log    *tasklog.TaskLog `json:"log"`
	TaskId string           `json:"task_id"`
}

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

QueryTaskLog implements log.Service.

func (*TaskLogServiceImpl) SaveTaskLog

func (i *TaskLogServiceImpl) SaveTaskLog(ctx context.Context, in *tasklog.TaskLog) error

SaveTaskLog implements log.Service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL