Documentation
¶
Index ¶
- type ShortyStorage
- func (s *ShortyStorage) CreateShorty(ctx context.Context, sh *models.Shorty) error
- func (s *ShortyStorage) CreateVisit(ctx context.Context, visit *models.Visit) error
- func (s *ShortyStorage) GetShorty(ctx context.Context, id string) (*models.Shorty, error)
- func (s *ShortyStorage) GetVisits(ctx context.Context, shortyID string) ([]models.Visit, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortyStorage ¶
type ShortyStorage struct {
// contains filtered or unexported fields
}
func NewShortyStorage ¶
func NewShortyStorage(db *sqlx.DB) *ShortyStorage
func (*ShortyStorage) CreateShorty ¶
func (*ShortyStorage) CreateVisit ¶
Click to show internal directories.
Click to hide internal directories.