Documentation ¶
Index ¶
- type Service
- func (s *Service) Add(c context.Context, mid int64, long string) (short string, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) ShortByID(c context.Context, id int64) (su *model.ShortUrl, err error)
- func (s *Service) ShortCache(c context.Context, short string) (su *model.ShortUrl, err error)
- func (s *Service) ShortCount(c context.Context, mid int64, long string) (count int, err error)
- func (s *Service) ShortDel(c context.Context, id, mid int64, now time.Time) (err error)
- func (s *Service) ShortLimit(c context.Context, pn, ps int, mid int64, long string) (res []*model.ShortUrl, err error)
- func (s *Service) ShortUpdate(c context.Context, id, mid int64, long string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service service struct
func (*Service) ShortCache ¶
ShortCache get short by cache
func (*Service) ShortCount ¶
ShortCount model.ShortCount count
Click to show internal directories.
Click to hide internal directories.