githubstats

package
v1.0.4-0...-ab2c781 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUpstreamRequest = errors.New("upstream request failed")

Functions

func RegisterRoutes

func RegisterRoutes(ctx context.Context, conf *config.Config, e *core.ServeEvent) error

Types

type Cache

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

func NewCache

func NewCache(ctx context.Context, endpoint, sourceURL string, interval time.Duration) *Cache

func (*Cache) Handler

func (c *Cache) Handler(e *core.RequestEvent) error

func (*Cache) RegisterRoutes

func (c *Cache) RegisterRoutes(e *core.ServeEvent)

func (*Cache) Update

func (c *Cache) Update(ctx context.Context) error

Jump to

Keyboard shortcuts

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