Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
APP_BUCKET = []byte("AppBucketV2")
)
View Source
var ( // ErrKeyNotFound is returned if value is not found ErrKeyNotFound = errors.New("key not found") )
Functions ¶
Types ¶
type App ¶
type App struct { Name string Guid string SpaceName string SpaceGuid string OrgName string OrgGuid string IgnoredApp bool }
func (App) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (App) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*App) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*App) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type BoltCacheStore ¶
type BoltCacheStore struct { Path string // contains filtered or unexported fields }
func (*BoltCacheStore) Close ¶
func (bcs *BoltCacheStore) Close() error
func (*BoltCacheStore) Get ¶
func (bcs *BoltCacheStore) Get(key string, rv interface{}) error
func (*BoltCacheStore) Open ¶
func (bcs *BoltCacheStore) Open() error
func (*BoltCacheStore) Set ¶
func (bcs *BoltCacheStore) Set(key string, val interface{}) error
type CFClientAdapter ¶
func (*CFClientAdapter) DoGet ¶
func (c *CFClientAdapter) DoGet(url string) (io.ReadCloser, error)
type CFSimpleClient ¶
type CFSimpleClient interface {
DoGet(url string) (io.ReadCloser, error)
}
type CacheLazyFill ¶
type CacheLazyFill struct {
// contains filtered or unexported fields
}
func NewCacheLazyFill ¶
func NewCacheLazyFill(client CFSimpleClient, store CacheStore, config *CacheLazyFillConfig) *CacheLazyFill
func (*CacheLazyFill) FillCache ¶
func (c *CacheLazyFill) FillCache() error
FillCache communicates with the server to enumerate *all* applications and fills the cache
type CacheLazyFillConfig ¶
type CacheStore ¶
type CacheStore interface { // Open initializes the store Open() error // Close closes the store Close() error // Get looks up key, and decodes it into rv. // Returns ErrKeyNotFound if not found Get(key string, rv interface{}) error // Set encodes the value and stores it Set(key string, value interface{}) error }
CacheStore provides a mechanism to persist data After it has been opened, Get / Set are threadsafe
type MemoryCacheStore ¶
type MemoryCacheStore struct {
// contains filtered or unexported fields
}
func (*MemoryCacheStore) Close ¶
func (mcs *MemoryCacheStore) Close() error
func (*MemoryCacheStore) Get ¶
func (mcs *MemoryCacheStore) Get(key string, rv interface{}) error
func (*MemoryCacheStore) Open ¶
func (mcs *MemoryCacheStore) Open() error
func (*MemoryCacheStore) Set ¶
func (mcs *MemoryCacheStore) Set(key string, val interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.