endpoints

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RetryTestEdnpoint = 1 * time.Second
)

Functions

This section is empty.

Types

type EndpointServerComponent

type EndpointServerComponent struct {
	alertingv1.UnsafeAlertEndpointsServer

	util.Initializer

	server.Config
	// contains filtered or unexported fields
}

func NewEndpointServerComponent

func NewEndpointServerComponent(
	ctx context.Context,
	logger *slog.Logger,
	notifications *notifications.NotificationServerComponent,
) *EndpointServerComponent

func (*EndpointServerComponent) CreateAlertEndpoint

func (e *EndpointServerComponent) CreateAlertEndpoint(ctx context.Context, req *alertingv1.AlertEndpoint) (*corev1.Reference, error)

func (*EndpointServerComponent) DeleteAlertEndpoint

func (*EndpointServerComponent) GetAlertEndpoint

func (*EndpointServerComponent) Healthy added in v0.11.0

func (e *EndpointServerComponent) Healthy() bool

func (*EndpointServerComponent) Initialize

func (*EndpointServerComponent) ListAlertEndpoints

func (*EndpointServerComponent) Name added in v0.11.0

func (e *EndpointServerComponent) Name() string

func (*EndpointServerComponent) Ready added in v0.11.0

func (e *EndpointServerComponent) Ready() bool

func (*EndpointServerComponent) SetConfig

func (e *EndpointServerComponent) SetConfig(conf server.Config)

func (*EndpointServerComponent) Status

func (*EndpointServerComponent) Sync

func (*EndpointServerComponent) ToggleNotifications

func (e *EndpointServerComponent) ToggleNotifications(ctx context.Context, req *alertingv1.ToggleRequest) (*emptypb.Empty, error)

func (*EndpointServerComponent) UpdateAlertEndpoint

Jump to

Keyboard shortcuts

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