Documentation
¶
Overview ¶
只为了测试xxljob配合链路追踪的日志输出,将zap封装成kratos log
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool ServerAddr string AccessToken string Timeout *durationpb.Duration ExecutorIp string ExecutorPort int32 RegistryKey string }
func (*Config) GetAccessToken ¶
func (*Config) GetEnabled ¶
func (*Config) GetExecutorIp ¶
func (*Config) GetExecutorPort ¶
func (*Config) GetRegistryKey ¶
func (*Config) GetServerAddr ¶
func (*Config) GetTimeout ¶
func (c *Config) GetTimeout() *durationpb.Duration
type JobExecutor ¶
type JobExecutor struct {
// contains filtered or unexported fields
}
func NewJobExecutor ¶
func (*JobExecutor) RegisterTask ¶
func (r *JobExecutor) RegisterTask(pattern string, fn JobFunc)
Click to show internal directories.
Click to hide internal directories.