Documentation
¶
Index ¶
- type DropIDModel
- func (m *DropIDModel) Create(userID domain.UserID, handle string, dom string, displayName string) (domain.DropID, error)
- func (m *DropIDModel) Delete(userID domain.UserID, handle string, dom string) error
- func (m *DropIDModel) Get(handle string, dom string) (domain.DropID, error)
- func (m *DropIDModel) GetForUser(userID domain.UserID) ([]domain.DropID, error)
- func (m *DropIDModel) PrepareStatements()
- func (m *DropIDModel) Update(userID domain.UserID, handle string, dom string, displayName string) (domain.DropID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DropIDModel ¶
DropIDModel stores the user's DropIDs
func (*DropIDModel) Create ¶
func (m *DropIDModel) Create(userID domain.UserID, handle string, dom string, displayName string) (domain.DropID, error)
Create a DropID
func (*DropIDModel) Get ¶
Get returns the DropID if found. It returns sql.ErrNoRows error if not found.
func (*DropIDModel) GetForUser ¶
GetForUser returns a user's dropIDs Empty array is returned if none are found
func (*DropIDModel) PrepareStatements ¶
func (m *DropIDModel) PrepareStatements()
PrepareStatements for appspace model
Click to show internal directories.
Click to hide internal directories.