Documentation ¶
Index ¶
- type SQLite
- func (db *SQLite) AddUrl(ctx context.Context, url string, short string) (*domain.ShortenURLResponse, error)
- func (db *SQLite) Close()
- func (db *SQLite) CreateUser(ctx context.Context, user, pass, key string) error
- func (db *SQLite) GetAPIKey(ctx context.Context, name, hashedPass string) (string, error)
- func (db *SQLite) GetHashedPassword(ctx context.Context, name string) (string, error)
- func (db *SQLite) GetLongUrl(ctx context.Context, url string) (*domain.ShortURLResponse, error)
- func (db *SQLite) ValidateAPIKey(ctx context.Context, key string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
func (*SQLite) CreateUser ¶
func (*SQLite) GetHashedPassword ¶
func (*SQLite) GetLongUrl ¶
Click to show internal directories.
Click to hide internal directories.