caching

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNeeded

func IsNeeded(wantedEvents string) bool

Types

type App

type App struct {
	Name       string
	Guid       string
	SpaceName  string
	SpaceGuid  string
	OrgName    string
	OrgGuid    string
	IgnoredApp bool
}

func (App) MarshalEasyJSON

func (v App) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (App) MarshalJSON

func (v App) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*App) UnmarshalEasyJSON

func (v *App) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*App) UnmarshalJSON

func (v *App) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Caching

type Caching interface {
	CreateBucket()
	PerformPoollingCaching(time.Duration)
	GetAppByGuid(string) []App
	GetAllApp() []App
	GetAppInfo(string) App
	GetAppInfoCache(string) App
	Close()
}

func NewCachingBolt

func NewCachingBolt(gcfClientSet *cfClient.Client, boltDatabasePath string) Caching

func NewCachingEmpty

func NewCachingEmpty() Caching

type CachingBolt

type CachingBolt struct {
	GcfClient *cfClient.Client
	Appdb     *bolt.DB
}

func (*CachingBolt) Close

func (c *CachingBolt) Close()

func (*CachingBolt) CreateBucket

func (c *CachingBolt) CreateBucket()

func (*CachingBolt) GetAllApp

func (c *CachingBolt) GetAllApp() []App

func (*CachingBolt) GetAppByGuid

func (c *CachingBolt) GetAppByGuid(appGuid string) []App

func (*CachingBolt) GetAppInfo

func (c *CachingBolt) GetAppInfo(appGuid string) App

func (*CachingBolt) GetAppInfoCache

func (c *CachingBolt) GetAppInfoCache(appGuid string) App

func (*CachingBolt) PerformPoollingCaching

func (c *CachingBolt) PerformPoollingCaching(tickerTime time.Duration)

type CachingEmpty

type CachingEmpty struct{}

func (*CachingEmpty) Close

func (c *CachingEmpty) Close()

func (*CachingEmpty) CreateBucket

func (c *CachingEmpty) CreateBucket()

func (*CachingEmpty) GetAllApp

func (c *CachingEmpty) GetAllApp() []App

func (*CachingEmpty) GetAppByGuid

func (c *CachingEmpty) GetAppByGuid(appGuid string) []App

func (*CachingEmpty) GetAppInfo

func (c *CachingEmpty) GetAppInfo(appGuid string) App

func (*CachingEmpty) GetAppInfoCache

func (c *CachingEmpty) GetAppInfoCache(appGuid string) App

func (*CachingEmpty) PerformPoollingCaching

func (c *CachingEmpty) PerformPoollingCaching(tickerTime time.Duration)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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