Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLStoreService ¶
type URLStoreService interface { GetURL(path string) (int, VarMap) AddURL(id int, key string) UpdateURL(id int, key string) DeleteURL(id int) bool }
URLStoreService contain Rule logic
func NewURLStoreService ¶
func NewURLStoreService(impl URLStoreServiceImpl) URLStoreService
NewURLStoreService return new instance of RuleService
type URLStoreServiceImpl ¶
type URLStoreServiceImpl struct { dig.In Store repository.URLStore }
URLStoreServiceImpl is implementation of RuleService
func (*URLStoreServiceImpl) AddURL ¶
func (s *URLStoreServiceImpl) AddURL(id int, key string)
func (*URLStoreServiceImpl) DeleteURL ¶
func (s *URLStoreServiceImpl) DeleteURL(id int) bool
func (*URLStoreServiceImpl) GetURL ¶
func (s *URLStoreServiceImpl) GetURL(path string) (int, VarMap)
func (*URLStoreServiceImpl) UpdateURL ¶
func (s *URLStoreServiceImpl) UpdateURL(id int, key string)
Click to show internal directories.
Click to hide internal directories.