dropidmodel

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropIDModel

type DropIDModel struct {
	DB *domain.DB
	// contains filtered or unexported fields
}

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) Delete

func (m *DropIDModel) Delete(userID domain.UserID, handle string, dom string) error

Delete the drop id.

func (*DropIDModel) Get

func (m *DropIDModel) Get(handle string, dom string) (domain.DropID, error)

Get returns the DropID if found. It returns sql.ErrNoRows error if not found.

func (*DropIDModel) GetForUser

func (m *DropIDModel) GetForUser(userID domain.UserID) ([]domain.DropID, error)

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

func (*DropIDModel) Update

func (m *DropIDModel) Update(userID domain.UserID, handle string, dom string, displayName string) (domain.DropID, error)

Update a DropID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL