core

package
v0.0.0-...-f585105 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleArticle

func HandleArticle(w http.ResponseWriter, r *http.Request)

func HandleArticles

func HandleArticles(w http.ResponseWriter, r *http.Request)

HandleArticles handles requests to /articles.

func HandleLangs

func HandleLangs(w http.ResponseWriter, r *http.Request)

func HandleRepo

func HandleRepo(w http.ResponseWriter, r *http.Request)

func HandleRepos

func HandleRepos(w http.ResponseWriter, r *http.Request)

func HandleSearch

func HandleSearch(w http.ResponseWriter, r *http.Request)

HandleSearch handles requests to /search.

func InitCacheManager

func InitCacheManager() error

func LoadChronos

func LoadChronos() (err error)

LoadChronos loads the Chronos server, preparing the cache and start the background cache update if configured.

func NewBigCache

func NewBigCache() (*cache.Cache[[]byte], error)

func NewGoCache

func NewGoCache() (*cache.Cache[[]byte], error)

func NewRedisCache

func NewRedisCache() (*cache.Cache[[]byte], error)

func NewRistrettoCache

func NewRistrettoCache() (*cache.Cache[[]byte], error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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