Documentation ¶
Index ¶
- Variables
- type Alert
- type LocalWorker
- type PostgresDB
- func (p *PostgresDB) GetAlerts(ctx context.Context, urlName string, username string) ([]model.Alert, error)
- func (p *PostgresDB) GetUrlStats(ctx context.Context, urlName string, username string) ([]model.Call, error)
- func (p *PostgresDB) GetUrlsToCall() ([]model.Url, error)
- func (p *PostgresDB) GetUserUrls(ctx context.Context, username string) ([]model.Url, error)
- func (p *PostgresDB) LoadByUserPass(ctx context.Context, username string, password string) (*model.User, error)
- func (p *PostgresDB) SaveAlert(time int64, urlId uint) error
- func (p *PostgresDB) SaveCallResults(callResults []model.CallUrlResult) error
- func (p *PostgresDB) SaveUrl(ctx context.Context, req *request.Url, username string) (*model.Url, error)
- func (p *PostgresDB) SaveUser(ctx context.Context, req *request.User) (*model.User, error)
- type Url
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LocalWorker ¶
type PostgresDB ¶
type PostgresDB struct {
// contains filtered or unexported fields
}
func NewPostgresDBStorage ¶
func NewPostgresDBStorage(db *gorm.DB) *PostgresDB
func (*PostgresDB) GetUrlStats ¶
func (*PostgresDB) GetUrlsToCall ¶
func (p *PostgresDB) GetUrlsToCall() ([]model.Url, error)
func (*PostgresDB) GetUserUrls ¶
func (*PostgresDB) LoadByUserPass ¶
func (*PostgresDB) SaveCallResults ¶
func (p *PostgresDB) SaveCallResults(callResults []model.CallUrlResult) error
Click to show internal directories.
Click to hide internal directories.