remotewrite

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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