Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type Languages ¶
type Languages struct {
DataId int64 `db:"data_id"` // Generated Primary Key, Must Not Be Changed
DeveloperId int64 `db:"developer_id"` // Unique GitHub User ID
Language string `db:"language"` // Programming Languages Used (JSON Format)
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"` // update data time
DeletedAt sql.NullTime `db:"deleted_at"`
}
type LanguagesModel ¶
type LanguagesModel interface {
CreateDataId() (int64, error)
// contains filtered or unexported methods
}
LanguagesModel is an interface to be customized, add more methods here, and implement the added methods in customLanguagesModel.
func NewLanguagesModel ¶
func NewLanguagesModel(conn sqlx.SqlConn, c cache.CacheConf, DatancenterId, WorkerId int64, opts ...cache.Option) LanguagesModel
NewLanguagesModel returns a model for the database table.
type Nation ¶
type Nation struct {
DataId int64 `db:"data_id"` // Generated Primary Key, Must Not Be Changed
DeveloperId int64 `db:"developer_id"` // Unique GitHub User ID
Nation string `db:"nation"` // Nation
Confidence float64 `db:"confidence"` // Confidence
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"` // update data time
DeletedAt sql.NullTime `db:"deleted_at"`
}
type NationModel ¶
type NationModel interface {
CreateDataId() (int64, error)
// contains filtered or unexported methods
}
NationModel is an interface to be customized, add more methods here, and implement the added methods in customNationModel.
func NewNationModel ¶
func NewNationModel(conn sqlx.SqlConn, c cache.CacheConf, DatancenterId, WorkerId int64, opts ...cache.Option) NationModel
NewNationModel returns a model for the database table.
type Score ¶
type Score struct {
DataId int64 `db:"data_id"` // Generated Primary Key, Must Not Be Changed
DeveloperId int64 `db:"developer_id"` // Unique GitHub User ID
Score float64 `db:"score"` // score
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"` // update data time
DeletedAt sql.NullTime `db:"deleted_at"`
}
type ScoreModel ¶
type ScoreModel interface {
CreateDataId() (int64, error)
// contains filtered or unexported methods
}
ScoreModel is an interface to be customized, add more methods here, and implement the added methods in customScoreModel.
func NewScoreModel ¶
func NewScoreModel(conn sqlx.SqlConn, c cache.CacheConf, DatancenterId, WorkerId int64, opts ...cache.Option) ScoreModel
NewScoreModel returns a model for the database table.
type Summary ¶
type Summary struct {
DataId int64 `db:"data_id"` // Generated Primary Key, Must Not Be Changed
DeveloperId int64 `db:"developer_id"` // Unique GitHub User ID
Summary string `db:"summary"` // User Summary
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"` // update data time
DeletedAt sql.NullTime `db:"deleted_at"`
}
type SummaryModel ¶
type SummaryModel interface {
CreateDataId() (int64, error)
// contains filtered or unexported methods
}
SummaryModel is an interface to be customized, add more methods here, and implement the added methods in customSummaryModel.
func NewSummaryModel ¶
func NewSummaryModel(conn sqlx.SqlConn, c cache.CacheConf, DatancenterId, WorkerId int64, opts ...cache.Option) SummaryModel
NewSummaryModel returns a model for the database table.