Documentation ¶
Index ¶
- type Result
- type ResultsList
- type SQLiteConnection
- func (s *SQLiteConnection) CreateDB() error
- func (s *SQLiteConnection) GetCharacter(id int) (int, error)
- func (s *SQLiteConnection) GetLogs(userid int) (*ResultsList, error)
- func (s *SQLiteConnection) GetUser(userId int) (string, error)
- func (s *SQLiteConnection) GetUsers() (*UsersList, error)
- func (s *SQLiteConnection) LoadUsers() error
- func (s *SQLiteConnection) SetUser(userID int, username string) error
- func (s *SQLiteConnection) UsersList() string
- func (s *SQLiteConnection) WriteTask(original, response, comment string, user int) error
- type Storage
- type User
- type UserCache
- type UsersList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultsList ¶
type ResultsList struct {
Results []Result
}
type SQLiteConnection ¶
func ConnectSQLite ¶
func ConnectSQLite(conf config.DBConfig) (*SQLiteConnection, error)
func (*SQLiteConnection) CreateDB ¶
func (s *SQLiteConnection) CreateDB() error
func (*SQLiteConnection) GetCharacter ¶
func (s *SQLiteConnection) GetCharacter(id int) (int, error)
func (*SQLiteConnection) GetLogs ¶
func (s *SQLiteConnection) GetLogs(userid int) (*ResultsList, error)
func (*SQLiteConnection) GetUsers ¶
func (s *SQLiteConnection) GetUsers() (*UsersList, error)
func (*SQLiteConnection) LoadUsers ¶
func (s *SQLiteConnection) LoadUsers() error
func (*SQLiteConnection) SetUser ¶
func (s *SQLiteConnection) SetUser(userID int, username string) error
func (*SQLiteConnection) UsersList ¶
func (s *SQLiteConnection) UsersList() string
type Storage ¶
type UserCache ¶
type UserCache struct {
// contains filtered or unexported fields
}
func NewUserCache ¶
func NewUserCache() UserCache
Click to show internal directories.
Click to hide internal directories.