ghdb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Overview

Github database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.4.23

type Cache interface {
	Clear()
	Get(key string) string
	Set(key string, value string)
	Remove(key string)
	GetOrSet(key string, setter func() string) string
}

type ErrDB

type ErrDB struct {
	Fetch func(path string) (io.ReadCloser, error)
	Cache Cache
	// contains filtered or unexported fields
}

func (*ErrDB) ForEachErrors

func (db *ErrDB) ForEachErrors(callback func(*mcla.ErrorDesc) error) (err error)

func (*ErrDB) GetErrorDesc

func (db *ErrDB) GetErrorDesc(id int) (desc *mcla.ErrorDesc, err error)

func (*ErrDB) GetSolution

func (db *ErrDB) GetSolution(id int) (sol *mcla.SolutionDesc, err error)

func (*ErrDB) RefreshCache

func (db *ErrDB) RefreshCache() (err error)

type UnsupportSyntaxErr

type UnsupportSyntaxErr struct {
	Version int
}

func (*UnsupportSyntaxErr) Error

func (e *UnsupportSyntaxErr) Error() string

Jump to

Keyboard shortcuts

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