piotrkowalczuk/mnemosyne

View on GitHub
internal/cache/cache.go

Summary

Maintainability
A
0 mins
Test Coverage

exported method Cache.Put should have comment or be unexported
Open

func (c *Cache) Put(k uint64, ses mnemosynerpc.Session) {
Severity: Minor
Found in internal/cache/cache.go by golint

exported type Entry should have comment or be unexported
Open

type Entry struct {
Severity: Minor
Found in internal/cache/cache.go by golint

exported function New should have comment or be unexported
Open

func New(ttl time.Duration, namespace string) *Cache {
Severity: Minor
Found in internal/cache/cache.go by golint

exported method Cache.Refresh should have comment or be unexported
Open

func (c *Cache) Refresh(k uint64) {
Severity: Minor
Found in internal/cache/cache.go by golint

exported method Cache.Del should have comment or be unexported
Open

func (c *Cache) Del(k uint64) {
Severity: Minor
Found in internal/cache/cache.go by golint

exported type Cache should have comment or be unexported
Open

type Cache struct {
Severity: Minor
Found in internal/cache/cache.go by golint

There are no issues that match your filters.

Category
Status