Documentation
¶
Overview ¶
Package loki provides bounded, scoped read-only Loki queries for interactive tools.
Index ¶
Constants ¶
View Source
const MaximumLimit = 100
View Source
const MaximumOffset = 1000
Variables ¶
View Source
var ErrInvalidArgument = errors.New("loki: invalid argument")
View Source
var ErrInvalidConfig = errors.New("loki: invalid configuration")
View Source
var ErrResponseTooLarge = errors.New("loki: response too large")
View Source
var ErrUnsupportedScope = errors.New("loki: configured query is not a selector-only scope")
Functions ¶
This section is empty.
Types ¶
type DiscoveryRequest ¶
type DiscoveryResult ¶
type Policy ¶
func ToolPolicy ¶
func ToolPolicy() Policy
type ReadRequest ¶
type ReadResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
NewService constructs an isolated read transport; it does not change the ingestion client.
func (*Service) Discover ¶
func (service *Service) Discover(ctx context.Context, request DiscoveryRequest) (DiscoveryResult, error)
func (*Service) DiscoveryAvailable ¶
DiscoveryAvailable is true when scope can be enforced by the series endpoint.
func (*Service) Read ¶
func (service *Service) Read(ctx context.Context, request ReadRequest) (ReadResult, error)
Click to show internal directories.
Click to hide internal directories.