Versions in this module Expand all Collapse all v0 v0.6.0 Mar 12, 2024 Changes in this version + const CacheModeReadOnly + const CacheModeReadWrite + const CacheModeWriteOnly + const HeaderAge + const HeaderDate + const HeaderExpires + const HeaderHannibalCache + const HeaderHannibalCacheDate + const PropertyIsActor + const PropertyIsCollection + const PropertyIsObject + const PropertyRelationHref + const PropertyRelationType + const RelationTypeAnnounce + const RelationTypeDislike + const RelationTypeLike + const RelationTypeReply + func CalcRefreshDate(loadDate int64, expirationDate int64) int64 + type Client struct + func New(innerClient streams.Client, collection *mongo.Collection, ...) *Client + func (client *Client) Delete(url string) error + func (client *Client) IsReadWritable() bool + func (client *Client) IsReadable() bool + func (client *Client) IsWritable() bool + func (client *Client) Load(url string, options ...any) (streams.Document, error) + func (client *Client) NotReadWritable() bool + func (client *Client) NotReadable() bool + func (client *Client) NotWritable() bool + func (client *Client) Put(document streams.Document) + func (client *Client) WithOptions(options ...ClientOptionFunc) + type ClientOptionFunc func(*Client) + func WithIgnoreHeaders() ClientOptionFunc + func WithObeyHeaders() ClientOptionFunc + func WithPurgeFrequency(seconds int64) ClientOptionFunc + func WithReadOnly() ClientOptionFunc + func WithReadWrite() ClientOptionFunc + func WithWriteOnly() ClientOptionFunc + type LoadConfig struct + func NewLoadConfig(options ...any) LoadConfig + func (config *LoadConfig) With(options ...any) + type LoadOption func(*LoadConfig) + func WithForceReload() LoadOption + func WithoutForceReload() LoadOption + type TaskClearExpired struct + func (task TaskClearExpired) Run() error + type Value struct + Expires int64 + HTTPHeader http.Header + Metadata mapof.Any + Object mapof.Any + Published int64 + Received int64 + Revalidates int64 + Statistics streams.Statistics + URLs sliceof.String + func NewValue() Value + func (value Value) ShouldRevalidate() bool