Documentation
¶
Index ¶
- type Client
- func (c *Client) CodeAlreadyExists(code string) (bool, error)
- func (c *Client) CreateScrap(ss scrapmon.Scrap) (int, error)
- func (c *Client) GetLatestCreatedScrapCode() (*string, error)
- func (c *Client) GetScrapByCode(code string) (*scrapmon.Scrap, error)
- func (c *Client) Purge() error
- func (c *Client) UpdateScrapByCode(ss scrapmon.Scrap) error
- func (c *Client) UpdateScrapStatusByCode(code string, status scrapmon.ScrapStatus) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents the postgres client.
func (*Client) CodeAlreadyExists ¶
CodeAlreadyExists searches for the existence of an entry.
func (*Client) CreateScrap ¶
CreateScrap saves a Scrap's info in the database.
func (*Client) GetLatestCreatedScrapCode ¶
func (*Client) GetScrapByCode ¶
GetScrapByCode Gets a scrapped Scrap from the database
func (*Client) UpdateScrapStatusByCode ¶
func (c *Client) UpdateScrapStatusByCode(code string, status scrapmon.ScrapStatus) error
Click to show internal directories.
Click to hide internal directories.