Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigDir = "_config" ResourceDir = "resource" )
View Source
const ( // server conf PendingWriteNum = 2000 MaxMsgLen = 1 * 1024 * 1024 // 最大长度为1M HTTPTimeout = 5 * time.Second LenMsgLen = 4 MaxConnNum = 20000 // skeleton conf GoLen = 10000 TimerDispatcherLen = 10000 AsyncCallLen = 10000 ChanRPCLen = 10000 )
Variables ¶
View Source
var (
ProtoProcessor = protobuf.NewProcessor()
)
Functions ¶
func FindPathFrom ¶
可以在执行go run的时候直接把当前目录当参数传进来,然后在此基础上查找
func NewSkeleton ¶
Types ¶
type TextDuration ¶
func (*TextDuration) UnmarshalText ¶
func (d *TextDuration) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.