package
5.4.0
Repository: https://github.com/segmentio/stats.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AscCol constructs a ne Column value from a text a column type, which is configured as a sorted column in ascending order.
Col constructs a new Column value from a text and column type.
DescCol constructs a ne Column value from a text a column type, which is configured as a sorted column in descending order.
Handle installs a handler implementing the simple-json-datasource API on mux.
HandleAnnotations installs a handler on /annotations.
HandleQuery installs a handler on /query.
HandleSearch installs a handler on /search.
NewAnnotationsHandler returns a new http.Handler which delegates /annotations API calls to the given annotations handler.
NewHandler returns a new http.Handler that implements the simple-json-datasource API.
NewQueryHandler returns a new http.Handler which delegates /query API calls to the given query handler.
NewSearchHandler returns a new http.Handler which delegates /search API calls to the given search handler.

# Constants

ColumnTypes.
ColumnTypes.
TargetTypes.
ColumnTypes.
TargetTypes.
ColumnTypes.

# Structs

Annotation represents a single Grafana annotation.
AnnotationsRequest represents a request received on the /annotations endpoint.
Column is a data structure representing a table column.
QueryRequest represents a request received on the /query endpoint.
SearchRequest represents a request received on the /search endpoint.
Target is a data structure representing the target of a query.

# Interfaces

AnnotationsHandler is the handler for the /annotations endpoint in the simple-json-datasource API.
AnnotationsResponse is an interface used to an annotations request.
Handler is an interface that must be implemented by types that intend to act as a grafana data source using the simple-json-datasource plugin.
QueryHandler is the handler for the /query endpoint in the simple-json-datasource API.
QueryResponse is an interface used to respond to a search request.
SearchHandler is the handler for the /search endpoint in the simple-json-datasource API.
SearchResponse is an interface used to respond to a search request.
TableWriter is an interface used to write timeserie data in response to a query.
TimeserieWriter is an interface used to write timeserie data in response to a query.

# Type aliases

AnnotationsHandlerFunc makes it possible to use regular function types as annotations handlers.
ColumnType is an enumeration of the various column types supported by Grafana.
QueryHandlerFunc makes it possible to use regular function types as query handlers.
SearchHandlerFunc makes it possible to use regular function types as search handlers.
TargetType is an enumeration of the various target types supported by Grafana.