remote

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	ActionReady      Action = "/-/ready"
	ActionMetadata   Action = "/api/v1/metadata"
	ActionQuery      Action = "/api/v1/query"
	ActionQueryRange Action = "/api/v1/query_range"
	ActionTargets    Action = "/api/v1/targets"
)

type RemoteService

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

func New

func New(httpClient *http.Client, timeout time.Duration) *RemoteService

func (*RemoteService) GET

func (r *RemoteService) GET(ctx context.Context, datasource *model.Datasource, action Action, rawQuery string) (code int, body string, err error)

Jump to

Keyboard shortcuts

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