SYMBOL INDEX (186 symbols across 36 files) FILE: cmd/daemon/configuration.go function configure (line 27) | func configure() { FILE: cmd/daemon/main.go function init (line 37) | func init() { function main (line 42) | func main() { FILE: examples/grpc_plugin/main.go type dummyEventHandler (line 25) | type dummyEventHandler struct method Handle (line 28) | func (d *dummyEventHandler) Handle(event *gp.CloudEvent) (*gp.Result, ... function init (line 36) | func init() { function main (line 40) | func main() { FILE: internal/ce/ce.go type Event (line 23) | type Event struct method GetExtensions (line 28) | func (e Event) GetExtensions() map[string]string { method getExtensionsForPrometheusAlert (line 42) | func (e Event) getExtensionsForPrometheusAlert() map[string]string { FILE: internal/flows/config.go type FlowConfig (line 27) | type FlowConfig struct method Validate (line 41) | func (c FlowConfig) Validate(plugins plugin.PluginManager, id string) ... type FlowConfigs (line 38) | type FlowConfigs FILE: internal/flows/event_dispatcher.go constant CEIncomingTopic (line 18) | CEIncomingTopic = "cloud.events.incoming" type baseEventSubscriber (line 21) | type baseEventSubscriber interface type eventSubscriber (line 25) | type eventSubscriber interface type flowEventDispatcher (line 29) | type flowEventDispatcher interface type eventDispatcher (line 33) | type eventDispatcher struct method SubscribeAsync (line 45) | func (b *eventDispatcher) SubscribeAsync(topic string, flow ActionFlow... function NewEventDispatcher (line 38) | func NewEventDispatcher(eb baseEventSubscriber) flowEventDispatcher { FILE: internal/flows/eventflow.go constant EventFlowCompleted (line 24) | EventFlowCompleted EventFlowStatus = "completed" constant EventFlowFailed (line 25) | EventFlowFailed EventFlowStatus = "failed" constant EventFlowInProgress (line 26) | EventFlowInProgress EventFlowStatus = "inprogress" constant EventFlowInitialized (line 27) | EventFlowInitialized EventFlowStatus = "initialized" constant EventFlowCoolingDown (line 28) | EventFlowCoolingDown EventFlowStatus = "coolingdown" type EventFlowStatus (line 31) | type EventFlowStatus type EventFlow (line 35) | type EventFlow struct method Exec (line 54) | func (ef *EventFlow) Exec() error { function NewEventFlow (line 44) | func NewEventFlow(flow *Flow, event *ce.Event) *EventFlow { FILE: internal/flows/flows.go type ActionFlow (line 29) | type ActionFlow interface type Flow (line 34) | type Flow struct method Handle (line 66) | func (f *Flow) Handle(event interface{}) { method handleEvent (line 79) | func (f *Flow) handleEvent(event *ce.Event) error { method createOrGetEventFlow (line 117) | func (f *Flow) createOrGetEventFlow(event *ce.Event, key string) (*Eve... method getEventKey (line 141) | func (f *Flow) getEventKey(event *ce.Event, groupBy []string) string { method isEventMatched (line 159) | func (f *Flow) isEventMatched(event *ce.Event) bool { method isEventTypeAllowed (line 173) | func (f *Flow) isEventTypeAllowed(eventType string) bool { function NewFlow (line 49) | func NewFlow(manager FlowManager, cache FlowStore, id string, name strin... FILE: internal/flows/manager.go type FlowManager (line 26) | type FlowManager interface type Manager (line 33) | type Manager struct method Logger (line 51) | func (m *Manager) Logger() log.Logger { method ErrorHandler (line 56) | func (m *Manager) ErrorHandler() emperror.Handler { method Plugins (line 61) | func (m *Manager) Plugins() plugin.PluginManager { method LoadFlows (line 67) | func (m *Manager) LoadFlows(v *viper.Viper) error { function NewManager (line 41) | func NewManager(logger log.Logger, errorHandler emperror.Handler, dispat... FILE: internal/flows/option.go type Option (line 20) | type Option interface type Cooldown (line 25) | type Cooldown method apply (line 27) | func (o Cooldown) apply(f *Flow) { type AllowedEvents (line 32) | type AllowedEvents method apply (line 34) | func (o AllowedEvents) apply(f *Flow) { type GroupBy (line 39) | type GroupBy method apply (line 41) | func (o GroupBy) apply(f *Flow) { type Plugins (line 46) | type Plugins method apply (line 48) | func (o Plugins) apply(f *Flow) { type Filters (line 53) | type Filters method apply (line 55) | func (o Filters) apply(f *Flow) { type Description (line 60) | type Description method apply (line 62) | func (o Description) apply(f *Flow) { FILE: internal/flows/store.go type FlowStore (line 23) | type FlowStore interface type InMemoryFlowStore (line 29) | type InMemoryFlowStore struct method Get (line 39) | func (i *InMemoryFlowStore) Get(key string) (*EventFlow, error) { method Set (line 49) | func (i *InMemoryFlowStore) Set(key string, ef *EventFlow, ttl time.Du... method Delete (line 54) | func (i *InMemoryFlowStore) Delete(key string) { function NewInMemFlowStore (line 33) | func NewInMemFlowStore() *InMemoryFlowStore { FILE: internal/platform/config/config.go constant ServiceName (line 33) | ServiceName = "hollowtrees" constant FriendlyServiceName (line 36) | FriendlyServiceName = "Hollowtrees" constant ConfigEnvPrefix (line 39) | ConfigEnvPrefix = "HT" type Config (line 44) | type Config struct method Validate (line 62) | func (c Config) Validate() error { function Configure (line 82) | func Configure(v *viper.Viper, p *pflag.FlagSet) { FILE: internal/platform/config/error_handler.go function ErrorHandler (line 31) | func ErrorHandler(logger log.Logger) emperror.Handler { function newErrorHandler (line 39) | func newErrorHandler(logger log.Logger) emperror.Handler { FILE: internal/platform/errors/handler.go type handler (line 23) | type handler struct method Handle (line 33) | func (h *handler) Handle(err error) { function NewHandler (line 28) | func NewHandler(logger log.Logger) *handler { FILE: internal/platform/errors/keyvals.go function ToMap (line 25) | func ToMap(keyvals []interface{}) map[string]interface{} { function merge (line 43) | func merge(dst map[string]interface{}, k, v interface{}) { function safeString (line 65) | func safeString(str fmt.Stringer) (s string) { function safeError (line 81) | func safeError(err error) (s interface{}) { FILE: internal/platform/gin/correlationid/logger.go constant correlationIdField (line 23) | correlationIdField = "correlation-id" function Logger (line 26) | func Logger(logger log.Logger, ctx *gin.Context) log.Logger { FILE: internal/platform/gin/correlationid/middleware.go constant ContextKey (line 23) | ContextKey = "correlationid" constant defaultHeader (line 26) | defaultHeader = "Correlation-ID" type MiddlewareOption (line 29) | type MiddlewareOption interface type Header (line 34) | type Header method apply (line 37) | func (h Header) apply(m *middleware) { function Middleware (line 42) | func Middleware(opts ...MiddlewareOption) gin.HandlerFunc { type middleware (line 56) | type middleware struct method Handle (line 61) | func (m *middleware) Handle(ctx *gin.Context) { FILE: internal/platform/gin/log/middleware.go constant correlationIdField (line 26) | correlationIdField = "correlation-id" function Middleware (line 29) | func Middleware(logger log.Logger, notlogged ...string) gin.HandlerFunc { FILE: internal/platform/healthcheck/config.go type Config (line 19) | type Config struct method Validate (line 25) | func (c Config) Validate() error { FILE: internal/platform/healthcheck/healthcheck.go function New (line 27) | func New(config Config, logger log.Logger, errorHandler emperror.Handler) { FILE: internal/platform/log/config.go type Config (line 22) | type Config struct method Validate (line 35) | func (c Config) Validate() error { FILE: internal/platform/log/logger.go type Logger (line 22) | type Logger interface function NewLogger (line 46) | func NewLogger(config Config) Logger { FILE: internal/platform/log/logrus_adapter.go type logrusAdapter (line 23) | type logrusAdapter struct method WithField (line 28) | func (a *logrusAdapter) WithField(key string, value interface{}) Logger { method WithFields (line 34) | func (a *logrusAdapter) WithFields(fields Fields) Logger { function NewLogrusLogger (line 38) | func NewLogrusLogger(config Config) Logger { FILE: internal/plugin/config.go type PluginConfig (line 23) | type PluginConfig struct method Validate (line 32) | func (c PluginConfig) Validate() error { type PluginConfigs (line 29) | type PluginConfigs FILE: internal/plugin/grpc.go type grpcPlugin (line 26) | type grpcPlugin struct method Handle (line 42) | func (p *grpcPlugin) Handle(event *ce.Event) error { function NewGrpcPlugin (line 32) | func NewGrpcPlugin(name string, address string) *grpcPlugin { FILE: internal/plugin/internal.go type internalPlugin (line 22) | type internalPlugin struct method Handle (line 38) | func (p *internalPlugin) Handle(event *ce.Event) error { function NewInternalPlugin (line 28) | func NewInternalPlugin(name string, logger log.Logger) *internalPlugin { FILE: internal/plugin/manager.go type PluginManager (line 27) | type PluginManager interface type Manager (line 34) | type Manager struct method Add (line 55) | func (m *Manager) Add(plugins ...EventHandlerPlugin) { method GetByNames (line 62) | func (m *Manager) GetByNames(names ...string) (map[string]EventHandler... method GetByName (line 77) | func (m *Manager) GetByName(name string) (EventHandlerPlugin, error) { method LoadFromConfig (line 87) | func (m *Manager) LoadFromConfig(v *viper.Viper) error { function NewManager (line 42) | func NewManager(logger log.Logger, errorHandler emperror.Handler) *Manag... FILE: internal/plugin/plugin.go type EventHandlerPlugin (line 22) | type EventHandlerPlugin interface type BasePlugin (line 28) | type BasePlugin struct method GetName (line 33) | func (p *BasePlugin) GetName() string { FILE: internal/promalert/alert.go type Alerts (line 30) | type Alerts method Validate (line 32) | func (alerts Alerts) Validate() error { method Authorize (line 50) | func (alerts Alerts) Authorize(user *auth.User) error { type Alert (line 61) | type Alert struct method convertToCE (line 70) | func (a *Alert) convertToCE(cid string) (*ce.Event, error) { FILE: internal/promalert/config.go type Config (line 19) | type Config struct method Validate (line 31) | func (c Config) Validate() error { FILE: internal/promalert/event_dispatcher.go type baseEventPublisher (line 21) | type baseEventPublisher interface type eventDispatcher (line 25) | type eventDispatcher struct method Publish (line 41) | func (b *eventDispatcher) Publish(topic string, event *ce.Event) { type eventPublisher (line 29) | type eventPublisher interface function NewEventDispatcher (line 34) | func NewEventDispatcher(eb baseEventPublisher) *eventDispatcher { FILE: internal/promalert/promalert.go constant EventTopic (line 30) | EventTopic = "cloud.events.incoming" constant CETypePrefix (line 31) | CETypePrefix = "prometheus.server.alert." type PromAlertHandler (line 35) | type PromAlertHandler struct method Run (line 59) | func (p *PromAlertHandler) Run() { method handle (line 80) | func (p *PromAlertHandler) handle(c *gin.Context) { method publishAlerts (line 126) | func (p *PromAlertHandler) publishAlerts(alerts []Alert, cid string) { function New (line 46) | func New(config Config, logger log.Logger, errorHandler emperror.Handler... FILE: pkg/auth/auth.go type User (line 31) | type User struct type TokenGenerator (line 36) | type TokenGenerator interface type tokenGenerator (line 40) | type tokenGenerator struct method Generate (line 54) | func (g *tokenGenerator) Generate(userID, orgID uint, expiresAt *time.... function NewTokenGenerator (line 46) | func NewTokenGenerator(issuer, audience, signingKey string) TokenGenerat... function GetCurrentUser (line 87) | func GetCurrentUser(c *gin.Context) *User { function Handler (line 94) | func Handler(signingKey string) gin.HandlerFunc { function claimConverter (line 98) | func claimConverter(claims *bauth.ScopedClaims) interface{} { FILE: pkg/grpcplugin/handler.go type EventHandler (line 25) | type EventHandler interface type CloudEvent (line 29) | type CloudEvent type Result (line 30) | type Result type handler (line 32) | type handler struct method Handle (line 44) | func (h *handler) Handle(ctx context.Context, ce *proto.CloudEvent) (*... function NewHandler (line 37) | func NewHandler(eh EventHandler) *handler { FILE: pkg/grpcplugin/proto/event.pb.go constant _ (line 35) | _ = proto1.ProtoPackageIsVersion2 type CloudEvent (line 37) | type CloudEvent struct method Reset (line 49) | func (m *CloudEvent) Reset() { *m = CloudEvent{} } method String (line 50) | func (m *CloudEvent) String() string { return proto1.Compac... method ProtoMessage (line 51) | func (*CloudEvent) ProtoMessage() {} method Descriptor (line 52) | func (*CloudEvent) Descriptor() ([]byte, []int) { return fileDescripto... method GetSpecversion (line 54) | func (m *CloudEvent) GetSpecversion() string { method GetType (line 61) | func (m *CloudEvent) GetType() string { method GetSource (line 68) | func (m *CloudEvent) GetSource() string { method GetId (line 75) | func (m *CloudEvent) GetId() string { method GetTime (line 82) | func (m *CloudEvent) GetTime() string { method GetSchemaurl (line 89) | func (m *CloudEvent) GetSchemaurl() string { method GetContenttype (line 96) | func (m *CloudEvent) GetContenttype() string { method GetData (line 103) | func (m *CloudEvent) GetData() []byte { method GetExtensions (line 110) | func (m *CloudEvent) GetExtensions() map[string]string { type Result (line 117) | type Result struct method Reset (line 121) | func (m *Result) Reset() { *m = Result{} } method String (line 122) | func (m *Result) String() string { return proto1.CompactTex... method ProtoMessage (line 123) | func (*Result) ProtoMessage() {} method Descriptor (line 124) | func (*Result) Descriptor() ([]byte, []int) { return fileDescriptor0, ... method GetStatus (line 126) | func (m *Result) GetStatus() string { function init (line 133) | func init() { constant _ (line 144) | _ = grpc.SupportPackageIsVersion4 type EventHandlerClient (line 148) | type EventHandlerClient interface type eventHandlerClient (line 152) | type eventHandlerClient struct method Handle (line 160) | func (c *eventHandlerClient) Handle(ctx context.Context, in *CloudEven... function NewEventHandlerClient (line 156) | func NewEventHandlerClient(cc *grpc.ClientConn) EventHandlerClient { type EventHandlerServer (line 171) | type EventHandlerServer interface function RegisterEventHandlerServer (line 175) | func RegisterEventHandlerServer(s *grpc.Server, srv EventHandlerServer) { function _EventHandler_Handle_Handler (line 179) | func _EventHandler_Handle_Handler(srv interface{}, ctx context.Context, ... function init (line 210) | func init() { proto1.RegisterFile("event.proto", fileDescriptor0) } FILE: pkg/grpcplugin/server.go function Serve (line 27) | func Serve(bindAddress string, handler EventHandler, opt ...grpc.ServerO...