Skip to content

Commit bfab4ee

Browse files
committed
Update hprose.go
1 parent 5588c3c commit bfab4ee

File tree

1 file changed

+50
-34
lines changed

1 file changed

+50
-34
lines changed

hprose.go

Lines changed: 50 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| |
77
| hprose.go |
88
| |
9-
| LastModified: Mar 6, 2022 |
9+
| LastModified: Mar 7, 2022 |
1010
| Author: Ma Bingyao <[email protected]> |
1111
| |
1212
\*________________________________________________________*/
@@ -99,43 +99,54 @@ type (
9999

100100
const (
101101
// Serialize Type.
102-
TagInteger byte = io.TagInteger
103-
TagLong byte = io.TagLong
104-
TagDouble byte = io.TagDouble
105-
TagNull byte = io.TagNull
106-
TagEmpty byte = io.TagEmpty
107-
TagTrue byte = io.TagTrue
108-
TagFalse byte = io.TagFalse
109-
TagNaN byte = io.TagNaN
110-
TagInfinity byte = io.TagInfinity
111-
TagDate byte = io.TagDate
112-
TagTime byte = io.TagTime
113-
TagUTC byte = io.TagUTC
114-
TagBytes byte = io.TagBytes
115-
TagUTF8Char byte = io.TagUTF8Char
116-
TagString byte = io.TagString
117-
TagGUID byte = io.TagGUID
118-
TagList byte = io.TagList
119-
TagMap byte = io.TagMap
120-
TagClass byte = io.TagClass
121-
TagObject byte = io.TagObject
122-
TagRef byte = io.TagRef
102+
TagInteger = io.TagInteger
103+
TagLong = io.TagLong
104+
TagDouble = io.TagDouble
105+
TagNull = io.TagNull
106+
TagEmpty = io.TagEmpty
107+
TagTrue = io.TagTrue
108+
TagFalse = io.TagFalse
109+
TagNaN = io.TagNaN
110+
TagInfinity = io.TagInfinity
111+
TagDate = io.TagDate
112+
TagTime = io.TagTime
113+
TagUTC = io.TagUTC
114+
TagBytes = io.TagBytes
115+
TagUTF8Char = io.TagUTF8Char
116+
TagString = io.TagString
117+
TagGUID = io.TagGUID
118+
TagList = io.TagList
119+
TagMap = io.TagMap
120+
TagClass = io.TagClass
121+
TagObject = io.TagObject
122+
TagRef = io.TagRef
123123

124124
// Serialize Marks.
125-
TagPos byte = io.TagPos
126-
TagNeg byte = io.TagNeg
127-
TagSemicolon byte = io.TagSemicolon
128-
TagOpenbrace byte = io.TagOpenbrace
129-
TagClosebrace byte = io.TagClosebrace
130-
TagQuote byte = io.TagQuote
131-
TagPoint byte = io.TagPoint
125+
TagPos = io.TagPos
126+
TagNeg = io.TagNeg
127+
TagSemicolon = io.TagSemicolon
128+
TagOpenbrace = io.TagOpenbrace
129+
TagClosebrace = io.TagClosebrace
130+
TagQuote = io.TagQuote
131+
TagPoint = io.TagPoint
132132

133133
// Protocol Tags.
134-
TagHeader byte = io.TagHeader
135-
TagCall byte = io.TagCall
136-
TagResult byte = io.TagResult
137-
TagError byte = io.TagError
138-
TagEnd byte = io.TagEnd
134+
TagHeader = io.TagHeader
135+
TagCall = io.TagCall
136+
TagResult = io.TagResult
137+
TagError = io.TagError
138+
TagEnd = io.TagEnd
139+
140+
LongTypeInt = io.LongTypeInt
141+
LongTypeUint = io.LongTypeUint
142+
LongTypeInt64 = io.LongTypeInt64
143+
LongTypeUint64 = io.LongTypeUint64
144+
LongTypeBigInt = io.LongTypeBigInt
145+
RealTypeFloat64 = io.RealTypeFloat64
146+
RealTypeFloat32 = io.RealTypeFloat32
147+
RealTypeBigFloat = io.RealTypeBigFloat
148+
MapTypeIIMap = io.MapTypeIIMap
149+
MapTypeSIMap = io.MapTypeSIMap
139150

140151
NoCookieManager = cookie.NoCookieManager
141152
GlobalCookieManager = cookie.GlobalCookieManager
@@ -159,6 +170,10 @@ var (
159170
NewEncoder = io.NewEncoder
160171
GetValueDecoder = io.GetValueDecoder
161172
GetValueEncoder = io.GetValueEncoder
173+
GetEncoder = io.GetEncoder
174+
FreeEncoder = io.FreeEncoder
175+
GetDecoder = io.GetDecoder
176+
FreeDecoder = io.FreeDecoder
162177

163178
ErrClosed = rpc.ErrClosed
164179
ErrRequestEntityTooLarge = rpc.ErrRequestEntityTooLarge
@@ -187,6 +202,7 @@ var (
187202
NewClient = rpc.NewClient
188203
NewService = rpc.NewService
189204
HTTPTransport = rpc.HTTPTransport
205+
FastHTTPTransport = rpc.FastHTTPTransport
190206
SocketTransport = rpc.SocketTransport
191207
UDPTransport = rpc.UDPTransport
192208
WebSocketTransport = rpc.WebSocketTransport

0 commit comments

Comments
 (0)