katyushalib

package
v0.0.0-...-d7d5d61 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCoroutinesCnt int = 1000

Variables

This section is empty.

Functions

func LogRuntimeiInfo

func LogRuntimeiInfo(info RuntimeInfo, usedCores int, appVersion string)

func PrettyPrint

func PrettyPrint(data interface{})

Types

type KConfig

type KConfig struct {
	// main app config
	DstHost       string `json:"dst_host"`
	DstPort       int    `json:"dst_port"`
	CoroutinesCnt int    `json:"coroutines_cnt"`
	MaxProcs      int    `json:"max_procs"`
}

func ComposeCfg

func ComposeCfg(cfg_path string) KConfig

func (*KConfig) Fulfil

func (cfg *KConfig) Fulfil()

type RuntimeInfo

type RuntimeInfo struct {
	Uname          string
	GolangVer      string
	AvailableCores int
}

func CollectRuntimeInfo

func CollectRuntimeInfo() RuntimeInfo

func (*RuntimeInfo) String

func (info *RuntimeInfo) String() string

Jump to

Keyboard shortcuts

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