Directories
¶
Path | Synopsis |
---|---|
Package api define the API of the tiny URL service.
|
Package api define the API of the tiny URL service. |
app
|
|
turl
Package turl implements the business logic of the tiny URL service.
|
Package turl implements the business logic of the tiny URL service. |
turl/model
Package model implements the data model of the tiny URL service.
|
Package model implements the data model of the tiny URL service. |
Package cli provides CLI app
|
Package cli provides CLI app |
cmd
|
|
turl
Package main provides the entry of turl.
|
Package main provides the entry of turl. |
Package configs provides the config management log_config.go provides config management
|
Package configs provides the config management log_config.go provides config management |
internal
|
|
pkg
|
|
cache
Package cache provides the cache management interface define
|
Package cache provides the cache management interface define |
db/mysql
Package mysql provides MySQL connections
|
Package mysql provides MySQL connections |
db/redis
Package redis provides a redis client
|
Package redis provides a redis client |
log
Package log provides logging functions
|
Package log provides logging functions |
mapping
Package mapping provides URL shortening functions base58.go provides functions to encode and decode numbers to base58
|
Package mapping provides URL shortening functions base58.go provides functions to encode and decode numbers to base58 |
middleware
Package middleware provides a set of middleware for the Gin framework.
|
Package middleware provides a set of middleware for the Gin framework. |
shutdown
Package shutdown provides a graceful shutdown mechanism.
|
Package shutdown provides a graceful shutdown mechanism. |
storage
Package storage provides the implementation of the storage interface.
|
Package storage provides the implementation of the storage interface. |
tddl
Package tddl provides the tddl sequence number generator
|
Package tddl provides the tddl sequence number generator |
validate
Package validate warp the validator package, and provides a singleton instance of validator.
|
Package validate warp the validator package, and provides a singleton instance of validator. |
workqueue
Package workqueue provides a simple queue that used to rate limit or retry processing of requests.
|
Package workqueue provides a simple queue that used to rate limit or retry processing of requests. |
Click to show internal directories.
Click to hide internal directories.