MCPcopy Index your code
hub / github.com/prometheus/prometheus / MockWriteClient

Struct MockWriteClient

storage/remote/queue_manager_test.go:1276–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274func (*NopWriteClient) Endpoint() string { return "http://test-remote.com/1234" }
1275
1276type MockWriteClient struct {
1277 StoreFunc func(context.Context, []byte, int) (WriteResponseStats, error)
1278 NameFunc func() string
1279 EndpointFunc func() string
1280}
1281
1282func (c *MockWriteClient) Store(ctx context.Context, bb []byte, n int) (WriteResponseStats, error) {
1283 return c.StoreFunc(ctx, bb, n)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected