Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpProtocol = []byte("http://") HttpsProtocol = []byte("https://") )
Functions ¶
func AppendQueryString ¶
AppendQueryString appends queryString to dst.
func AppendZeroPaddingUint ¶
AppendZeroPaddingUint appends n with zero padding that size of p to dst and returns the extended dst.
func IsHttpOrHttps ¶
func IsHttpStatusRedirect ¶
func SplitRequestURI ¶
SplitRequestURI splits path and query string.
Types ¶
type Cache ¶
Cache is an interface that defines accessor of the cache.
func NewExpireCache ¶
NewExpireCache returns a new cache with the specified expire (ms) and default interval 1 min.
func NewExpireCacheInterval ¶
NewExpireCacheInterval returns a new cache with the specified expire (ms) and interval (ms).
Click to show internal directories.
Click to hide internal directories.