Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCacheMiss = errors.New("braintree: cache miss") ErrCacheInternal = errors.New("braintree: cache internal error") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Clear() // Entries returns all cache entries and ErrCacheMiss if the // cache is currently empty. Entries() ([]*braintreeAPI.Plan, error) // Set sets the entries in the cache. Set(entries []*braintreeAPI.Plan) error }
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func NewFileCache ¶
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
func NewMemoryCache ¶
func NewMemoryCache() *MemoryCache
func (*MemoryCache) Clear ¶
func (self *MemoryCache) Clear()
func (*MemoryCache) Entries ¶
func (self *MemoryCache) Entries() ([]*braintreeAPI.Plan, error)
func (*MemoryCache) Set ¶
func (self *MemoryCache) Set(entries []*braintreeAPI.Plan) error
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) ClearCache ¶
func (self *Proxy) ClearCache()
func (*Proxy) FindAllPlans ¶
func (self *Proxy) FindAllPlans() ([]*braintreeAPI.Plan, error)
Click to show internal directories.
Click to hide internal directories.