Documentation
¶
Index ¶
- func NewLibSqlDatabase(url string) (*sql.DB, error)
- type Mapping
- type Storage
- func (s *Storage) AddMapping(email string, keymap string, mapsTo string) error
- func (s *Storage) CreateOrUpdateUser(gothUser goth.User) error
- func (s *Storage) DeleteMapping(mappingID string, email string) error
- func (s *Storage) GetMapping(mappingID string, email string) *Mapping
- func (s *Storage) GetMappings(email string) []Mapping
- func (s *Storage) GetUserSettings(email string) *UserSettings
- func (s *Storage) UpdateMapping(mappingID string, email string, keymap string, mapsTo string) error
- func (s *Storage) UpdateUserSettings(email string, settings *UserSettings) error
- type User
- type UserSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) AddMapping ¶
func (*Storage) DeleteMapping ¶
func (*Storage) GetMappings ¶
func (*Storage) GetUserSettings ¶
func (s *Storage) GetUserSettings(email string) *UserSettings
func (*Storage) UpdateMapping ¶
func (*Storage) UpdateUserSettings ¶
func (s *Storage) UpdateUserSettings(email string, settings *UserSettings) error
type UserSettings ¶
Click to show internal directories.
Click to hide internal directories.