.examples
.github
alerting
api
api.go
api_test.go
badge.go
badge_test.go
cache.go
chart.go
chart_test.go
config.go
config_test.go
custom_css.go
endpoint_status.go
endpoint_status_test.go
external_endpoint.go
external_endpoint_test.go
raw.go
raw_test.go
spa.go
spa_test.go
util.go
util_test.go
client
config
controller
docs
jsonpath
metrics
pattern
security
storage
test
testdata
watchdog
web
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE
Makefile
README.md
config.yaml
go.mod
go.sum
main.go
16 lines
201 B
Go
16 lines
201 B
Go
package api
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/TwiN/gocache/v2"
|
|
)
|
|
|
|
const (
|
|
cacheTTL = 10 * time.Second
|
|
)
|
|
|
|
var (
|
|
cache = gocache.NewCache().WithMaxSize(100).WithEvictionPolicy(gocache.FirstInFirstOut)
|
|
)
|