core

package
v0.0.0-...-34e14d4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BannerSlotSocialGroupTable = "banner_slot_social_groups"
View Source
var BannerSlotTable = "banner_slots"
View Source
var BannersTable = "banners"
View Source
var ErrConvertToString = errors.New("could not convert value to string")
View Source
var ErrNotFound = errors.New("not found")
View Source
var SlotsTable = "slots"
View Source
var SocialGroupTable = "social_groups"

Functions

This section is empty.

Types

type Banner struct {
	ID          int64  `db:"id"`
	Description string `db:"description"`
}

type BannerSlot

type BannerSlot struct {
	ID       int64 `db:"id"`
	BannerID int64 `db:"banner_id"`
	SlotID   int64 `db:"slot_id"`
}

type BannerSlotSocialGroup

type BannerSlotSocialGroup struct {
	ID            int64 `db:"id"`
	BannerSlotID  int64 `db:"banner_slot_id"`
	SocialGroupID int64 `db:"social_group_id"`
	Views         int   `db:"views"`
	Clicks        int   `db:"clicks"`
}

type GetBannerRequest

type GetBannerRequest struct {
	SlotID        int64
	SocialGroupID int64
}

type GetBannerResponse

type GetBannerResponse struct {
	ID int64 `json:"id"`
}

type IncrementClickInput

type IncrementClickInput struct {
	BannerID      int64
	SlotID        int64
	SocialGroupID int64
}

type IncrementEvent

type IncrementEvent struct {
	BannerID      int64
	SlotID        int64
	SocialGroupID int64
	Datetime      time.Time
}

type Slot

type Slot struct {
	ID          int64
	Description string
}

type SocialGroup

type SocialGroup struct {
	ID          int64
	Description string
}

Jump to

Keyboard shortcuts

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