Documentation ¶
Index ¶
- Constants
- func AfterServerBootstrapped(rail miso.Rail) error
- func BeforeServerBootstrapp(rail miso.Rail) error
- func IsRmErrorLogTaskEnabled() bool
- func RemoveErrorLogsBefore(rail miso.Rail, upperBound time.Time) error
- func SaveErrorLog(rail miso.Rail, evt LogLineEvent) error
- func WatchLogFile(rail miso.Rail, wc WatchConfig, nodeName string) error
- type Config
- type ListErrorLogReq
- type ListErrorLogResp
- type ListedErrorLog
- type LogBotConfig
- type LogLine
- type LogLineEvent
- type SaveErrorLogCmd
- type WatchConfig
Constants ¶
View Source
const (
ErrorLogEventBus = "event.bus.logbot.log.error"
)
View Source
const (
PropEnableRemoveErrLogTask = "logbot.remove-history-error-log"
)
View Source
const (
ResourceManageLogbot = "manage-logbot"
)
Variables ¶
This section is empty.
Functions ¶
func AfterServerBootstrapped ¶
func BeforeServerBootstrapp ¶
func IsRmErrorLogTaskEnabled ¶ added in v0.0.2
func IsRmErrorLogTaskEnabled() bool
func RemoveErrorLogsBefore ¶ added in v0.0.2
func SaveErrorLog ¶
func SaveErrorLog(rail miso.Rail, evt LogLineEvent) error
func WatchLogFile ¶
func WatchLogFile(rail miso.Rail, wc WatchConfig, nodeName string) error
Types ¶
type Config ¶
type Config struct {
Config LogBotConfig `mapstructure:"logbot"`
}
func LoadLogBotConfig ¶
func LoadLogBotConfig() Config
type ListErrorLogReq ¶
type ListErrorLogResp ¶
type ListErrorLogResp struct { Page miso.Paging `json:"page"` Payload []ListedErrorLog `json:"payload"` }
func ListErrorLogs ¶
func ListErrorLogs(rail miso.Rail, r ListErrorLogReq) (ListErrorLogResp, error)
type ListedErrorLog ¶
type LogBotConfig ¶
type LogBotConfig struct { NodeName string `mapstructure:"node"` WatchConfigs []WatchConfig `mapstructure:"watch"` }
type LogLineEvent ¶
type SaveErrorLogCmd ¶
type WatchConfig ¶
Click to show internal directories.
Click to hide internal directories.