Documentation ¶
Index ¶
Constants ¶
View Source
const ( PackageLess = iota PackageFull PackageError )
Variables ¶
This section is empty.
Functions ¶
func SetMaxPackageLength ¶
func SetMaxPackageLength(len int)
SetMaxPackageLength sets the max length of tars packet
func TarsRequest ¶
Types ¶
type TarsProtocol ¶
type TarsProtocol struct{}
func (*TarsProtocol) ParsePackage ¶
func (p *TarsProtocol) ParsePackage(rev []byte) (int, int)
func (*TarsProtocol) RequestPack ¶
func (p *TarsProtocol) RequestPack(req *requestf.RequestPacket) ([]byte, error)
func (*TarsProtocol) ResponseUnpack ¶
func (p *TarsProtocol) ResponseUnpack(pkg []byte) (*requestf.ResponsePacket, error)
Directories ¶
Path | Synopsis |
---|---|
res
|
|
adminf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
authf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
basef
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
configf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
endpointf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
logf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
nodef
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
notifyf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
propertyf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
queryf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
requestf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
statf
Code generated by tars2go 1.2.3, DO NOT EDIT.
|
Code generated by tars2go 1.2.3, DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.