Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

metricscache

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:16Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeCache

type Cache struct {// contains filtered or unexported fields}

Cache holds the template metrics.The aggregation queries responsible for these values can take up to a minuteon large deployments. Even in small deployments, aggregation queries cantake a few hundred milliseconds, which would ruin page load times anddatabase performance if in the hot path.

funcNew

func New(dbdatabase.Store, logslog.Logger, intervalsIntervals) *Cache

func (*Cache)Close

func (c *Cache) Close()error

func (*Cache)DeploymentDAUsadded inv0.15.3

func (c *Cache) DeploymentDAUs(offsetint) (int, *codersdk.DAUsResponse,bool)

func (*Cache)DeploymentStatsadded inv0.19.0

func (c *Cache) DeploymentStats() (codersdk.DeploymentStats,bool)

func (*Cache)TemplateBuildTimeStatsadded inv0.10.0

func (c *Cache) TemplateBuildTimeStats(iduuid.UUID)codersdk.TemplateBuildTimeStats

func (*Cache)TemplateDAUs

func (c *Cache) TemplateDAUs(iduuid.UUID, offsetint) (int, *codersdk.DAUsResponse,bool)

TemplateDAUs returns an empty response if the template doesn't have usersor is loading for the first time.The cache will select the closest DAUs response to given timezone offset.

func (*Cache)TemplateUniqueUsersadded inv0.8.15

func (c *Cache) TemplateUniqueUsers(iduuid.UUID) (int,bool)

TemplateUniqueUsers returns the number of unique Template usersfrom all Cache data.

typeIntervalsadded inv0.19.0

type Intervals struct {TemplateDAUstime.DurationDeploymentStatstime.Duration}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp