Documentation ¶
Index ¶
- Constants
- func IDToString(id int64) string
- func JoinKeyPath(keys ...interface{}) string
- func ParseID(key string) int64
- func SplitKeyPath(path string) []string
- type Repo
- func (r *Repo) AddSlotBanner(slotID, bannerID int64) error
- func (r *Repo) CheckSlotHasBanner(slotID, bannerID int64) (bool, error)
- func (r *Repo) ClearBannerStats(bannerID int64) error
- func (r *Repo) ClearGroupBannerStats(groupID, bannerID int64) error
- func (r *Repo) DelBannerDescription(bannerID int64) error
- func (r *Repo) IncrClicks(groupID, bannerID int64) error
- func (r *Repo) IncrShows(groupID, bannerID int64) error
- func (r *Repo) IncrStats(groupID, bannerID int64, kind StatKind) error
- func (r *Repo) ListBannerSlots(bannerID int64) ([]int64, error)
- func (r *Repo) ListSlotBanners(slotID int64) ([]int64, error)
- func (r *Repo) ListStats(groupID int64) ([]*entity.Stat, error)
- func (r *Repo) RemoveSlotBanner(slotID, bannerID int64) error
- func (r *Repo) SetBannerDescription(bannerID int64, description string) error
- type StatKind
Constants ¶
View Source
const SEP = ":"
Variables ¶
This section is empty.
Functions ¶
func IDToString ¶
func JoinKeyPath ¶
func JoinKeyPath(keys ...interface{}) string
func SplitKeyPath ¶
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewRedisRepo ¶
func (*Repo) AddSlotBanner ¶
func (*Repo) CheckSlotHasBanner ¶
func (*Repo) ClearBannerStats ¶
ClearBannerStats clears banner's stats from all groups
func (*Repo) ClearGroupBannerStats ¶
func (*Repo) DelBannerDescription ¶
func (*Repo) IncrClicks ¶
func (*Repo) RemoveSlotBanner ¶
Click to show internal directories.
Click to hide internal directories.