Documentation ¶
Index ¶
Constants ¶
View Source
const (
APP_BUCKET = "AppBucket"
)
Variables ¶
This section is empty.
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 Caching ¶
type Caching interface { Open() error Close() error GetAllApps() (map[string]*App, error) GetApp(string) (*App, error) }
func NewCachingEmpty ¶
func NewCachingEmpty() Caching
type CachingBolt ¶
type CachingBolt struct {
// contains filtered or unexported fields
}
func NewCachingBolt ¶
func NewCachingBolt(client AppClient, config *CachingBoltConfig) (*CachingBolt, error)
func (*CachingBolt) Close ¶
func (c *CachingBolt) Close() error
func (*CachingBolt) GetAllApps ¶
func (c *CachingBolt) GetAllApps() (map[string]*App, error)
GetAllApps returns all apps info
func (*CachingBolt) GetApp ¶
func (c *CachingBolt) GetApp(appGuid string) (*App, error)
GetAppInfo tries first get app info from cache. If caches doesn't have this app info (cache miss), it issues API to retrieve the app info from remote if the app is not already missing and clients don't ignore the missing app info, and then add the app info to the cache On the other hand, if the app is already missing and clients want to save remote API and ignore missing app, then a nil app info and an error will be returned.
func (*CachingBolt) Open ¶
func (c *CachingBolt) Open() error
type CachingBoltConfig ¶
type CachingEmpty ¶
type CachingEmpty struct{}
func (*CachingEmpty) Close ¶
func (c *CachingEmpty) Close() error
func (*CachingEmpty) GetAllApps ¶
func (c *CachingEmpty) GetAllApps() (map[string]*App, error)
func (*CachingEmpty) Open ¶
func (c *CachingEmpty) Open() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.