dlq

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFirehoseNamespaceNotFound = errors.New("could not find firehose namespace from resource output")
	ErrFirehoseNamespaceInvalid  = errors.New("invalid firehose namespace from resource output")
	ErrFirehoseNotFound          = errors.New("firehose not found")
	ErrEmptyConfigImage          = errors.New("empty dlq job image")
	ErrEmptyConfigPrometheusHost = errors.New("empty prometheus host")
)

Functions

func Routes

func Routes(
	entropyClient entropyv1beta1rpc.ResourceServiceClient,
	gcsClient gcs.BlobStorageClient,
	cfg DlqJobConfig,
) func(r chi.Router)

Types

type DlqJobConfig added in v0.7.19

type DlqJobConfig struct {
	DlqJobImage    string `mapstructure:"dlq_job_image"`
	PrometheusHost string `mapstructure:"prometheus_host"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) ListFirehoseDLQ added in v0.7.14

func (h *Handler) ListFirehoseDLQ(w http.ResponseWriter, r *http.Request)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) CreateDLQJob added in v0.7.21

func (s *Service) CreateDLQJob(ctx context.Context, userEmail string, dlqJob models.DlqJob) (models.DlqJob, error)

TODO: replace *DlqJob with a generated models.DlqJob

func (*Service) ListDlqJob added in v0.7.21

func (s *Service) ListDlqJob(ctx context.Context, labelFilter map[string]string) ([]models.DlqJob, error)

Jump to

Keyboard shortcuts

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