cache

package
v0.0.0-...-34d171d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrgGiteaTimeout = time.Second * 60
View Source
var OrgGithubTimeout = time.Second * 60
View Source
var RepoGiteaTimeout = time.Second * 300

Functions

func Config

func Config() *badger.DB

func GetRepo

func GetRepo(repoId string, db *badger.DB) (*gitea.Repository, bool)

func GetRepoList

func GetRepoList(srv, org string, db *badger.DB) ([]*gitea.Repository, error, bool)

func PutRepo

func PutRepo(repoId string, r *gitea.Repository, db *badger.DB) error

func PutRepoList

func PutRepoList(srv, org string, repos []*gitea.Repository, db *badger.DB) error

Types

type ByteArray

type ByteArray struct {
	Data [][]byte `json:"data"`
}

type NullLogger

type NullLogger struct{}

func (NullLogger) Debugf

func (NullLogger) Debugf(string, ...interface{})

func (NullLogger) Errorf

func (NullLogger) Errorf(string, ...interface{})

func (NullLogger) Infof

func (NullLogger) Infof(string, ...interface{})

func (NullLogger) Warningf

func (NullLogger) Warningf(string, ...interface{})

Jump to

Keyboard shortcuts

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