Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedisClient ¶
type MockRedisClient struct{}
MockRedisClient represents a mock Redis client for testing
func NewMockRedisClient ¶
func NewMockRedisClient() *MockRedisClient
func (*MockRedisClient) RedirectToURL ¶
func (*MockRedisClient) ShortenURL ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
RedisClient represents a Redis client connection
func NewRedisClient ¶
func NewRedisClient() *RedisClient
NewRedisClient creates a new instance of RedisClient
func (*RedisClient) RedirectToURL ¶
RedirectToURL retrieves the original URL from the short URL in Redis
func (*RedisClient) ShortenURL ¶
ShortenURL generates a short URL and stores it in Redis
Click to show internal directories.
Click to hide internal directories.