Documentation ¶
Overview ¶
endpoint package implements the HTTP endpoints of Ayd.
Index ¶
- func HandleError(s *store.Store, scope string, err error)
- func HealthzEndpoint(s ErrorsGetter) http.HandlerFunc
- func LogCSVEndpoint(s *store.Store) http.HandlerFunc
- func LogJsonEndpoint(s *store.Store) http.HandlerFunc
- func LogTSVEndpoint(s *store.Store) http.HandlerFunc
- func MetricsEndpoint(s *store.Store) http.HandlerFunc
- func New(s *store.Store) http.Handler
- func NewBasicAuth(handler http.Handler, userinfo string) http.Handler
- func StatusHTMLEndpoint(s *store.Store) http.HandlerFunc
- func StatusJSONEndpoint(s *store.Store) http.HandlerFunc
- func StatusTextEndpoint(s *store.Store) http.HandlerFunc
- type BasicAuth
- type ErrorsGetter
- type LogFilter
- type LogGenerator
- type LogReader
- type LogScanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthzEndpoint ¶
func HealthzEndpoint(s ErrorsGetter) http.HandlerFunc
HealthzEndpoint is the http.HandlerFunc for /healthz page. It receives ErrorsGetter interface instead of *store.Store because for make easier to test.
func LogCSVEndpoint ¶
func LogCSVEndpoint(s *store.Store) http.HandlerFunc
func LogJsonEndpoint ¶
func LogJsonEndpoint(s *store.Store) http.HandlerFunc
func LogTSVEndpoint ¶
func LogTSVEndpoint(s *store.Store) http.HandlerFunc
func MetricsEndpoint ¶
func MetricsEndpoint(s *store.Store) http.HandlerFunc
func StatusHTMLEndpoint ¶
func StatusHTMLEndpoint(s *store.Store) http.HandlerFunc
func StatusJSONEndpoint ¶
func StatusJSONEndpoint(s *store.Store) http.HandlerFunc
func StatusTextEndpoint ¶
func StatusTextEndpoint(s *store.Store) http.HandlerFunc
Types ¶
type ErrorsGetter ¶
type LogFilter ¶
type LogFilter struct { Scanner LogScanner Targets []string }
type LogGenerator ¶
type LogGenerator struct {
// contains filtered or unexported fields
}
func NewLogGenerator ¶
func NewLogGenerator(s *store.Store, since, until time.Time) *LogGenerator
func (*LogGenerator) Bytes ¶
func (g *LogGenerator) Bytes() []byte
func (*LogGenerator) Close ¶
func (g *LogGenerator) Close() error
func (LogGenerator) Len ¶
func (g LogGenerator) Len() int
func (LogGenerator) Less ¶
func (g LogGenerator) Less(i, j int) bool
func (*LogGenerator) Record ¶
func (g *LogGenerator) Record() api.Record
func (*LogGenerator) Scan ¶
func (g *LogGenerator) Scan() bool
func (LogGenerator) Swap ¶
func (g LogGenerator) Swap(i, j int)
type LogReader ¶
type LogReader struct {
// contains filtered or unexported fields
}
func NewLogReaderFromReader ¶
func NewLogReaderFromReader(f io.ReadCloser, since, until time.Time) *LogReader
type LogScanner ¶
func NewLogScanner ¶
Click to show internal directories.
Click to hide internal directories.