Documentation ¶
Index ¶
- func NewEventController(cc container.Container) web.Controller
- type EventController
- func (m *EventController) AddCommonEvent(ctx web.Context, messageStore store.EventStore) web.Response
- func (m *EventController) AddGrafanaEvent(ctx web.Context, messageStore store.EventStore) web.Response
- func (m *EventController) AddLogstashEvent(ctx web.Context, messageStore store.EventStore) web.Response
- func (m *EventController) AddOpenFalconEvent(ctx web.Context, messageStore store.EventStore) web.Response
- func (m *EventController) AddPrometheusAlertEvent(ctx web.Context, messageStore store.EventStore) web.Response
- func (m *EventController) AddPrometheusEvent(ctx web.Context, messageStore store.EventStore) web.Response
- func (m *EventController) Register(router *web.Router)
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventController ¶
func NewEventController(cc container.Container) web.Controller
Types ¶
type EventController ¶
type EventController struct {
// contains filtered or unexported fields
}
func (*EventController) AddCommonEvent ¶
func (m *EventController) AddCommonEvent(ctx web.Context, messageStore store.EventStore) web.Response
func (*EventController) AddGrafanaEvent ¶
func (m *EventController) AddGrafanaEvent(ctx web.Context, messageStore store.EventStore) web.Response
Add grafana message
func (*EventController) AddLogstashEvent ¶
func (m *EventController) AddLogstashEvent(ctx web.Context, messageStore store.EventStore) web.Response
AddLogstashEvent Add logstash message
func (*EventController) AddOpenFalconEvent ¶
func (m *EventController) AddOpenFalconEvent(ctx web.Context, messageStore store.EventStore) web.Response
add open-falcon message
func (*EventController) AddPrometheusAlertEvent ¶
func (m *EventController) AddPrometheusAlertEvent(ctx web.Context, messageStore store.EventStore) web.Response
add prometheus-alert message
func (*EventController) AddPrometheusEvent ¶
func (m *EventController) AddPrometheusEvent(ctx web.Context, messageStore store.EventStore) web.Response
add prometheus alert message
func (*EventController) Register ¶
func (m *EventController) Register(router *web.Router)
type ServiceProvider ¶
type ServiceProvider struct{}
func (ServiceProvider) Boot ¶
func (s ServiceProvider) Boot(app infra.Glacier)
func (ServiceProvider) Register ¶
func (s ServiceProvider) Register(app container.Container)
Click to show internal directories.
Click to hide internal directories.