Documentation ¶
Index ¶
- Variables
- type AllParts
- type Keyboard
- type KeycapMaterial
- type Keyswitch
- type PartsModel
- func (m *PartsModel) GetAll() (AllParts, error)
- func (m *PartsModel) GetDaily(correctKeyboard, correctSwitch, correctPlate uuid.UUID) (AllParts, error)
- func (m *PartsModel) GetKeyboardOpts(correctKeyboard uuid.UUID) ([]Keyboard, error)
- func (m *PartsModel) GetKeyboards() ([]Keyboard, error)
- func (m *PartsModel) GetKeycapMaterials() ([]KeycapMaterial, error)
- func (m *PartsModel) GetPlateMaterials() ([]PlateMaterial, error)
- func (m *PartsModel) GetPlateOpts(correctPlate uuid.UUID) ([]PlateMaterial, error)
- func (m *PartsModel) GetSwitchOpts(correctSwitch uuid.UUID) ([]Keyswitch, error)
- func (m *PartsModel) GetSwitches() ([]Keyswitch, error)
- type PlateMaterial
- type ProfileInfo
- type SoundTest
- type SoundTestModel
- func (m *SoundTestModel) AddPlay(soundtest uuid.UUID, ...) error
- func (m *SoundTestModel) GetDaily() (SoundTest, error)
- func (m *SoundTestModel) GetLatest(page int, perPage int, userID string) ([]SoundTestVote, error)
- func (m *SoundTestModel) GetPlay(userID string) (SoundTestPlay, error)
- func (m *SoundTestModel) Insert(fileURL, keyboard, plateMaterial, keycapMaterial, keyswitch, userID string) error
- type SoundTestPlay
- type SoundTestVote
- type User
- type UserModel
- func (m *UserModel) Authenticate(email, password string) (uuid.UUID, error)
- func (m *UserModel) Exists(id string) (bool, error)
- func (m *UserModel) GetProfileInfo(userID string) (ProfileInfo, error)
- func (m *UserModel) Insert(email, password string) error
- func (m *UserModel) UpdateProfile(userID, email, name, username string) error
- type Vote
- type VoteModel
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AllParts ¶
type AllParts struct { Keyboards []Keyboard Switches []Keyswitch PlateMaterials []PlateMaterial KeycapMaterials []KeycapMaterial }
type KeycapMaterial ¶
type PartsModel ¶
func (*PartsModel) GetAll ¶
func (m *PartsModel) GetAll() (AllParts, error)
func (*PartsModel) GetDaily ¶
func (m *PartsModel) GetDaily(correctKeyboard, correctSwitch, correctPlate uuid.UUID) (AllParts, error)
func (*PartsModel) GetKeyboardOpts ¶
func (m *PartsModel) GetKeyboardOpts(correctKeyboard uuid.UUID) ([]Keyboard, error)
func (*PartsModel) GetKeyboards ¶
func (m *PartsModel) GetKeyboards() ([]Keyboard, error)
func (*PartsModel) GetKeycapMaterials ¶
func (m *PartsModel) GetKeycapMaterials() ([]KeycapMaterial, error)
func (*PartsModel) GetPlateMaterials ¶
func (m *PartsModel) GetPlateMaterials() ([]PlateMaterial, error)
func (*PartsModel) GetPlateOpts ¶
func (m *PartsModel) GetPlateOpts(correctPlate uuid.UUID) ([]PlateMaterial, error)
func (*PartsModel) GetSwitchOpts ¶
func (m *PartsModel) GetSwitchOpts(correctSwitch uuid.UUID) ([]Keyswitch, error)
func (*PartsModel) GetSwitches ¶
func (m *PartsModel) GetSwitches() ([]Keyswitch, error)
type PlateMaterial ¶
type ProfileInfo ¶
type SoundTestModel ¶
func (*SoundTestModel) AddPlay ¶
func (m *SoundTestModel) AddPlay(soundtest uuid.UUID, userID, keyboard, plateMaterial, keycapMaterial, keyswitch string) error
func (*SoundTestModel) GetDaily ¶
func (m *SoundTestModel) GetDaily() (SoundTest, error)
func (*SoundTestModel) GetLatest ¶
func (m *SoundTestModel) GetLatest(page int, perPage int, userID string) ([]SoundTestVote, error)
func (*SoundTestModel) GetPlay ¶
func (m *SoundTestModel) GetPlay(userID string) (SoundTestPlay, error)
func (*SoundTestModel) Insert ¶
func (m *SoundTestModel) Insert(fileURL, keyboard, plateMaterial, keycapMaterial, keyswitch, userID string) error
type SoundTestPlay ¶
type SoundTestVote ¶
type UserModel ¶
func (*UserModel) Authenticate ¶
func (*UserModel) GetProfileInfo ¶
func (m *UserModel) GetProfileInfo(userID string) (ProfileInfo, error)
func (*UserModel) UpdateProfile ¶
Click to show internal directories.
Click to hide internal directories.