Documentation
¶
Index ¶
- func AsChannelWebhookCreateRequest(r api.NotificationChannelWebhookCreateRequest, namespace string) notification.CreateChannelInput
- func AsChannelWebhookUpdateRequest(r api.NotificationChannelWebhookCreateRequest, namespace, channelId string) notification.UpdateChannelInput
- func AsRuleBalanceThresholdCreateRequest(r api.NotificationRuleBalanceThresholdCreateRequest, namespace string) notification.CreateRuleInput
- func AsRuleBalanceThresholdUpdateRequest(r api.NotificationRuleBalanceThresholdCreateRequest, namespace, ruleID string) notification.UpdateRuleInput
- func FromChannel(c notification.Channel) (api.NotificationChannel, error)
- func FromChannelWebhook(c notification.Channel) api.NotificationChannelWebhook
- func FromEvent(e notification.Event) (api.NotificationEvent, error)
- func FromEventAsBalanceThresholdPayload(e notification.Event) api.NotificationEventBalanceThresholdPayload
- func FromRule(r notification.Rule) (api.NotificationRule, error)
- func FromRuleBalanceThreshold(r notification.Rule) api.NotificationRuleBalanceThreshold
- type ChannelHandler
- type CreateChannelHandler
- type CreateChannelRequest
- type CreateChannelResponse
- type CreateRuleHandler
- type CreateRuleRequest
- type CreateRuleResponse
- type DeleteChannelHandler
- type DeleteChannelRequest
- type DeleteChannelResponse
- type DeleteRuleHandler
- type DeleteRuleRequest
- type DeleteRuleResponse
- type EventHandler
- type GetChannelHandler
- type GetChannelRequest
- type GetChannelResponse
- type GetEventHandler
- type GetEventRequest
- type GetEventResponse
- type GetRuleHandler
- type GetRuleRequest
- type GetRuleResponse
- type Handler
- type ListChannelsHandler
- type ListChannelsParams
- type ListChannelsRequest
- type ListChannelsResponse
- type ListEventsHandler
- type ListEventsParams
- type ListEventsRequest
- type ListEventsResponse
- type ListRulesHandler
- type ListRulesParams
- type ListRulesRequest
- type ListRulesResponse
- type RuleHandler
- type TestRuleHandler
- type TestRuleRequest
- type TestRuleResponse
- type UpdateChannelHandler
- type UpdateChannelRequest
- type UpdateChannelResponse
- type UpdateRuleHandler
- type UpdateRuleRequest
- type UpdateRuleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsChannelWebhookCreateRequest ¶
func AsChannelWebhookCreateRequest(r api.NotificationChannelWebhookCreateRequest, namespace string) notification.CreateChannelInput
func AsChannelWebhookUpdateRequest ¶
func AsChannelWebhookUpdateRequest(r api.NotificationChannelWebhookCreateRequest, namespace, channelId string) notification.UpdateChannelInput
func AsRuleBalanceThresholdCreateRequest ¶
func AsRuleBalanceThresholdCreateRequest(r api.NotificationRuleBalanceThresholdCreateRequest, namespace string) notification.CreateRuleInput
func AsRuleBalanceThresholdUpdateRequest ¶
func AsRuleBalanceThresholdUpdateRequest(r api.NotificationRuleBalanceThresholdCreateRequest, namespace, ruleID string) notification.UpdateRuleInput
func FromChannel ¶
func FromChannel(c notification.Channel) (api.NotificationChannel, error)
func FromChannelWebhook ¶
func FromChannelWebhook(c notification.Channel) api.NotificationChannelWebhook
func FromEvent ¶
func FromEvent(e notification.Event) (api.NotificationEvent, error)
func FromEventAsBalanceThresholdPayload ¶
func FromEventAsBalanceThresholdPayload(e notification.Event) api.NotificationEventBalanceThresholdPayload
func FromRule ¶
func FromRule(r notification.Rule) (api.NotificationRule, error)
func FromRuleBalanceThreshold ¶
func FromRuleBalanceThreshold(r notification.Rule) api.NotificationRuleBalanceThreshold
Types ¶
type ChannelHandler ¶
type ChannelHandler interface {
ListChannels() ListChannelsHandler
CreateChannel() CreateChannelHandler
DeleteChannel() DeleteChannelHandler
GetChannel() GetChannelHandler
UpdateChannel() UpdateChannelHandler
}
type CreateChannelHandler ¶
type CreateChannelHandler httptransport.Handler[CreateChannelRequest, CreateChannelResponse]
type CreateChannelRequest ¶
type CreateChannelRequest = notification.CreateChannelInput
type CreateChannelResponse ¶
type CreateChannelResponse = api.NotificationChannel
type CreateRuleHandler ¶
type CreateRuleHandler httptransport.Handler[CreateRuleRequest, CreateRuleResponse]
type CreateRuleRequest ¶
type CreateRuleRequest = notification.CreateRuleInput
type CreateRuleResponse ¶
type CreateRuleResponse = api.NotificationRule
type DeleteChannelHandler ¶
type DeleteChannelHandler httptransport.HandlerWithArgs[DeleteChannelRequest, DeleteChannelResponse, string]
type DeleteChannelRequest ¶
type DeleteChannelRequest = notification.DeleteChannelInput
type DeleteChannelResponse ¶
type DeleteChannelResponse = interface{}
type DeleteRuleHandler ¶
type DeleteRuleHandler httptransport.HandlerWithArgs[DeleteRuleRequest, DeleteRuleResponse, string]
type DeleteRuleRequest ¶
type DeleteRuleRequest = notification.DeleteRuleInput
type DeleteRuleResponse ¶
type DeleteRuleResponse = interface{}
type EventHandler ¶
type EventHandler interface {
ListEvents() ListEventsHandler
GetEvent() GetEventHandler
}
type GetChannelHandler ¶
type GetChannelHandler httptransport.HandlerWithArgs[GetChannelRequest, GetChannelResponse, string]
type GetChannelRequest ¶
type GetChannelRequest = notification.GetChannelInput
type GetChannelResponse ¶
type GetChannelResponse = api.NotificationChannel
type GetEventHandler ¶
type GetEventHandler httptransport.HandlerWithArgs[GetEventRequest, GetEventResponse, string]
type GetEventRequest ¶
type GetEventRequest = notification.GetEventInput
type GetEventResponse ¶
type GetEventResponse = api.NotificationEvent
type GetRuleHandler ¶
type GetRuleHandler httptransport.HandlerWithArgs[GetRuleRequest, GetRuleResponse, string]
type GetRuleRequest ¶
type GetRuleRequest = notification.GetRuleInput
type GetRuleResponse ¶
type GetRuleResponse = api.NotificationRule
type Handler ¶
type Handler interface {
ChannelHandler
RuleHandler
EventHandler
}
func New ¶
func New( namespaceDecoder namespacedriver.NamespaceDecoder, service notification.Service, options ...httptransport.HandlerOption, ) Handler
type ListChannelsHandler ¶
type ListChannelsHandler httptransport.HandlerWithArgs[ListChannelsRequest, ListChannelsResponse, ListChannelsParams]
type ListChannelsParams ¶
type ListChannelsParams = api.ListNotificationChannelsParams
type ListChannelsRequest ¶
type ListChannelsRequest = notification.ListChannelsInput
type ListChannelsResponse ¶
type ListChannelsResponse = api.NotificationChannelPaginatedResponse
type ListEventsHandler ¶
type ListEventsHandler httptransport.HandlerWithArgs[ListEventsRequest, ListEventsResponse, ListEventsParams]
type ListEventsParams ¶
type ListEventsParams = api.ListNotificationEventsParams
type ListEventsRequest ¶
type ListEventsRequest = notification.ListEventsInput
type ListEventsResponse ¶
type ListEventsResponse = api.NotificationEventPaginatedResponse
type ListRulesHandler ¶
type ListRulesHandler httptransport.HandlerWithArgs[ListRulesRequest, ListRulesResponse, ListRulesParams]
type ListRulesParams ¶
type ListRulesParams = api.ListNotificationRulesParams
type ListRulesRequest ¶
type ListRulesRequest = notification.ListRulesInput
type ListRulesResponse ¶
type ListRulesResponse = api.NotificationRulePaginatedResponse
type RuleHandler ¶
type RuleHandler interface {
ListRules() ListRulesHandler
CreateRule() CreateRuleHandler
DeleteRule() DeleteRuleHandler
GetRule() GetRuleHandler
UpdateRule() UpdateRuleHandler
TestRule() TestRuleHandler
}
type TestRuleHandler ¶
type TestRuleHandler httptransport.HandlerWithArgs[TestRuleRequest, TestRuleResponse, string]
type TestRuleRequest ¶
type TestRuleRequest struct {
models.NamespacedModel
// RuleID defines the notification Rule that generated this Event.
RuleID string `json:"ruleId"`
}
type TestRuleResponse ¶
type TestRuleResponse = api.NotificationEvent
type UpdateChannelHandler ¶
type UpdateChannelHandler httptransport.HandlerWithArgs[UpdateChannelRequest, UpdateChannelResponse, string]
type UpdateChannelRequest ¶
type UpdateChannelRequest = notification.UpdateChannelInput
type UpdateChannelResponse ¶
type UpdateChannelResponse = api.NotificationChannel
type UpdateRuleHandler ¶
type UpdateRuleHandler httptransport.HandlerWithArgs[UpdateRuleRequest, UpdateRuleResponse, string]
type UpdateRuleRequest ¶
type UpdateRuleRequest = notification.UpdateRuleInput
type UpdateRuleResponse ¶
type UpdateRuleResponse = api.NotificationRule
Click to show internal directories.
Click to hide internal directories.