Documentation ¶
Index ¶
- Variables
- func CloseDB() error
- func DeleteCommit(ctx context.Context, pid, cid id.ID) error
- func DeleteFile(ctx context.Context, pid, cid, fid id.ID) error
- func DeleteProject(ctx context.Context, pid id.ID) error
- func DeleteUser(ctx context.Context, uid id.ID) error
- func InsertCommit(ctx context.Context, c *Commit) error
- func InsertFile(ctx context.Context, f *File) error
- func InsertProject(ctx context.Context, p *Project) error
- func InsertUser(ctx context.Context, u *User) error
- func OpenDB(dsn string) error
- type Commit
- type File
- type Project
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("resource not found")
Functions ¶
Types ¶
type Commit ¶
type Commit struct { ID id.ID `json:"id"` Title string `json:"title"` Message string `json:"message"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` Project id.ID `json:"projectID"` User id.ID `json:"userID"` }
func EditCommit ¶
type File ¶
type Project ¶
type User ¶
type User struct { ID id.ID `json:"id"` DisplayName string `json:"displayName"` Email string `json:"email"` Password string `json:"password,omitempty"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` PasswdHash []byte `json:"-"` Salt []byte `json:"-"` }
func UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.