repository

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICacheRepo

type ICacheRepo interface {
	WriteCache(key string, data interface{}, ttl time.Duration) (err error)
	WriteCacheIfEmpty(key string, data interface{}, ttl time.Duration) (err error)
}

ICacheRepo interface for cache repo

func NewCacheRepository

func NewCacheRepository(opt Option) ICacheRepo

NewCacheRepository initiate cache repo

type Option

type Option struct {
	commons.Options
}

Option anything any repo object needed

type Repository

type Repository struct {
	// User IUserRepository
	Cache ICacheRepo
}

Repository all repo object injected here

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL