Documentation ¶
Index ¶
- Constants
- type Apps
- type AppsRecord
- type Artists
- type ArtistsRecord
- type DBAccess
- type Ranks
- func (ranks *Ranks) Insert(record RanksRecord) error
- func (ranks *Ranks) SelectAppRankList(start time.Time, end time.Time, country string, kind int, appID int64) ([]RanksRecord, error)
- func (ranks *Ranks) SelectLatestUpdated(country string, kind int) (time.Time, error)
- func (ranks *Ranks) SelectRankList(updated time.Time, country string, kind int) ([]RanksRecord, error)
- type RanksRecord
Constants ¶
View Source
const ( //RanksKindGrossing は種別のセールスランキング RanksKindGrossing = 1 //RanksKindGrossingIpad は種別のiPadセールスランキング RanksKindGrossingIpad = 2 //RanksKindPaid は種別の有料ランキング RanksKindPaid = 3 //RanksKindPaidIpad は種別のiPad有料ランキング RanksKindPaidIpad = 4 //RanksKindFree は種別の無料ランキング RanksKindFree = 5 //RanksKindFreeIpad は種別のiPad無料スランキング RanksKindFreeIpad = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apps ¶
type Apps struct {
// contains filtered or unexported fields
}
Apps はアプリ情報テーブルアクセス構造体
func (*Apps) Insert ¶
func (apps *Apps) Insert(record AppsRecord) error
Insert はアプリ情報テーブルにレコードを追加する 既に登録されている場合はデータの更新を行う
func (*Apps) SelectRecord ¶
func (apps *Apps) SelectRecord(id int64) (AppsRecord, error)
SelectRecord は指定したアプリIDからアプリ詳細情報レコードを取得する
type AppsRecord ¶
type AppsRecord struct { ID int64 `db:"id"` Name string `db:"name"` URL string `db:"url"` ArtworkURL string `db:"artwork_url"` Kind string `db:"kind"` Copyright string `db:"copyright"` ArtistsID int64 `db:"artist_id"` ReleaseDate time.Time `db:"release_date"` }
AppsRecord はアプリ情報テーブルレコード構造体
type Artists ¶
type Artists struct {
// contains filtered or unexported fields
}
Artists は著作者情報テーブルアクセス構造体
func (*Artists) Insert ¶
func (artists *Artists) Insert(record ArtistsRecord) error
Insert は著作者情報テーブルにレコードを追加する すでに登録されている場合はデータの更新を行う
func (*Artists) SelectRecord ¶
func (artists *Artists) SelectRecord(id int64) (ArtistsRecord, error)
SelectRecord 指定した著作者IDのレコードを取得する
type ArtistsRecord ¶
ArtistsRecord は著作者情報テーブルのレコード構造体
type DBAccess ¶
type DBAccess struct {
// contains filtered or unexported fields
}
DBAccess はDBアクセス用構造体
type Ranks ¶
type Ranks struct {
// contains filtered or unexported fields
}
Ranks はRanksテーブルアクセス用構造体
func (*Ranks) Insert ¶
func (ranks *Ranks) Insert(record RanksRecord) error
Insert はランキング情報を登録する 既に登録済みの時は登録しない
func (*Ranks) SelectAppRankList ¶
func (ranks *Ranks) SelectAppRankList(start time.Time, end time.Time, country string, kind int, appID int64) ([]RanksRecord, error)
SelectAppRankList は指定した時間範囲のアプリランキング順位リストを取得する
func (*Ranks) SelectLatestUpdated ¶
SelectLatestUpdated は指定した種別の最後の更新日時を取得する
func (*Ranks) SelectRankList ¶
func (ranks *Ranks) SelectRankList(updated time.Time, country string, kind int) ([]RanksRecord, error)
SelectRankList は指定した時刻に登録されているアプリランキング一覧を取得する
Click to show internal directories.
Click to hide internal directories.