service

package
v0.0.0-...-eaa30f2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 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)

type VarMap

type VarMap map[string]string

Jump to

Keyboard shortcuts

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