Versions in this module Expand all Collapse all v0 v0.1.0 Sep 30, 2024retracted Changes in this version + const IndexNameID + const IndexNameLease + const IndexNameLeaseToken + const IndexNameRequestPath + const IndexNameToken + const IndexNameTokenAccessor + const IndexNameTokenParent + type CacheMemDB struct + func New() (*CacheMemDB, error) + func (c *CacheMemDB) Evict(indexName string, indexValues ...interface{}) error + func (c *CacheMemDB) Flush() error + func (c *CacheMemDB) Get(indexName string, indexValues ...interface{}) (*Index, error) + func (c *CacheMemDB) GetByPrefix(indexName string, indexValues ...interface{}) ([]*Index, error) + func (c *CacheMemDB) Set(index *Index) error + type ContextInfo struct + CancelFunc context.CancelFunc + Ctx context.Context + DoneCh chan struct{} + func NewContextInfo(ctx context.Context) *ContextInfo + type Index struct + ID string + LastRenewed time.Time + Lease string + LeaseToken string + Namespace string + RenewCtxInfo *ContextInfo + RequestHeader http.Header + RequestMethod string + RequestPath string + RequestToken string + Response []byte + Token string + TokenAccessor string + TokenParent string + Type string + func Deserialize(indexBytes []byte) (*Index, error) + func (i Index) Serialize() ([]byte, error) + type IndexName uint32