Documentation ¶
Index ¶
- type OtpModel
- type ScrapModel
- func (m *ScrapModel) Authenticate(email, password string) (int, error)
- func (m *ScrapModel) Decrement(id, count int) (int, error)
- func (m *ScrapModel) Get(id int) (*models.Scrap, error)
- func (m *ScrapModel) GetID(socID string) (*models.Scrap, error)
- func (m *ScrapModel) GetKey(id string) (*models.Scrap, error)
- func (m *ScrapModel) Insert(socID, email, password, guid string, count int, expires string) (int, error)
- func (m *ScrapModel) Latest() ([]*models.Scrap, error)
- type ScrapRequestModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrapModel ¶
func (*ScrapModel) Authenticate ¶
func (m *ScrapModel) Authenticate(email, password string) (int, error)
func (*ScrapModel) Get ¶
func (m *ScrapModel) Get(id int) (*models.Scrap, error)
This will return a specific snippet based on its id.
type ScrapRequestModel ¶
func (*ScrapRequestModel) GetData ¶
func (m *ScrapRequestModel) GetData(guid string) (*models.ScrapRequest, error)
Click to show internal directories.
Click to hide internal directories.