Documentation ¶
Index ¶
- func CheckIdProcessed(conn redis.Conn, hash_key string, key string) (string, error)
- func FilePutContent(outfile string, content string) error
- func GetCtx(file string) (*sj.Json, error)
- func GetHourStrFromId(id string) (string, error)
- func GetSubStr(str, pre, post string) string
- func GzCompress(raw string) string
- func NewPool(server string, password string, idle int, timeoutSec int) *redis.Pool
- func ReadFile(path string) (string, error)
- func SetIdProcessed(conn redis.Conn, hash_key string, key string, val string) (int, error)
- func WriteFile(path string, content string) error
- func ZlibCompress(raw string) string
- func ZlibDeCompress(line []byte) (string, error)
- type RedisPoolManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIdProcessed ¶
func FilePutContent ¶
func GetHourStrFromId ¶
get 2016-02-26-12 from http://hostname:80/access/info.2016-02-26-12-05.gz
func GzCompress ¶
func SetIdProcessed ¶
func ZlibCompress ¶
func ZlibDeCompress ¶
Types ¶
type RedisPoolManager ¶
type RedisPoolManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.