Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) CleanExpired ¶
CleanExpired removes expired cache files
func (*Cache) GenerateHash ¶
GenerateHash generates a SHA256 hash of the content
type CachedResponse ¶
type CachedResponse struct {
Hash string `json:"hash"`
Response json.RawMessage `json:"response"`
CreatedAt time.Time `json:"created_at"`
}
Click to show internal directories.
Click to hide internal directories.