Add missing comments

This commit is contained in:
andig 2020-03-22 15:23:16 +01:00
parent 8f00a10203
commit 1d1ad3dba6

View file

@ -4,6 +4,7 @@ import (
"time"
)
// CacheGetter wraps a getter with a cache
type CacheGetter struct {
updated time.Time
cache time.Duration
@ -11,6 +12,7 @@ type CacheGetter struct {
val interface{}
}
// NewCacheGetter wraps a getter with a cache
func NewCacheGetter(getter interface{}, cache time.Duration) *CacheGetter {
return &CacheGetter{
getter: getter,