Documentation ¶
Index ¶
- Variables
- type Project
- func (p *Project) BeforeCreate(tx *gorm.DB) (err error)
- func (p *Project) Delete(name string) error
- func (p *Project) FindByName(name string, limit int) ([]Project, error)
- func (p *Project) List() ([]Project, error)
- func (p *Project) Save() error
- func (p *Project) SaveJSON(payload map[string]interface{}) error
- func (p *Project) Update(payload map[string]interface{}) error
- func (p *Project) With(name string, summary string, client *client.Client) *Project
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TableName = "projects" ErrMissingDB = errors.New("no database path provided for project") )
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { ID uint `json:"id" gorm:"primarykey"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"` Name string `json:"name"` Summary string `json:"summary"` ClientID uint `json:"client_id"` Client *client.Client `json:"client"` // contains filtered or unexported fields }
func (*Project) BeforeCreate ¶ added in v0.10.0
func (*Project) FindByName ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.