Documentation ¶
Index ¶
- Variables
- type Session
- type Share
- type SqliteStorage
- func (d *SqliteStorage) CreateShare(share *Share, maxSharesPerUser int) (bool, error)
- func (d *SqliteStorage) GetShare(path string) (*Share, error)
- func (d *SqliteStorage) GetUserShares(githubUserID uint64) ([]Share, error)
- func (d *SqliteStorage) IsPathAvail(path string) (bool, error)
- func (d *SqliteStorage) IsSessionValid(s *Session) error
- func (d *SqliteStorage) RemoveSession(s *Session) error
- func (d *SqliteStorage) RemoveShare(path string, githubUserID uint64) error
- func (d *SqliteStorage) StoreSession(s *Session) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found requested data")
Functions ¶
This section is empty.
Types ¶
type SqliteStorage ¶
type SqliteStorage struct {
// contains filtered or unexported fields
}
func NewSqliteStorage ¶
func NewSqliteStorage(path string) (SqliteStorage, error)
func (*SqliteStorage) CreateShare ¶
func (d *SqliteStorage) CreateShare(share *Share, maxSharesPerUser int) (bool, error)
func (*SqliteStorage) GetUserShares ¶
func (d *SqliteStorage) GetUserShares(githubUserID uint64) ([]Share, error)
func (*SqliteStorage) IsPathAvail ¶
func (d *SqliteStorage) IsPathAvail(path string) (bool, error)
func (*SqliteStorage) IsSessionValid ¶
func (d *SqliteStorage) IsSessionValid(s *Session) error
func (*SqliteStorage) RemoveSession ¶
func (d *SqliteStorage) RemoveSession(s *Session) error
func (*SqliteStorage) RemoveShare ¶
func (d *SqliteStorage) RemoveShare(path string, githubUserID uint64) error
func (*SqliteStorage) StoreSession ¶
func (d *SqliteStorage) StoreSession(s *Session) error
Click to show internal directories.
Click to hide internal directories.