Documentation ¶
Index ¶
- type Config
- type GRPCServer
- func (s *GRPCServer) AddSubscriptionReceiver(ctx context.Context, req *sirenv1beta1.AddSubscriptionReceiverRequest) (*sirenv1beta1.AddSubscriptionReceiverResponse, error)
- func (s *GRPCServer) Check(ctx context.Context, in *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
- func (s *GRPCServer) CreateAlerts(ctx context.Context, req *sirenv1beta1.CreateAlertsRequest) (*sirenv1beta1.CreateAlertsResponse, error)
- func (s *GRPCServer) CreateAlertsWithNamespace(ctx context.Context, req *sirenv1beta1.CreateAlertsWithNamespaceRequest) (*sirenv1beta1.CreateAlertsWithNamespaceResponse, error)
- func (s *GRPCServer) CreateNamespace(ctx context.Context, req *sirenv1beta1.CreateNamespaceRequest) (*sirenv1beta1.CreateNamespaceResponse, error)
- func (s *GRPCServer) CreateProvider(ctx context.Context, req *sirenv1beta1.CreateProviderRequest) (*sirenv1beta1.CreateProviderResponse, error)
- func (s *GRPCServer) CreateReceiver(ctx context.Context, req *sirenv1beta1.CreateReceiverRequest) (*sirenv1beta1.CreateReceiverResponse, error)
- func (s *GRPCServer) CreateSilence(ctx context.Context, req *sirenv1beta1.CreateSilenceRequest) (*sirenv1beta1.CreateSilenceResponse, error)
- func (s *GRPCServer) CreateSubscription(ctx context.Context, req *sirenv1beta1.CreateSubscriptionRequest) (*sirenv1beta1.CreateSubscriptionResponse, error)
- func (s *GRPCServer) DeleteNamespace(ctx context.Context, req *sirenv1beta1.DeleteNamespaceRequest) (*sirenv1beta1.DeleteNamespaceResponse, error)
- func (s *GRPCServer) DeleteProvider(ctx context.Context, req *sirenv1beta1.DeleteProviderRequest) (*sirenv1beta1.DeleteProviderResponse, error)
- func (s *GRPCServer) DeleteReceiver(ctx context.Context, req *sirenv1beta1.DeleteReceiverRequest) (*sirenv1beta1.DeleteReceiverResponse, error)
- func (s *GRPCServer) DeleteSubscription(ctx context.Context, req *sirenv1beta1.DeleteSubscriptionRequest) (*sirenv1beta1.DeleteSubscriptionResponse, error)
- func (s *GRPCServer) DeleteSubscriptionReceiver(ctx context.Context, req *sirenv1beta1.DeleteSubscriptionReceiverRequest) (*sirenv1beta1.DeleteSubscriptionReceiverResponse, error)
- func (s *GRPCServer) DeleteTemplate(ctx context.Context, req *sirenv1beta1.DeleteTemplateRequest) (*sirenv1beta1.DeleteTemplateResponse, error)
- func (s *GRPCServer) ExpireSilence(ctx context.Context, req *sirenv1beta1.ExpireSilenceRequest) (*sirenv1beta1.ExpireSilenceResponse, error)
- func (s *GRPCServer) GetNamespace(ctx context.Context, req *sirenv1beta1.GetNamespaceRequest) (*sirenv1beta1.GetNamespaceResponse, error)
- func (s *GRPCServer) GetProvider(ctx context.Context, req *sirenv1beta1.GetProviderRequest) (*sirenv1beta1.GetProviderResponse, error)
- func (s *GRPCServer) GetReceiver(ctx context.Context, req *sirenv1beta1.GetReceiverRequest) (*sirenv1beta1.GetReceiverResponse, error)
- func (s *GRPCServer) GetSilence(ctx context.Context, req *sirenv1beta1.GetSilenceRequest) (*sirenv1beta1.GetSilenceResponse, error)
- func (s *GRPCServer) GetSubscription(ctx context.Context, req *sirenv1beta1.GetSubscriptionRequest) (*sirenv1beta1.GetSubscriptionResponse, error)
- func (s *GRPCServer) GetTemplate(ctx context.Context, req *sirenv1beta1.GetTemplateRequest) (*sirenv1beta1.GetTemplateResponse, error)
- func (s *GRPCServer) ListAlerts(ctx context.Context, req *sirenv1beta1.ListAlertsRequest) (*sirenv1beta1.ListAlertsResponse, error)
- func (s *GRPCServer) ListNamespaces(ctx context.Context, _ *sirenv1beta1.ListNamespacesRequest) (*sirenv1beta1.ListNamespacesResponse, error)
- func (s *GRPCServer) ListNotificationMessages(ctx context.Context, req *sirenv1beta1.ListNotificationMessagesRequest) (*sirenv1beta1.ListNotificationMessagesResponse, error)
- func (s *GRPCServer) ListNotifications(ctx context.Context, req *sirenv1beta1.ListNotificationsRequest) (*sirenv1beta1.ListNotificationsResponse, error)
- func (s *GRPCServer) ListProviders(ctx context.Context, req *sirenv1beta1.ListProvidersRequest) (*sirenv1beta1.ListProvidersResponse, error)
- func (s *GRPCServer) ListReceivers(ctx context.Context, req *sirenv1beta1.ListReceiversRequest) (*sirenv1beta1.ListReceiversResponse, error)
- func (s *GRPCServer) ListRules(ctx context.Context, req *sirenv1beta1.ListRulesRequest) (*sirenv1beta1.ListRulesResponse, error)
- func (s *GRPCServer) ListSilences(ctx context.Context, req *sirenv1beta1.ListSilencesRequest) (*sirenv1beta1.ListSilencesResponse, error)
- func (s *GRPCServer) ListSubscriptionReceivers(ctx context.Context, req *sirenv1beta1.ListSubscriptionReceiversRequest) (*sirenv1beta1.ListSubscriptionReceiversResponse, error)
- func (s *GRPCServer) ListSubscriptions(ctx context.Context, req *sirenv1beta1.ListSubscriptionsRequest) (*sirenv1beta1.ListSubscriptionsResponse, error)
- func (s *GRPCServer) ListTemplates(ctx context.Context, req *sirenv1beta1.ListTemplatesRequest) (*sirenv1beta1.ListTemplatesResponse, error)
- func (s *GRPCServer) PostBulkNotifications(ctx context.Context, req *sirenv1beta1.PostBulkNotificationsRequest) (*sirenv1beta1.PostBulkNotificationsResponse, error)
- func (s *GRPCServer) PostNotification(ctx context.Context, req *sirenv1beta1.PostNotificationRequest) (*sirenv1beta1.PostNotificationResponse, error)
- func (s *GRPCServer) RenderTemplate(ctx context.Context, req *sirenv1beta1.RenderTemplateRequest) (*sirenv1beta1.RenderTemplateResponse, error)
- func (s *GRPCServer) UpdateNamespace(ctx context.Context, req *sirenv1beta1.UpdateNamespaceRequest) (*sirenv1beta1.UpdateNamespaceResponse, error)
- func (s *GRPCServer) UpdateProvider(ctx context.Context, req *sirenv1beta1.UpdateProviderRequest) (*sirenv1beta1.UpdateProviderResponse, error)
- func (s *GRPCServer) UpdateReceiver(ctx context.Context, req *sirenv1beta1.UpdateReceiverRequest) (*sirenv1beta1.UpdateReceiverResponse, error)
- func (s *GRPCServer) UpdateRule(ctx context.Context, req *sirenv1beta1.UpdateRuleRequest) (*sirenv1beta1.UpdateRuleResponse, error)
- func (s *GRPCServer) UpdateSubscription(ctx context.Context, req *sirenv1beta1.UpdateSubscriptionRequest) (*sirenv1beta1.UpdateSubscriptionResponse, error)
- func (s *GRPCServer) UpdateSubscriptionReceiver(ctx context.Context, req *sirenv1beta1.UpdateSubscriptionReceiverRequest) (*sirenv1beta1.UpdateSubscriptionReceiverResponse, error)
- func (s *GRPCServer) UpsertTemplate(ctx context.Context, req *sirenv1beta1.UpsertTemplateRequest) (*sirenv1beta1.UpsertTemplateResponse, error)
- func (s *GRPCServer) Watch(in *grpc_health_v1.HealthCheckRequest, _ grpc_health_v1.Health_WatchServer) error
- type GRPCServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct { sirenv1beta1.UnimplementedSirenServiceServer // contains filtered or unexported fields }
func NewGRPCServer ¶
func NewGRPCServer( logger log.Logger, headers api.HeadersConfig, apiDeps *api.Deps, opts ...GRPCServerOption) *GRPCServer
func (*GRPCServer) AddSubscriptionReceiver ¶ added in v0.7.6
func (s *GRPCServer) AddSubscriptionReceiver(ctx context.Context, req *sirenv1beta1.AddSubscriptionReceiverRequest) (*sirenv1beta1.AddSubscriptionReceiverResponse, error)
func (*GRPCServer) Check ¶
func (s *GRPCServer) Check(ctx context.Context, in *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*GRPCServer) CreateAlerts ¶
func (s *GRPCServer) CreateAlerts(ctx context.Context, req *sirenv1beta1.CreateAlertsRequest) (*sirenv1beta1.CreateAlertsResponse, error)
func (*GRPCServer) CreateAlertsWithNamespace ¶
func (s *GRPCServer) CreateAlertsWithNamespace(ctx context.Context, req *sirenv1beta1.CreateAlertsWithNamespaceRequest) (*sirenv1beta1.CreateAlertsWithNamespaceResponse, error)
func (*GRPCServer) CreateNamespace ¶
func (s *GRPCServer) CreateNamespace(ctx context.Context, req *sirenv1beta1.CreateNamespaceRequest) (*sirenv1beta1.CreateNamespaceResponse, error)
func (*GRPCServer) CreateProvider ¶
func (s *GRPCServer) CreateProvider(ctx context.Context, req *sirenv1beta1.CreateProviderRequest) (*sirenv1beta1.CreateProviderResponse, error)
func (*GRPCServer) CreateReceiver ¶
func (s *GRPCServer) CreateReceiver(ctx context.Context, req *sirenv1beta1.CreateReceiverRequest) (*sirenv1beta1.CreateReceiverResponse, error)
func (*GRPCServer) CreateSilence ¶
func (s *GRPCServer) CreateSilence(ctx context.Context, req *sirenv1beta1.CreateSilenceRequest) (*sirenv1beta1.CreateSilenceResponse, error)
func (*GRPCServer) CreateSubscription ¶
func (s *GRPCServer) CreateSubscription(ctx context.Context, req *sirenv1beta1.CreateSubscriptionRequest) (*sirenv1beta1.CreateSubscriptionResponse, error)
func (*GRPCServer) DeleteNamespace ¶
func (s *GRPCServer) DeleteNamespace(ctx context.Context, req *sirenv1beta1.DeleteNamespaceRequest) (*sirenv1beta1.DeleteNamespaceResponse, error)
func (*GRPCServer) DeleteProvider ¶
func (s *GRPCServer) DeleteProvider(ctx context.Context, req *sirenv1beta1.DeleteProviderRequest) (*sirenv1beta1.DeleteProviderResponse, error)
func (*GRPCServer) DeleteReceiver ¶
func (s *GRPCServer) DeleteReceiver(ctx context.Context, req *sirenv1beta1.DeleteReceiverRequest) (*sirenv1beta1.DeleteReceiverResponse, error)
func (*GRPCServer) DeleteSubscription ¶
func (s *GRPCServer) DeleteSubscription(ctx context.Context, req *sirenv1beta1.DeleteSubscriptionRequest) (*sirenv1beta1.DeleteSubscriptionResponse, error)
func (*GRPCServer) DeleteSubscriptionReceiver ¶ added in v0.7.6
func (s *GRPCServer) DeleteSubscriptionReceiver(ctx context.Context, req *sirenv1beta1.DeleteSubscriptionReceiverRequest) (*sirenv1beta1.DeleteSubscriptionReceiverResponse, error)
func (*GRPCServer) DeleteTemplate ¶
func (s *GRPCServer) DeleteTemplate(ctx context.Context, req *sirenv1beta1.DeleteTemplateRequest) (*sirenv1beta1.DeleteTemplateResponse, error)
func (*GRPCServer) ExpireSilence ¶
func (s *GRPCServer) ExpireSilence(ctx context.Context, req *sirenv1beta1.ExpireSilenceRequest) (*sirenv1beta1.ExpireSilenceResponse, error)
func (*GRPCServer) GetNamespace ¶
func (s *GRPCServer) GetNamespace(ctx context.Context, req *sirenv1beta1.GetNamespaceRequest) (*sirenv1beta1.GetNamespaceResponse, error)
func (*GRPCServer) GetProvider ¶
func (s *GRPCServer) GetProvider(ctx context.Context, req *sirenv1beta1.GetProviderRequest) (*sirenv1beta1.GetProviderResponse, error)
func (*GRPCServer) GetReceiver ¶
func (s *GRPCServer) GetReceiver(ctx context.Context, req *sirenv1beta1.GetReceiverRequest) (*sirenv1beta1.GetReceiverResponse, error)
func (*GRPCServer) GetSilence ¶
func (s *GRPCServer) GetSilence(ctx context.Context, req *sirenv1beta1.GetSilenceRequest) (*sirenv1beta1.GetSilenceResponse, error)
func (*GRPCServer) GetSubscription ¶
func (s *GRPCServer) GetSubscription(ctx context.Context, req *sirenv1beta1.GetSubscriptionRequest) (*sirenv1beta1.GetSubscriptionResponse, error)
func (*GRPCServer) GetTemplate ¶
func (s *GRPCServer) GetTemplate(ctx context.Context, req *sirenv1beta1.GetTemplateRequest) (*sirenv1beta1.GetTemplateResponse, error)
func (*GRPCServer) ListAlerts ¶
func (s *GRPCServer) ListAlerts(ctx context.Context, req *sirenv1beta1.ListAlertsRequest) (*sirenv1beta1.ListAlertsResponse, error)
func (*GRPCServer) ListNamespaces ¶
func (s *GRPCServer) ListNamespaces(ctx context.Context, _ *sirenv1beta1.ListNamespacesRequest) (*sirenv1beta1.ListNamespacesResponse, error)
func (*GRPCServer) ListNotificationMessages ¶ added in v0.7.3
func (s *GRPCServer) ListNotificationMessages(ctx context.Context, req *sirenv1beta1.ListNotificationMessagesRequest) (*sirenv1beta1.ListNotificationMessagesResponse, error)
func (*GRPCServer) ListNotifications ¶ added in v0.7.4
func (s *GRPCServer) ListNotifications(ctx context.Context, req *sirenv1beta1.ListNotificationsRequest) (*sirenv1beta1.ListNotificationsResponse, error)
func (*GRPCServer) ListProviders ¶
func (s *GRPCServer) ListProviders(ctx context.Context, req *sirenv1beta1.ListProvidersRequest) (*sirenv1beta1.ListProvidersResponse, error)
func (*GRPCServer) ListReceivers ¶
func (s *GRPCServer) ListReceivers(ctx context.Context, req *sirenv1beta1.ListReceiversRequest) (*sirenv1beta1.ListReceiversResponse, error)
func (*GRPCServer) ListRules ¶
func (s *GRPCServer) ListRules(ctx context.Context, req *sirenv1beta1.ListRulesRequest) (*sirenv1beta1.ListRulesResponse, error)
func (*GRPCServer) ListSilences ¶
func (s *GRPCServer) ListSilences(ctx context.Context, req *sirenv1beta1.ListSilencesRequest) (*sirenv1beta1.ListSilencesResponse, error)
func (*GRPCServer) ListSubscriptionReceivers ¶ added in v0.7.6
func (s *GRPCServer) ListSubscriptionReceivers(ctx context.Context, req *sirenv1beta1.ListSubscriptionReceiversRequest) (*sirenv1beta1.ListSubscriptionReceiversResponse, error)
func (*GRPCServer) ListSubscriptions ¶
func (s *GRPCServer) ListSubscriptions(ctx context.Context, req *sirenv1beta1.ListSubscriptionsRequest) (*sirenv1beta1.ListSubscriptionsResponse, error)
func (*GRPCServer) ListTemplates ¶
func (s *GRPCServer) ListTemplates(ctx context.Context, req *sirenv1beta1.ListTemplatesRequest) (*sirenv1beta1.ListTemplatesResponse, error)
func (*GRPCServer) PostBulkNotifications ¶ added in v0.7.6
func (s *GRPCServer) PostBulkNotifications(ctx context.Context, req *sirenv1beta1.PostBulkNotificationsRequest) (*sirenv1beta1.PostBulkNotificationsResponse, error)
func (*GRPCServer) PostNotification ¶ added in v0.7.0
func (s *GRPCServer) PostNotification(ctx context.Context, req *sirenv1beta1.PostNotificationRequest) (*sirenv1beta1.PostNotificationResponse, error)
func (*GRPCServer) RenderTemplate ¶
func (s *GRPCServer) RenderTemplate(ctx context.Context, req *sirenv1beta1.RenderTemplateRequest) (*sirenv1beta1.RenderTemplateResponse, error)
func (*GRPCServer) UpdateNamespace ¶
func (s *GRPCServer) UpdateNamespace(ctx context.Context, req *sirenv1beta1.UpdateNamespaceRequest) (*sirenv1beta1.UpdateNamespaceResponse, error)
func (*GRPCServer) UpdateProvider ¶
func (s *GRPCServer) UpdateProvider(ctx context.Context, req *sirenv1beta1.UpdateProviderRequest) (*sirenv1beta1.UpdateProviderResponse, error)
func (*GRPCServer) UpdateReceiver ¶
func (s *GRPCServer) UpdateReceiver(ctx context.Context, req *sirenv1beta1.UpdateReceiverRequest) (*sirenv1beta1.UpdateReceiverResponse, error)
func (*GRPCServer) UpdateRule ¶
func (s *GRPCServer) UpdateRule(ctx context.Context, req *sirenv1beta1.UpdateRuleRequest) (*sirenv1beta1.UpdateRuleResponse, error)
func (*GRPCServer) UpdateSubscription ¶
func (s *GRPCServer) UpdateSubscription(ctx context.Context, req *sirenv1beta1.UpdateSubscriptionRequest) (*sirenv1beta1.UpdateSubscriptionResponse, error)
func (*GRPCServer) UpdateSubscriptionReceiver ¶ added in v0.7.6
func (s *GRPCServer) UpdateSubscriptionReceiver(ctx context.Context, req *sirenv1beta1.UpdateSubscriptionReceiverRequest) (*sirenv1beta1.UpdateSubscriptionReceiverResponse, error)
func (*GRPCServer) UpsertTemplate ¶
func (s *GRPCServer) UpsertTemplate(ctx context.Context, req *sirenv1beta1.UpsertTemplateRequest) (*sirenv1beta1.UpsertTemplateResponse, error)
func (*GRPCServer) Watch ¶
func (s *GRPCServer) Watch(in *grpc_health_v1.HealthCheckRequest, _ grpc_health_v1.Health_WatchServer) error
type GRPCServerOption ¶ added in v0.6.10
type GRPCServerOption func(*GRPCServer)
GRPCServerOption provides ability to configure the grpc initialization
func WithDebugRequest ¶ added in v0.6.11
func WithDebugRequest(debugRequest bool) GRPCServerOption
func WithGlobalSubscription ¶ added in v0.6.10
func WithGlobalSubscription(useGlobalSubscription bool) GRPCServerOption
func WithSubscriptionV2 ¶ added in v0.7.5
func WithSubscriptionV2(subscriptionV2Enabled bool) GRPCServerOption
Click to show internal directories.
Click to hide internal directories.