Documentation ¶
Index ¶
- Constants
- func GetCount(key string) (count int64, err error)
- func GetRegistry() *prometheus.Registry
- func InitMetrics()
- func SetCount(count int64, key string) error
- func SetLinkShareActive(a web.Auth) (err error)
- func SetUserActive(a web.Auth) (err error)
- type ActiveAuthenticable
- type ActiveLinkShares
- type ActiveUsers
Constants ¶
View Source
const ( ProjectCountKey = `project_count` UserCountKey = `user_count` TaskCountKey = `task_count` TeamCountKey = `team_count` FilesCountKey = `files_count` AttachmentsCountKey = `attachments_count` )
Variables ¶
This section is empty.
Functions ¶
func GetRegistry ¶ added in v0.17.0
func GetRegistry() *prometheus.Registry
func SetLinkShareActive ¶ added in v0.22.0
SetLinkShareActive sets a user as active and pushes it to keyvalue
func SetUserActive ¶ added in v0.14.0
SetUserActive sets a user as active and pushes it to keyvalue
Types ¶
type ActiveAuthenticable ¶ added in v0.22.0
ActiveAuthenticable defines an active user or link share
type ActiveLinkShares ¶ added in v0.22.0
type ActiveLinkShares struct {
// contains filtered or unexported fields
}
type ActiveUsers ¶ added in v0.14.1
type ActiveUsers struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.