Versions in this module Expand all Collapse all v0 v0.0.1 Jan 17, 2018 Changes in this version + var Sid *shortid.Shortid + func SendPasswordReset(secret string, user *User) error + type AccessToken struct + CreatedAt time.Time + Id string + Token string + UpdatedAt time.Time + UserId string + type AccessTokenDao struct + func NewAccessTokenDao(db *gorm.DB) *AccessTokenDao + func (at *AccessTokenDao) Create(model AccessToken) error + func (at *AccessTokenDao) Delete(id string) error + func (at *AccessTokenDao) DeleteByToken(token string) error + func (at *AccessTokenDao) GetByToken(token string) (AccessToken, error) + type Build struct + CreatedAt time.Time + Id string + InProgress bool + Output string + ProjectId string + Success bool + UpdatedAt time.Time + Version string + type Charge struct + Amount int + CreatedAt time.Time + Description string + Id string + UpdatedAt time.Time + UserId string + type Comment struct + Content string + CreatedAt time.Time + Id string + Issue Issue + IssueId string + UpdatedAt time.Time + User User + UserId string + type Dependency struct + Config string + CreatedAt time.Time + Id string + ProjectId string + Type string + UpdatedAt time.Time + type Endpoint struct + Code string + CreatedAt time.Time + Description string + Id string + Input string + Method string + Output string + ProjectId string + UpdatedAt time.Time + Url string + type Issue struct + CommentCount int + Comments []Comment + CreatedAt time.Time + Id string + ProjectId string + Title string + UpdatedAt time.Time + User User + UserId string + type Post struct + Content string + CreatedAt time.Time + Id string + Slug string + Title string + UpdatedAt time.Time + User User + UserId string + type Project struct + Author string + Builds []Build + CallerId string + CreatedAt time.Time + Dependencies []Dependency + Description string + Endpoints []Endpoint + Id string + Imports string + InfraPassword string + Issues []Issue + Mode string + Name string + Namespace string + OpenSource bool + Packages string + Port int + Public bool + ReadMe string + Recipe string + Secrets string + Source string + Starrers []User + Stars int + Types string + UpdatedAt time.Time + Version string + type Reset struct + CreatedAt time.Time + Id string + Secret string + Used bool + UserId string + type ResetDao struct + func NewResetDao(db *gorm.DB) *ResetDao + func (ud *ResetDao) Create(u Reset) error + func (ud *ResetDao) GetById(id string) (Reset, error) + func (ud *ResetDao) GetByIds(ids []string) ([]Reset, error) + func (ud *ResetDao) GetBySecret(secret string) (Reset, error) + func (ud *ResetDao) Update(u Reset) error + type Star struct + Id string + ProjectId string + UserId string + type Token struct + CreatedAt time.Time + Description string + Id string + Name string + Quota int64 + Token string + UpdatedAt time.Time + UserId string + type User struct + AvatarLink string + CreatedAt time.Time + Email string + Id string + Name string + Nick string + Password string + Posts []Post + Premium bool + Tokens []Token + UpdatedAt time.Time + type UserDao struct + func NewUserDao(db *gorm.DB) *UserDao + func (ud *UserDao) Create(u User) error + func (ud *UserDao) GetByEmail(email string) (User, error) + func (ud *UserDao) GetById(id string) (User, error) + func (ud *UserDao) GetByIds(ids []string) ([]User, error) + func (ud *UserDao) GetByNick(nick string) (User, error) + func (ud *UserDao) OLDUpdate(u User) error + func (ud *UserDao) Update(u User) error