Versions in this module Expand all Collapse all v0 v0.0.1 Dec 2, 2016 Changes in this version + func IsNowAfter(t time.Time) bool + func StructTagToColumns(entity entity.Entity) []string + type Auth struct + CreatedAt dbr.NullTime + Email string + Id uint64 + Source string + SourceId int + UpdatedAt dbr.NullTime + UserId uint64 + func NewAuth() *Auth + func (self *Auth) TableName() string + type CommonModel struct + CreatedAt dbr.NullTime + Id dbr.NullInt64 + UpdatedAt dbr.NullTime + type Error interface + Message func() string + StatusCode func() int + func NewError(code int, message string) Error + type User struct + CreatedAt dbr.NullTime + Email string + Id dbr.NullInt64 + LastLoginAt dbr.NullTime + Name string + RegID dbr.NullString + SessionToken string + TokenExpire dbr.NullTime + UpdatedAt dbr.NullTime + var LoginUser *User + func NewUser() *User + func (self *User) Auth(ou oauth.User) (string, error) + func (self *User) FindUserBySessionToken(token string) error + func (self *User) SaveRegistrationID(regID string) error + func (self *User) TableName() string + func (self *User) ToJson() *json.UserJson