Documentation ¶
Overview ¶
Code generated by go generate. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkModel ¶
type LinkModel struct { LinkID string `model:"linkid,VARCHAR(63) PRIMARY KEY" query:"linkid"` URL string `model:"url,VARCHAR(2047) NOT NULL" query:"url"` CreatorID string `model:"creatorid,VARCHAR(31) NOT NULL" query:"creatorid"` CreationTime int64 `model:"creation_time,BIGINT NOT NULL" query:"creation_time,getgroup"` }
LinkModel is the db link model
type Repo ¶
type Repo interface { NewLink(linkid, url, creatorid string) (*LinkModel, *governor.Error) NewLinkAuto(url, creatorid string) (*LinkModel, *governor.Error) NewLinkEmpty() LinkModel NewLinkEmptyPtr() *LinkModel GetLinkGroup(limit, offset int, creatorid string) ([]LinkModel, *governor.Error) GetLink(linkid string) (*LinkModel, *governor.Error) InsertLink(m *LinkModel) *governor.Error DeleteLink(m *LinkModel) *governor.Error Setup() *governor.Error }
Repo is a courier repository
Click to show internal directories.
Click to hide internal directories.