generate

package
v0.0.0-...-5faa250 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(cfg Config)

Gen 生成客户端数据

Types

type Config

type Config struct {
	ClientNum      int    // 客户端数量
	RelationsLimit int    // 客户端所拥有的关系数量限制
	Weight         int    // 为每个客户端分配权重值的最大范围
	Level          int    // 为每个客户端建立关系时所采用的层级
	MongoURL       string // MongoDB连接字符串
}

Config 配置信息

type Generate

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

Generate 生成客户端关系

func (*Generate) InitClientData

func (g *Generate) InitClientData()

func (*Generate) Store

func (g *Generate) Store() error

Jump to

Keyboard shortcuts

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