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 NewRemoteWriteOpts ¶
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
Click to show internal directories.
Click to hide internal directories.