Documentation ¶
Index ¶
- type CacheStats
- type IndexBucket
- type IndexItem
- type QueryCache
- func (c *QueryCache) BuildIndexKey(connection *steampipeconfig.ConnectionPlugin, table string, ...) string
- func (c *QueryCache) BuildResultKey(connection *steampipeconfig.ConnectionPlugin, table string, ...) string
- func (c *QueryCache) Clear()
- func (c *QueryCache) Get(connection *steampipeconfig.ConnectionPlugin, table string, ...) *QueryResult
- func (c *QueryCache) Set(connection *steampipeconfig.ConnectionPlugin, table string, ...) bool
- type QueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStats ¶ added in v0.1.0
type IndexBucket ¶
type IndexBucket struct {
Items []*IndexItem
}
IndexBucket contains index items for all cache results for a given table and qual set
func (*IndexBucket) Append ¶
func (b *IndexBucket) Append(item *IndexItem) *IndexBucket
type IndexItem ¶
IndexItem stores the columns and cached index for a single cached query result note - this index item it tied to a specific table and set of quals
func NewIndexItem ¶ added in v0.0.42
func (IndexItem) SatisfiesColumns ¶
func (IndexItem) SatisfiesLimit ¶ added in v0.0.42
type QueryCache ¶
type QueryCache struct { Stats *CacheStats // contains filtered or unexported fields }
func NewQueryCache ¶
func NewQueryCache() (*QueryCache, error)
func (*QueryCache) BuildIndexKey ¶
func (c *QueryCache) BuildIndexKey(connection *steampipeconfig.ConnectionPlugin, table string, qualMap map[string]*proto.Quals) string
func (*QueryCache) BuildResultKey ¶
func (c *QueryCache) BuildResultKey(connection *steampipeconfig.ConnectionPlugin, table string, qualMap map[string]*proto.Quals, columns []string) string
func (*QueryCache) Clear ¶ added in v0.2.0
func (c *QueryCache) Clear()
func (*QueryCache) Get ¶
func (c *QueryCache) Get(connection *steampipeconfig.ConnectionPlugin, table string, qualMap map[string]*proto.Quals, columns []string, limit int64) *QueryResult
func (*QueryCache) Set ¶
func (c *QueryCache) Set(connection *steampipeconfig.ConnectionPlugin, table string, qualMap map[string]*proto.Quals, columns []string, limit int64, result *QueryResult, ttl time.Duration) bool
type QueryResult ¶
type QueryResult struct {
Rows []map[string]interface{}
}
func (*QueryResult) Append ¶
func (q *QueryResult) Append(row map[string]interface{})
Click to show internal directories.
Click to hide internal directories.