controller

package
v1.3.32-0...-6d053e1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTimeSecOrRFC

func ParseTimeSecOrRFC(raw string, def time.Time) (time.Time, error)

func PromError

func PromError(code int, msg string, w http.ResponseWriter)

func RunPreRequestPlugins

func RunPreRequestPlugins(r *http.Request) (context.Context, error)

Types

type Controller

type Controller struct {
}

type MiscController

type MiscController struct {
	Version string
}

func (*MiscController) Buildinfo

func (uc *MiscController) Buildinfo(w http.ResponseWriter, r *http.Request)

func (*MiscController) Config

func (uc *MiscController) Config(w http.ResponseWriter, r *http.Request)

func (*MiscController) Metadata

func (uc *MiscController) Metadata(w http.ResponseWriter, r *http.Request)

func (*MiscController) Ready

func (uc *MiscController) Ready(w http.ResponseWriter, r *http.Request)

func (*MiscController) Rules

func (uc *MiscController) Rules(w http.ResponseWriter, r *http.Request)

type ProfController

type ProfController struct {
	Controller
	ProfService *service.ProfService
}

func (*ProfController) AnalyzeQuery

func (pc *ProfController) AnalyzeQuery(w http.ResponseWriter, r *http.Request)

func (*ProfController) LabelNames

func (pc *ProfController) LabelNames(w http.ResponseWriter, r *http.Request)

func (*ProfController) LabelValues

func (pc *ProfController) LabelValues(w http.ResponseWriter, r *http.Request)

func (*ProfController) MergeProfiles

func (pc *ProfController) MergeProfiles(w http.ResponseWriter, r *http.Request)

func (*ProfController) NotImplemented

func (pc *ProfController) NotImplemented(w http.ResponseWriter, r *http.Request)

func (*ProfController) ProfileStats

func (pc *ProfController) ProfileStats(w http.ResponseWriter, r *http.Request)

func (*ProfController) ProfileTypes

func (pc *ProfController) ProfileTypes(w http.ResponseWriter, r *http.Request)

func (*ProfController) RenderDiff

func (pc *ProfController) RenderDiff(w http.ResponseWriter, r *http.Request)

func (*ProfController) SelectMergeStackTraces

func (pc *ProfController) SelectMergeStackTraces(w http.ResponseWriter, r *http.Request)

func (*ProfController) SelectSeries

func (pc *ProfController) SelectSeries(w http.ResponseWriter, r *http.Request)

func (*ProfController) Series

func (pc *ProfController) Series(w http.ResponseWriter, r *http.Request)

func (*ProfController) Settings

func (pc *ProfController) Settings(w http.ResponseWriter, r *http.Request)

type PromQueryLabelsController

type PromQueryLabelsController struct {
	Controller
	QueryLabelsService *service.QueryLabelsService
}

func (*PromQueryLabelsController) LabelValues

func (*PromQueryLabelsController) Metadata

func (*PromQueryLabelsController) PromLabels

func (*PromQueryLabelsController) Series

type PromQueryRangeController

type PromQueryRangeController struct {
	Controller
	Api     *api_v1.API
	Storage *service.CLokiQueriable
	Stats   bool
}

func (*PromQueryRangeController) QueryInstant

func (q *PromQueryRangeController) QueryInstant(w http.ResponseWriter, r *http.Request)

func (*PromQueryRangeController) QueryRange

type QueryLabelsController

type QueryLabelsController struct {
	Controller
	QueryLabelsService *service.QueryLabelsService
}

func (*QueryLabelsController) Labels

func (*QueryLabelsController) Series

func (*QueryLabelsController) Values

type QueryRangeController

type QueryRangeController struct {
	Controller
	QueryRangeService *service.QueryRangeService
}

func (*QueryRangeController) Query

func (*QueryRangeController) QueryRange

func (q *QueryRangeController) QueryRange(w http.ResponseWriter, r *http.Request)

func (*QueryRangeController) Tail

type QueryRangeProps

type QueryRangeProps struct {
	Start time.Time
	End   time.Time
	Query string
	Step  time.Duration
	Raw   struct {
		Start string `form:"start"`
		End   string `form:"end"`
		Query string `form:"query"`
		Step  string `form:"step"`
	}
}

type SeriesParams

type SeriesParams struct {
	ValuesParams
	Match []string `query:"match[]"`
	Raw   struct {
		Match []string `query:"match[]"`
		Query string   `query:"query"`
	}
}

func ParseLogSeriesParamsV2

func ParseLogSeriesParamsV2(r *http.Request, unit time.Duration) (SeriesParams, error)

type TempoController

type TempoController struct {
	Controller
	Service model.ITempoService
}

func (*TempoController) Echo

func (*TempoController) Search

func (t *TempoController) Search(w http.ResponseWriter, r *http.Request)

func (*TempoController) Tags

func (*TempoController) TagsV2

func (t *TempoController) TagsV2(w http.ResponseWriter, r *http.Request)

func (*TempoController) Trace

func (*TempoController) Values

func (t *TempoController) Values(w http.ResponseWriter, r *http.Request)

func (*TempoController) ValuesV2

func (t *TempoController) ValuesV2(w http.ResponseWriter, r *http.Request)

type ValuesParams

type ValuesParams struct {
	Start time.Time
	End   time.Time
	Raw   struct {
		Start string `query:"start"`
		End   string `query:"end"`
	}
}

func ParseTimeParamsV2

func ParseTimeParamsV2(r *http.Request, unit time.Duration) (ValuesParams, error)

type VolumeController

type VolumeController struct {
	Controller
	QueryRangeService *service.QueryRangeService
}

func (*VolumeController) DetectedFields

func (q *VolumeController) DetectedFields(w http.ResponseWriter, r *http.Request)

func (*VolumeController) DetectedLabels

func (q *VolumeController) DetectedLabels(w http.ResponseWriter, r *http.Request)

func (*VolumeController) Patterns

func (q *VolumeController) Patterns(w http.ResponseWriter, r *http.Request)

func (*VolumeController) Volume

func (q *VolumeController) Volume(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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