Documentation ¶
Index ¶
- type NotificationConfig
- type PluginService
- func (s *PluginService) PreHookDBTransformConfigs(ctx context.Context, receiverConfigMap map[string]any) (map[string]any, error)
- func (s *PluginService) PreHookQueueTransformConfigs(ctx context.Context, notificationConfigMap map[string]any) (map[string]any, error)
- func (s *PluginService) Send(ctx context.Context, notificationMessage notification.Message) (bool, error)
- type ReceiverConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationConfig ¶
type NotificationConfig struct {
ReceiverConfig `mapstructure:",squash"`
}
func (*NotificationConfig) AsMap ¶
func (c *NotificationConfig) AsMap() map[string]any
type PluginService ¶
type PluginService struct {
base.UnimplementedService
}
func NewPluginService ¶
func NewPluginService() *PluginService
NewPluginService returns file receiver service struct. This service implement [receiver.Resolver] and notification.Notifier interface.
func (*PluginService) PreHookDBTransformConfigs ¶
func (*PluginService) PreHookQueueTransformConfigs ¶
func (*PluginService) Send ¶
func (s *PluginService) Send(ctx context.Context, notificationMessage notification.Message) (bool, error)
type ReceiverConfig ¶
type ReceiverConfig struct {
URL string `mapstructure:"url"`
}
func (*ReceiverConfig) AsMap ¶
func (c *ReceiverConfig) AsMap() map[string]any
func (*ReceiverConfig) Validate ¶
func (c *ReceiverConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.