demo

package
v0.0.0-...-026689c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG = false

	SPLIT = rune('-')
)
View Source
var RedisClient *redis.Pool
View Source
var RedisConf = map[string]string{
	"name":    "redis",
	"type":    "tcp",
	"address": "192.168.1.200",
	"auth":    "123456",
}

Functions

func Add

func Add(response http.ResponseWriter, request *http.Request)

func BatchAdd

func BatchAdd(response http.ResponseWriter, request *http.Request)

func BatchEmailPrefix

func BatchEmailPrefix(response http.ResponseWriter, request *http.Request)

func BatchExists

func BatchExists(response http.ResponseWriter, request *http.Request)

func Buckets

func Buckets(response http.ResponseWriter, request *http.Request)

func Clear

func Clear(response http.ResponseWriter, request *http.Request)

func Dump

func Dump()

func DumpEmailSimple

func DumpEmailSimple(mysql MysqlServer, start string, end string, finished int) (string, int)

func EmailTest

func EmailTest()

func ExampleClient

func ExampleClient()

func Exists

func Exists(response http.ResponseWriter, request *http.Request)

func GetEmailCount

func GetEmailCount(mysql MysqlServer, finished int, countryId int, gender int, start int64, end int64) (int, int)

func GetEmailEffectiveRankList

func GetEmailEffectiveRankList(username string) []string

func GetEmailName

func GetEmailName(username string, returnPart bool) []string

func Index

func Index(response http.ResponseWriter, request *http.Request)

func KeyCount

func KeyCount(response http.ResponseWriter, request *http.Request)

func Load

func Load(response http.ResponseWriter, request *http.Request)

func Main

func Main()

func Memory

func Memory(response http.ResponseWriter, request *http.Request)

func OssEmailEndPrefix

func OssEmailEndPrefix() map[string]int

func ReadCsv

func ReadCsv(filename string) [][]string

func Save

func Save(response http.ResponseWriter, request *http.Request)

func SetConfig

func SetConfig(response http.ResponseWriter, request *http.Request)

func StringSum

func StringSum(username string) uint64

func Write

func Write(fileName string, data [][]string)

func WriteCsv

func WriteCsv(fileName string, data [][]string, addBom bool)

Types

type BloomServer

type BloomServer struct {
	// contains filtered or unexported fields
}

type CheckData

type CheckData struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Email

type Email struct {
	// contains filtered or unexported fields
}

type EmailData

type EmailData struct {
	// contains filtered or unexported fields
}

type EmailPrefix

type EmailPrefix struct {
	// contains filtered or unexported fields
}

type MysqlServer

type MysqlServer struct {
	// contains filtered or unexported fields
}

type Pair

type Pair struct {
	Key   string
	Value int
}

A data structure to hold a key/value pair.

type PairList

type PairList []Pair

A slice of Pairs that implements sort.Interface to sort by Value.

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

type Result

type Result struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type UserName

type UserName struct {
	// contains filtered or unexported fields
}

type Zip

type Zip struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL