httpdriver

package
v1.0.0-beta.168 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelHandler

type ChannelHandler interface {
	ListChannels() ListChannelsHandler
	CreateChannel() CreateChannelHandler
	DeleteChannel() DeleteChannelHandler
	GetChannel() GetChannelHandler
	UpdateChannel() UpdateChannelHandler
}

type CreateChannelRequest

type CreateChannelRequest = notification.CreateChannelInput

type CreateChannelResponse

type CreateChannelResponse = api.NotificationChannel

type CreateRuleRequest

type CreateRuleRequest = notification.CreateRuleInput

type CreateRuleResponse

type CreateRuleResponse = api.NotificationRule

type DeleteChannelRequest

type DeleteChannelRequest = notification.DeleteChannelInput

type DeleteChannelResponse

type DeleteChannelResponse = interface{}

type DeleteRuleRequest

type DeleteRuleRequest = notification.DeleteRuleInput

type DeleteRuleResponse

type DeleteRuleResponse = interface{}

type EventHandler

type EventHandler interface {
	ListEvents() ListEventsHandler
	GetEvent() GetEventHandler
}

type GetChannelRequest

type GetChannelRequest = notification.GetChannelInput

type GetChannelResponse

type GetChannelResponse = api.NotificationChannel

type GetEventRequest

type GetEventRequest = notification.GetEventInput

type GetEventResponse

type GetEventResponse = api.NotificationEvent

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 ListChannelsParams

type ListChannelsParams = api.ListNotificationChannelsParams

type ListChannelsRequest

type ListChannelsRequest = notification.ListChannelsInput

type ListChannelsResponse

type ListChannelsResponse = api.NotificationChannelsResponse

type ListEventsParams

type ListEventsParams = api.ListNotificationEventsParams

type ListEventsRequest

type ListEventsRequest = notification.ListEventsInput

type ListEventsResponse

type ListEventsResponse = api.NotificationEventsResponse

type ListRulesParams

type ListRulesParams = api.ListNotificationRulesParams

type ListRulesRequest

type ListRulesRequest = notification.ListRulesInput

type ListRulesResponse

type ListRulesResponse = api.NotificationRulesResponse

type RuleHandler

type RuleHandler interface {
	ListRules() ListRulesHandler
	CreateRule() CreateRuleHandler
	DeleteRule() DeleteRuleHandler
	GetRule() GetRuleHandler
	UpdateRule() UpdateRuleHandler
	TestRule() TestRuleHandler
}

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 UpdateChannelRequest

type UpdateChannelRequest = notification.UpdateChannelInput

type UpdateChannelResponse

type UpdateChannelResponse = api.NotificationChannel

type UpdateRuleRequest

type UpdateRuleRequest = notification.UpdateRuleInput

type UpdateRuleResponse

type UpdateRuleResponse = api.NotificationRule

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL