Documentation
¶
Index ¶
- type BookmarkGroup
- type BookmarkGroupRepository
- func (r *BookmarkGroupRepository) Create(bg *BookmarkGroup) error
- func (r *BookmarkGroupRepository) Delete(bookmarkGroupName string) error
- func (r *BookmarkGroupRepository) GetByName(name string) (*BookmarkGroup, error)
- func (r *BookmarkGroupRepository) GetCurrent() (*BookmarkGroup, error)
- func (r *BookmarkGroupRepository) List() ([]BookmarkGroup, error)
- type Branch
- type BranchCheckout
- type BranchCheckoutRepository
- func (r *BranchCheckoutRepository) DeleteAll() error
- func (r *BranchCheckoutRepository) GetFrequent(limit int, isReverse bool) ([]BranchCheckout, error)
- func (r *BranchCheckoutRepository) GetRecent(limit int, isReverse bool) ([]BranchCheckout, error)
- func (r *BranchCheckoutRepository) GetRecentFrequent(limit int, isReverse bool) ([]BranchCheckout, error)
- func (r *BranchCheckoutRepository) Upsert(b *BranchCheckout) error
- type BranchRepository
- func (r *BranchRepository) Create(b *Branch) error
- func (r *BranchRepository) GetByName(bookmarkGroupID int64, name string) (*Branch, error)
- func (r *BranchRepository) ListByBookmarkGroupId(bookmarkGroupID int64) ([]Branch, error)
- func (r *BranchRepository) Remove(bookmarkGroupID int64, name string) error
- type CurrentBookmarkGroup
- type CurrentBookmarkGroupRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookmarkGroup ¶
type BookmarkGroupRepository ¶
type BookmarkGroupRepository struct {
// contains filtered or unexported fields
}
func NewBookmarkGroupRepository ¶
func NewBookmarkGroupRepository(db *sql.DB) *BookmarkGroupRepository
func (*BookmarkGroupRepository) Create ¶
func (r *BookmarkGroupRepository) Create(bg *BookmarkGroup) error
Create a new bookmark group and set it as the current bookmark group
func (*BookmarkGroupRepository) Delete ¶
func (r *BookmarkGroupRepository) Delete(bookmarkGroupName string) error
func (*BookmarkGroupRepository) GetByName ¶
func (r *BookmarkGroupRepository) GetByName(name string) (*BookmarkGroup, error)
func (*BookmarkGroupRepository) GetCurrent ¶
func (r *BookmarkGroupRepository) GetCurrent() (*BookmarkGroup, error)
Get current bookmark group
func (*BookmarkGroupRepository) List ¶
func (r *BookmarkGroupRepository) List() ([]BookmarkGroup, error)
List all bookmark groups
type BranchCheckout ¶
type BranchCheckoutRepository ¶
type BranchCheckoutRepository struct {
// contains filtered or unexported fields
}
func NewBranchCheckoutRepository ¶
func NewBranchCheckoutRepository(db *sql.DB) *BranchCheckoutRepository
func (*BranchCheckoutRepository) DeleteAll ¶
func (r *BranchCheckoutRepository) DeleteAll() error
func (*BranchCheckoutRepository) GetFrequent ¶
func (r *BranchCheckoutRepository) GetFrequent(limit int, isReverse bool) ([]BranchCheckout, error)
func (*BranchCheckoutRepository) GetRecent ¶
func (r *BranchCheckoutRepository) GetRecent(limit int, isReverse bool) ([]BranchCheckout, error)
func (*BranchCheckoutRepository) GetRecentFrequent ¶
func (r *BranchCheckoutRepository) GetRecentFrequent(limit int, isReverse bool) ([]BranchCheckout, error)
func (*BranchCheckoutRepository) Upsert ¶
func (r *BranchCheckoutRepository) Upsert(b *BranchCheckout) error
type BranchRepository ¶
type BranchRepository struct {
// contains filtered or unexported fields
}
func NewBranchRepository ¶
func NewBranchRepository(db *sql.DB) *BranchRepository
func (*BranchRepository) Create ¶
func (r *BranchRepository) Create(b *Branch) error
func (*BranchRepository) GetByName ¶
func (r *BranchRepository) GetByName(bookmarkGroupID int64, name string) (*Branch, error)
func (*BranchRepository) ListByBookmarkGroupId ¶
func (r *BranchRepository) ListByBookmarkGroupId(bookmarkGroupID int64) ([]Branch, error)
type CurrentBookmarkGroup ¶
type CurrentBookmarkGroup struct {
BookmarkGroupID int64
}
type CurrentBookmarkGroupRepository ¶
type CurrentBookmarkGroupRepository struct {
// contains filtered or unexported fields
}
func NewCurrentBookmarkGroupRepository ¶
func NewCurrentBookmarkGroupRepository(db *sql.DB) *CurrentBookmarkGroupRepository
func (*CurrentBookmarkGroupRepository) GetCurrentBookmarkGroupId ¶
func (r *CurrentBookmarkGroupRepository) GetCurrentBookmarkGroupId() (int64, error)
func (*CurrentBookmarkGroupRepository) SetCurrentBookmarkGroupId ¶
func (r *CurrentBookmarkGroupRepository) SetCurrentBookmarkGroupId(bookmarkGroupID int64) error
You might also want to add a method to set the current bookmark group
Click to show internal directories.
Click to hide internal directories.