Documentation ¶
Index ¶
- type CassandraShortUrlRepository
- func (r *CassandraShortUrlRepository) CreateShortUrl(_ context.Context, sURL *shorturl.ShortUrl) error
- func (r *CassandraShortUrlRepository) DeleteShortUrl(_ context.Context, shortUrlId string) error
- func (r *CassandraShortUrlRepository) GetShortUrl(_ context.Context, shortUrlId string) (*shorturl.ShortUrl, error)
- type KeyGrpc
- type RedisCacheShortUrlRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CassandraShortUrlRepository ¶
type CassandraShortUrlRepository struct {
// contains filtered or unexported fields
}
func NewCassandraShortUrlRepository ¶
func NewCassandraShortUrlRepository(session *gocqlx.Session) *CassandraShortUrlRepository
func (*CassandraShortUrlRepository) CreateShortUrl ¶
func (*CassandraShortUrlRepository) DeleteShortUrl ¶
func (r *CassandraShortUrlRepository) DeleteShortUrl(_ context.Context, shortUrlId string) error
func (*CassandraShortUrlRepository) GetShortUrl ¶
type KeyGrpc ¶
type KeyGrpc struct {
// contains filtered or unexported fields
}
func NewKeyGrpc ¶
func NewKeyGrpc(client kgs_grpc.KeyServiceClient) KeyGrpc
type RedisCacheShortUrlRepository ¶
type RedisCacheShortUrlRepository struct {
// contains filtered or unexported fields
}
func NewRedisCacheShortUrlRepository ¶
func NewRedisCacheShortUrlRepository(client redis.UniversalClient) *RedisCacheShortUrlRepository
func (*RedisCacheShortUrlRepository) AddShortUrlCache ¶
func (*RedisCacheShortUrlRepository) GetShortUrlCache ¶
Click to show internal directories.
Click to hide internal directories.