@@ -57,7 +57,7 @@ var _ json.Marshaler = (*RawMessage)(nil)
57
57
var _ json.Unmarshaler = (* RawMessage )(nil )
58
58
59
59
// UnmarshalJSONObject implements gojay's UnmarshalerJSONObject
60
- func (v * request ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
60
+ func (v * wireRequest ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
61
61
switch k {
62
62
case keyJSONRPC :
63
63
return dec .String (& v .JSONRPC )
@@ -76,21 +76,21 @@ func (v *request) UnmarshalJSONObject(dec *gojay.Decoder, k string) error {
76
76
}
77
77
78
78
// NKeys returns the number of keys to unmarshal
79
- func (v * request ) NKeys () int { return 4 }
79
+ func (v * wireRequest ) NKeys () int { return 4 }
80
80
81
81
// MarshalJSONObject implements gojay's MarshalerJSONObject
82
- func (v * request ) MarshalJSONObject (enc * gojay.Encoder ) {
82
+ func (v * wireRequest ) MarshalJSONObject (enc * gojay.Encoder ) {
83
83
enc .StringKey (keyJSONRPC , v .JSONRPC )
84
84
enc .StringKey (keyID , v .ID .String ())
85
85
enc .StringKey (keyMethod , v .Method )
86
86
enc .AddEmbeddedJSONKeyOmitEmpty (keyParams , (* gojay .EmbeddedJSON )(v .Params ))
87
87
}
88
88
89
89
// IsNil returns wether the structure is nil value or not
90
- func (v * request ) IsNil () bool { return v == nil }
90
+ func (v * wireRequest ) IsNil () bool { return v == nil }
91
91
92
92
// UnmarshalJSONObject implements gojay's UnmarshalerJSONObject
93
- func (v * Response ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
93
+ func (v * wireResponse ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
94
94
switch k {
95
95
case keyJSONRPC :
96
96
return dec .String (& v .JSONRPC )
@@ -112,18 +112,18 @@ func (v *Response) UnmarshalJSONObject(dec *gojay.Decoder, k string) error {
112
112
}
113
113
114
114
// NKeys returns the number of keys to unmarshal
115
- func (v * Response ) NKeys () int { return 4 }
115
+ func (v * wireResponse ) NKeys () int { return 4 }
116
116
117
117
// MarshalJSONObject implements gojay's MarshalerJSONObject
118
- func (v * Response ) MarshalJSONObject (enc * gojay.Encoder ) {
118
+ func (v * wireResponse ) MarshalJSONObject (enc * gojay.Encoder ) {
119
119
enc .StringKey (keyJSONRPC , v .JSONRPC )
120
120
enc .StringKey (keyID , v .ID .String ())
121
121
enc .ObjectKeyOmitEmpty (keyError , v .Error )
122
122
enc .AddEmbeddedJSONKeyOmitEmpty (keyResult , (* gojay .EmbeddedJSON )(v .Result ))
123
123
}
124
124
125
125
// IsNil returns wether the structure is nil value or not
126
- func (v * Response ) IsNil () bool { return v == nil }
126
+ func (v * wireResponse ) IsNil () bool { return v == nil }
127
127
128
128
// UnmarshalJSONObject implements gojay's UnmarshalerJSONObject
129
129
func (v * Combined ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
0 commit comments