Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface { Set(key, val string) error Get(key string) (string, error) GetMulti(keys []string) (map[string]*memcache.Item, error) Delete(key string) error }
Repository represent the repositories
func NewMemcachedRepository ¶
func NewMemcachedRepository(Client *memcache.Client) Repository
NewMemcachedRepository will create an object that represent the Repository interface
type Service ¶
type Service interface { Set(key, value string) (int, error) Get(key string) (string, int, error) GetMulti(keys []string) (map[string]string, int, error) Delete(key string) (int, error) }
Service represent the services
func NewService ¶
func NewService(log *logrus.Entry, r Repository) Service
NewService will create an object that represent the Service interface
Click to show internal directories.
Click to hide internal directories.