Documentation ¶
Index ¶
- func Close()
- func Get(name string, revision string) ([]byte, error)
- func Open(path string)
- func Set(name string, revision string, data []byte)
- type BugzillaClient
- type FakeBugzillaClient
- func (f *FakeBugzillaClient) GetCachedBug(id int, lastChangedTime string) (*bugzilla.Bug, time.Duration, error)
- func (f *FakeBugzillaClient) GetCachedBugComments(id int, lastChangedTime string) ([]bugzilla.Comment, error)
- func (f *FakeBugzillaClient) GetCachedBugHistory(id int, lastChangedTime string) ([]bugzilla.History, error)
- func (f *FakeBugzillaClient) GetCachedExternalBugs(id int, lastChangedTime string) ([]bugzilla.ExternalBug, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BugzillaClient ¶
type BugzillaClient interface { bugzilla.Client GetCachedBug(id int, lastChangedTime string) (*bugzilla.Bug, time.Duration, error) GetCachedBugComments(id int, lastChangedTime string) ([]bugzilla.Comment, error) GetCachedBugHistory(id int, lastChangedTime string) ([]bugzilla.History, error) GetCachedExternalBugs(id int, lastChangedTime string) ([]bugzilla.ExternalBug, error) }
func NewCachedBugzillaClient ¶
func NewCachedBugzillaClient(client bugzilla.Client, opts ...Option) BugzillaClient
type FakeBugzillaClient ¶
func (*FakeBugzillaClient) GetCachedBug ¶
func (*FakeBugzillaClient) GetCachedBugComments ¶
func (*FakeBugzillaClient) GetCachedBugHistory ¶
func (*FakeBugzillaClient) GetCachedExternalBugs ¶
func (f *FakeBugzillaClient) GetCachedExternalBugs(id int, lastChangedTime string) ([]bugzilla.ExternalBug, error)
Click to show internal directories.
Click to hide internal directories.