publish

package
v0.0.0-...-49409b7 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pub

func Pub(cfg *Config)

Pub 执行Publish操作

Types

type Config

type Config struct {
	ExecNum         int // 执行次数
	Interval        int // 发布间隔
	UserInterval    int // 好友发包间隔(单位毫秒)
	DisconnectScale int // 发送完成之后,断开客户端的比例
	Network         string
	Address         string
	Auth            string
	AutoReconnect   bool // 自动重连
	CleanSession    bool
	KeepAlive       int
	ClientCnt       int
	StartCode       int
}

Config 配置

Jump to

Keyboard shortcuts

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