Versions in this module Expand all Collapse all v0 v0.2.0 Sep 25, 2020 Changes in this version + var ErrLinkNotExist = errors.New(...) + func Get(ctx context.Context, key string, redisClient *redis.Client, ...) (longurl string, err error) + func Insert(ctx context.Context, rawurl, domain string, redisClient *redis.Client, ...) (string, error) + type Server struct + func NewServer(cfg *config.Config, scfg ServerConfig) *Server + func (s *Server) Install() http.Handler + type ServerConfig struct + BloomFilter *bloomfilter.BloomFilter + RedisClient *redis.Client + StaticPath string + type Shorten struct + CreateAt int64 + Key string + Link string + LongURL string