Documentation ¶
Index ¶
Constants ¶
View Source
const ( FileBeatIndexDir = "../../data/filebeat" FileBeatIndex = "../../data/filebeat/config_index.json" FileBeatConfig = "../../log/config/filebeat.yml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { AppRoot string //the root path of app // contains filtered or unexported fields }
RemoteScriptService execute the method of app
func NewRemoteScriptService ¶
func NewRemoteScriptService(cfg *env.Properties) (*Agent, error)
type AppService ¶
AppService
type HttpService ¶
type HttpService struct {
Controller *rest.RestController `inject:"RestController"`
}
func (*HttpService) Init ¶
func (p *HttpService) Init() error
type LogConfigService ¶
type LogConfigService struct {
AppService *AppService `inject:"App"`
}
LogConfigService merge all filebeat's configs into one
func (*LogConfigService) Add ¶
func (p *LogConfigService) Add(file string) error
Add a filebeat config of app
func (*LogConfigService) Handle ¶
func (p *LogConfigService) Handle(event string, data interface{})
func (*LogConfigService) Init ¶
func (p *LogConfigService) Init() error
func (*LogConfigService) Remove ¶
func (p *LogConfigService) Remove(file string) error
Remove a filebeat config of app
type RemoteScriptServiceFactory ¶
type RemoteScriptServiceFactory struct { }
RemoteScriptServiceFactory
func (*RemoteScriptServiceFactory) New ¶
func (p *RemoteScriptServiceFactory) New() interface{}
Click to show internal directories.
Click to hide internal directories.