cache

package
v0.0.0-...-a1efb75 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Get

func Get(name string, revision string) ([]byte, error)

func Open

func Open(path string)

func Set

func Set(name string, revision string, data []byte)

Types

type BugzillaClient

type BugzillaClient interface {
	bugzilla.Client

	GetCachedBug(id int, lastChangedTime string) (*bugzilla.Bug, error)
	GetCachedBugComments(id int, lastChangedTime string) ([]bugzilla.Comment, error)
	GetCachedBugHistory(id int, lastChangedTime string) ([]bugzilla.History, error)
}

func NewCachedBugzillaClient

func NewCachedBugzillaClient(client bugzilla.Client) BugzillaClient

type FakeBugzillaClient

type FakeBugzillaClient struct {
	*bugzilla.Fake
}

func (*FakeBugzillaClient) GetCachedBug

func (f *FakeBugzillaClient) GetCachedBug(id int, lastChangedTime string) (*bugzilla.Bug, error)

func (*FakeBugzillaClient) GetCachedBugComments

func (f *FakeBugzillaClient) GetCachedBugComments(id int, lastChangedTime string) ([]bugzilla.Comment, error)

func (*FakeBugzillaClient) GetCachedBugHistory

func (f *FakeBugzillaClient) GetCachedBugHistory(id int, lastChangedTime string) ([]bugzilla.History, error)

Jump to

Keyboard shortcuts

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