prom

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRateLimitedError added in v0.1.1

func IsRateLimitedError(err error) bool

Types

type QueryResult

type QueryResult struct {
	Type   model.ValueType `json:"resultType"`
	Result any             `json:"result"`

	// The decoded value.
	Val model.Value
}

QueryResult contains result data for a query.

func UnmarshalApiResponse

func UnmarshalApiResponse(body []byte) (*QueryResult, error)

func (*QueryResult) UnmarshalJSON

func (qr *QueryResult) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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