remotewrite

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package remotewrite provides a mock remote write server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUploadRequest

type MockUploadRequest struct {
	Files []struct {
		ReferenceID string `json:"reference_id"`
	} `json:"files"`
}

type MockUploadResponse

type MockUploadResponse map[string]string

type NewRemoteWriteOpts

type NewRemoteWriteOpts struct {
	APIKey       string
	S3Endpoint   string
	S3AccessKey  string
	S3PrivateKey string
	UploadDelay  time.Duration
}

type QueryMinioResponse

type QueryMinioResponse struct {
	Objects []*minio.ObjectInfo `json:"objects"`
	Length  int                 `json:"length"`
}

type RemoteWrite

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

func NewRemoteWrite

func NewRemoteWrite(
	ctx context.Context,
	opts *NewRemoteWriteOpts,
) (*RemoteWrite, error)

func (*RemoteWrite) Handler

func (rw *RemoteWrite) Handler(r chi.Router)

func (*RemoteWrite) QueryMinio

func (rw *RemoteWrite) QueryMinio(w http.ResponseWriter, r *http.Request)

QueryMinio scans the entire minio instance and returns all of the objects this can return a lot of information if there are a lot of objects stored

Jump to

Keyboard shortcuts

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