Documentation
¶
Index ¶
- Constants
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Execute(command string) (string, bool)
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Generate() uuid.UUID
- func GetIP() []string
- func GetTimeStamp()
- func HTTPGet(url string) string
- func HTTPGetBinary(url string) ([]byte, error)
- func HTTPGetBinaryToFile(url string, path string) (string, bool)
- func HTTPGetWithHeaders(url string, headers map[string]string) string
- func HTTPPost(url string, data []byte)
- func HTTPPostWithHeader(url string, data []byte, headers map[string]string) []byte
- func HttpPut(url string, data []byte) (string, error)
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Marshal(obj interface{}) []byte
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func PrintCPU()
- func PrintIP()
- func ReadFile(filePath string, queue chan<- string)
- func Run(name string, arg ...string) string
- func RunWithStdin(name string, arg ...string) string
- func SignalWatch()
- func SliceContains(slice []string, substr string) bool
- func StartUDPServer(port int, output chan string)
- func ToBeautifyJson(obj interface{}) string
- func ToJson(obj interface{}) string
- func Unmarshal(txt string, obj interface{})
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func WriteFile(filePath string, outQ <-chan []string)
- type KafkaProducer
- type MyRedis
- type RateLimitParam
- type Response
Constants ¶
View Source
const (
SERVER_RECV_LEN = 65000
)
udp config
Variables ¶
This section is empty.
Functions ¶
func HTTPGetBinaryToFile ¶
HTTPGetBinaryToFile :
func HTTPGetWithHeaders ¶
HTTPGetWithHeaders :
func HTTPPostWithHeader ¶
HTTPPostWithHeader :
func RunWithStdin ¶
RunWithStdin : Execute Commands
func SliceContains ¶
SliceContains : slice contains substr
func ToBeautifyJson ¶
func ToBeautifyJson(obj interface{}) string
Types ¶
type KafkaProducer ¶
type KafkaProducer struct { SyncProducer sarama.SyncProducer Brokers []string }
KafkaProducer : Kafka Producer
func (*KafkaProducer) Close ¶
func (prod *KafkaProducer) Close() error
func (*KafkaProducer) New ¶
func (prod *KafkaProducer) New() sarama.SyncProducer
func (*KafkaProducer) Send ¶
func (prod *KafkaProducer) Send(topic string, message string)
type RateLimitParam ¶
Click to show internal directories.
Click to hide internal directories.