2017-05-06 01:20:24 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
package network
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
cdp "github.com/knq/chromedp/cdp"
|
|
|
|
runtime "github.com/knq/chromedp/cdp/runtime"
|
|
|
|
security "github.com/knq/chromedp/cdp/security"
|
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out *WebSocketResponse) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "status":
|
|
|
|
out.Status = float64(in.Float64())
|
|
|
|
case "statusText":
|
|
|
|
out.StatusText = string(in.String())
|
|
|
|
case "headers":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v1 interface{}
|
|
|
|
if m, ok := v1.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v1.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v1 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v1
|
|
|
|
in.WantComma()
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
case "headersText":
|
|
|
|
out.HeadersText = string(in.String())
|
|
|
|
case "requestHeaders":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.RequestHeaders = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.RequestHeaders = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v2 interface{}
|
|
|
|
if m, ok := v2.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v2.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v2 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.RequestHeaders)[key] = v2
|
|
|
|
in.WantComma()
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
case "requestHeadersText":
|
|
|
|
out.RequestHeadersText = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(out *jwriter.Writer, in WebSocketResponse) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"status\":")
|
|
|
|
out.Float64(float64(in.Status))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"statusText\":")
|
|
|
|
out.String(string(in.StatusText))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
|
|
|
v3First := true
|
|
|
|
for v3Name, v3Value := range in.Headers {
|
|
|
|
if !v3First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v3First = false
|
|
|
|
out.String(string(v3Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v3Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v3Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v3Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.HeadersText != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"headersText\":")
|
|
|
|
out.String(string(in.HeadersText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.RequestHeaders) != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"requestHeaders\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.RequestHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
v4First := true
|
|
|
|
for v4Name, v4Value := range in.RequestHeaders {
|
|
|
|
if !v4First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v4First = false
|
|
|
|
out.String(string(v4Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v4Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v4Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v4Value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.RequestHeadersText != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"requestHeadersText\":")
|
|
|
|
out.String(string(in.RequestHeadersText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketResponse) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketResponse) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out *WebSocketRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "headers":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v5 interface{}
|
|
|
|
if m, ok := v5.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v5.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v5 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v5
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(out *jwriter.Writer, in WebSocketRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
|
|
|
v6First := true
|
|
|
|
for v6Name, v6Value := range in.Headers {
|
|
|
|
if !v6First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v6First = false
|
|
|
|
out.String(string(v6Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v6Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v6Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v6Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketRequest) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketRequest) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out *WebSocketFrame) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "opcode":
|
|
|
|
out.Opcode = float64(in.Float64())
|
|
|
|
case "mask":
|
|
|
|
out.Mask = bool(in.Bool())
|
|
|
|
case "payloadData":
|
|
|
|
out.PayloadData = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(out *jwriter.Writer, in WebSocketFrame) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"opcode\":")
|
|
|
|
out.Float64(float64(in.Opcode))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"mask\":")
|
|
|
|
out.Bool(bool(in.Mask))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"payloadData\":")
|
|
|
|
out.String(string(in.PayloadData))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketFrame) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketFrame) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out *SignedCertificateTimestamp) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "status":
|
|
|
|
out.Status = string(in.String())
|
|
|
|
case "origin":
|
|
|
|
out.Origin = string(in.String())
|
|
|
|
case "logDescription":
|
|
|
|
out.LogDescription = string(in.String())
|
|
|
|
case "logId":
|
|
|
|
out.LogID = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "hashAlgorithm":
|
|
|
|
out.HashAlgorithm = string(in.String())
|
|
|
|
case "signatureAlgorithm":
|
|
|
|
out.SignatureAlgorithm = string(in.String())
|
|
|
|
case "signatureData":
|
|
|
|
out.SignatureData = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(out *jwriter.Writer, in SignedCertificateTimestamp) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"status\":")
|
|
|
|
out.String(string(in.Status))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
out.String(string(in.Origin))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"logDescription\":")
|
|
|
|
out.String(string(in.LogDescription))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"logId\":")
|
|
|
|
out.String(string(in.LogID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"hashAlgorithm\":")
|
|
|
|
out.String(string(in.HashAlgorithm))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"signatureAlgorithm\":")
|
|
|
|
out.String(string(in.SignatureAlgorithm))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"signatureData\":")
|
|
|
|
out.String(string(in.SignatureData))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out *SetUserAgentOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "userAgent":
|
|
|
|
out.UserAgent = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(out *jwriter.Writer, in SetUserAgentOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"userAgent\":")
|
|
|
|
out.String(string(in.UserAgent))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(l, v)
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(in *jlexer.Lexer, out *SetRequestInterceptionEnabledParams) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "enabled":
|
|
|
|
out.Enabled = bool(in.Bool())
|
2017-08-29 02:48:17 +00:00
|
|
|
case "patterns":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Patterns = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Patterns == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Patterns = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.Patterns = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Patterns = (out.Patterns)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v7 string
|
|
|
|
v7 = string(in.String())
|
|
|
|
out.Patterns = append(out.Patterns, v7)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in SetRequestInterceptionEnabledParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"enabled\":")
|
|
|
|
out.Bool(bool(in.Enabled))
|
2017-08-29 02:48:17 +00:00
|
|
|
if len(in.Patterns) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"patterns\":")
|
|
|
|
if in.Patterns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v8, v9 := range in.Patterns {
|
|
|
|
if v8 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
out.String(string(v9))
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetRequestInterceptionEnabledParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetRequestInterceptionEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetRequestInterceptionEnabledParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetRequestInterceptionEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "headers":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
2017-08-29 02:48:17 +00:00
|
|
|
var v10 interface{}
|
|
|
|
if m, ok := v10.(easyjson.Unmarshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.UnmarshalEasyJSON(in)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v10.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
v10 = in.Interface()
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(out.Headers)[key] = v10
|
2017-06-18 03:27:15 +00:00
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, in SetExtraHTTPHeadersParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
2017-08-29 02:48:17 +00:00
|
|
|
v11First := true
|
|
|
|
for v11Name, v11Value := range in.Headers {
|
|
|
|
if !v11First {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
v11First = false
|
|
|
|
out.String(string(v11Name))
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(':')
|
2017-08-29 02:48:17 +00:00
|
|
|
if m, ok := v11Value.(easyjson.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.MarshalEasyJSON(out)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v11Value.(json.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Raw(json.Marshal(v11Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(in *jlexer.Lexer, out *SetDataSizeLimitsForTestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "maxTotalSize":
|
|
|
|
out.MaxTotalSize = int64(in.Int64())
|
|
|
|
case "maxResourceSize":
|
|
|
|
out.MaxResourceSize = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"maxTotalSize\":")
|
|
|
|
out.Int64(int64(in.MaxTotalSize))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"maxResourceSize\":")
|
|
|
|
out.Int64(int64(in.MaxResourceSize))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookiesParams) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "cookies":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Cookies = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Cookies == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Cookies = make([]*CookieParam, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Cookies = []*CookieParam{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Cookies = (out.Cookies)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v12 *CookieParam
|
2017-08-20 23:56:21 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-08-29 02:48:17 +00:00
|
|
|
v12 = nil
|
2017-08-20 23:56:21 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
if v12 == nil {
|
|
|
|
v12 = new(CookieParam)
|
2017-08-20 23:56:21 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v12).UnmarshalEasyJSON(in)
|
2017-08-20 23:56:21 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Cookies = append(out.Cookies, v12)
|
2017-08-20 23:56:21 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookiesParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cookies\":")
|
|
|
|
if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v13, v14 := range in.Cookies {
|
|
|
|
if v13 > 0 {
|
2017-08-20 23:56:21 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
if v14 == nil {
|
2017-08-20 23:56:21 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v14).MarshalEasyJSON(out)
|
2017-08-20 23:56:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetCookiesParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetCookiesParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "success":
|
|
|
|
out.Success = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Success {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"success\":")
|
|
|
|
out.Bool(bool(in.Success))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieReturns) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
2017-01-24 15:09:23 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCookieParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
2017-08-20 23:56:21 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "domain":
|
|
|
|
out.Domain = string(in.String())
|
|
|
|
case "path":
|
|
|
|
out.Path = string(in.String())
|
|
|
|
case "secure":
|
|
|
|
out.Secure = bool(in.Bool())
|
|
|
|
case "httpOnly":
|
|
|
|
out.HTTPOnly = bool(in.Bool())
|
|
|
|
case "sameSite":
|
|
|
|
(out.SameSite).UnmarshalEasyJSON(in)
|
2017-08-20 23:56:21 +00:00
|
|
|
case "expires":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-08-20 23:56:21 +00:00
|
|
|
out.Expires = nil
|
2017-07-01 13:06:43 +00:00
|
|
|
} else {
|
2017-08-20 23:56:21 +00:00
|
|
|
if out.Expires == nil {
|
|
|
|
out.Expires = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
(*out.Expires).UnmarshalEasyJSON(in)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCookieParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
2017-08-20 23:56:21 +00:00
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Domain != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"domain\":")
|
|
|
|
out.String(string(in.Domain))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Path != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"path\":")
|
|
|
|
out.String(string(in.Path))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Secure {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"secure\":")
|
|
|
|
out.Bool(bool(in.Secure))
|
|
|
|
}
|
|
|
|
if in.HTTPOnly {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"httpOnly\":")
|
|
|
|
out.Bool(bool(in.HTTPOnly))
|
|
|
|
}
|
|
|
|
if in.SameSite != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sameSite\":")
|
|
|
|
(in.SameSite).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
if in.Expires != nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-08-20 23:56:21 +00:00
|
|
|
out.RawString("\"expires\":")
|
|
|
|
if in.Expires == nil {
|
2017-07-01 13:06:43 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-08-20 23:56:21 +00:00
|
|
|
(*in.Expires).MarshalEasyJSON(out)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetCacheDisabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "cacheDisabled":
|
|
|
|
out.CacheDisabled = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetCacheDisabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"cacheDisabled\":")
|
|
|
|
out.Bool(bool(in.CacheDisabled))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "bypass":
|
|
|
|
out.Bypass = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBypassServiceWorkerParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"bypass\":")
|
|
|
|
out.Bool(bool(in.Bypass))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SetBlockedURLSParams) {
|
2017-03-13 02:29:26 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "urls":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Urls = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Urls == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Urls = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.Urls = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Urls = (out.Urls)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v15 string
|
|
|
|
v15 = string(in.String())
|
|
|
|
out.Urls = append(out.Urls, v15)
|
2017-03-13 02:29:26 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SetBlockedURLSParams) {
|
2017-03-13 02:29:26 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"urls\":")
|
|
|
|
if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v16, v17 := range in.Urls {
|
|
|
|
if v16 > 0 {
|
2017-03-13 02:29:26 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.String(string(v17))
|
2017-03-13 02:29:26 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *SecurityDetails) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "protocol":
|
|
|
|
out.Protocol = string(in.String())
|
|
|
|
case "keyExchange":
|
|
|
|
out.KeyExchange = string(in.String())
|
|
|
|
case "keyExchangeGroup":
|
|
|
|
out.KeyExchangeGroup = string(in.String())
|
|
|
|
case "cipher":
|
|
|
|
out.Cipher = string(in.String())
|
|
|
|
case "mac":
|
|
|
|
out.Mac = string(in.String())
|
|
|
|
case "certificateId":
|
|
|
|
out.CertificateID = security.CertificateID(in.Int64())
|
|
|
|
case "subjectName":
|
|
|
|
out.SubjectName = string(in.String())
|
|
|
|
case "sanList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SanList = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.SanList == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.SanList = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.SanList = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.SanList = (out.SanList)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v18 string
|
|
|
|
v18 = string(in.String())
|
|
|
|
out.SanList = append(out.SanList, v18)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "issuer":
|
|
|
|
out.Issuer = string(in.String())
|
|
|
|
case "validFrom":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ValidFrom = nil
|
|
|
|
} else {
|
|
|
|
if out.ValidFrom == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.ValidFrom = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.ValidFrom).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "validTo":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ValidTo = nil
|
|
|
|
} else {
|
|
|
|
if out.ValidTo == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.ValidTo = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.ValidTo).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "signedCertificateTimestampList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SignedCertificateTimestampList = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.SignedCertificateTimestampList == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.SignedCertificateTimestampList = make([]*SignedCertificateTimestamp, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.SignedCertificateTimestampList = []*SignedCertificateTimestamp{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v19 *SignedCertificateTimestamp
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-08-29 02:48:17 +00:00
|
|
|
v19 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
if v19 == nil {
|
|
|
|
v19 = new(SignedCertificateTimestamp)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v19).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v19)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in SecurityDetails) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"protocol\":")
|
|
|
|
out.String(string(in.Protocol))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"keyExchange\":")
|
|
|
|
out.String(string(in.KeyExchange))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.KeyExchangeGroup != "" {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"keyExchangeGroup\":")
|
|
|
|
out.String(string(in.KeyExchangeGroup))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"cipher\":")
|
|
|
|
out.String(string(in.Cipher))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Mac != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"mac\":")
|
|
|
|
out.String(string(in.Mac))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"certificateId\":")
|
|
|
|
out.Int64(int64(in.CertificateID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"subjectName\":")
|
|
|
|
out.String(string(in.SubjectName))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sanList\":")
|
|
|
|
if in.SanList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v20, v21 := range in.SanList {
|
|
|
|
if v20 > 0 {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.String(string(v21))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(']')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"issuer\":")
|
|
|
|
out.String(string(in.Issuer))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"validFrom\":")
|
|
|
|
if in.ValidFrom == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ValidFrom).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"validTo\":")
|
|
|
|
if in.ValidTo == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ValidTo).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"signedCertificateTimestampList\":")
|
|
|
|
if in.SignedCertificateTimestampList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v22, v23 := range in.SignedCertificateTimestampList {
|
|
|
|
if v22 > 0 {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
if v23 == nil {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v23).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SecurityDetails) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SecurityDetails) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *Response) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "status":
|
|
|
|
out.Status = float64(in.Float64())
|
|
|
|
case "statusText":
|
|
|
|
out.StatusText = string(in.String())
|
|
|
|
case "headers":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
2017-08-29 02:48:17 +00:00
|
|
|
var v24 interface{}
|
|
|
|
if m, ok := v24.(easyjson.Unmarshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.UnmarshalEasyJSON(in)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v24.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
v24 = in.Interface()
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(out.Headers)[key] = v24
|
2017-06-18 03:27:15 +00:00
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "headersText":
|
|
|
|
out.HeadersText = string(in.String())
|
|
|
|
case "mimeType":
|
|
|
|
out.MimeType = string(in.String())
|
|
|
|
case "requestHeaders":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.RequestHeaders = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.RequestHeaders = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
2017-08-29 02:48:17 +00:00
|
|
|
var v25 interface{}
|
|
|
|
if m, ok := v25.(easyjson.Unmarshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.UnmarshalEasyJSON(in)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v25.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
v25 = in.Interface()
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(out.RequestHeaders)[key] = v25
|
2017-06-18 03:27:15 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestHeadersText":
|
|
|
|
out.RequestHeadersText = string(in.String())
|
|
|
|
case "connectionReused":
|
|
|
|
out.ConnectionReused = bool(in.Bool())
|
|
|
|
case "connectionId":
|
|
|
|
out.ConnectionID = float64(in.Float64())
|
|
|
|
case "remoteIPAddress":
|
|
|
|
out.RemoteIPAddress = string(in.String())
|
|
|
|
case "remotePort":
|
|
|
|
out.RemotePort = int64(in.Int64())
|
|
|
|
case "fromDiskCache":
|
|
|
|
out.FromDiskCache = bool(in.Bool())
|
|
|
|
case "fromServiceWorker":
|
|
|
|
out.FromServiceWorker = bool(in.Bool())
|
|
|
|
case "encodedDataLength":
|
|
|
|
out.EncodedDataLength = float64(in.Float64())
|
|
|
|
case "timing":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Timing = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Timing == nil {
|
|
|
|
out.Timing = new(ResourceTiming)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Timing).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "protocol":
|
|
|
|
out.Protocol = string(in.String())
|
|
|
|
case "securityState":
|
|
|
|
(out.SecurityState).UnmarshalEasyJSON(in)
|
|
|
|
case "securityDetails":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SecurityDetails = nil
|
|
|
|
} else {
|
|
|
|
if out.SecurityDetails == nil {
|
|
|
|
out.SecurityDetails = new(SecurityDetails)
|
|
|
|
}
|
|
|
|
(*out.SecurityDetails).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in Response) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"status\":")
|
|
|
|
out.Float64(float64(in.Status))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"statusText\":")
|
|
|
|
out.String(string(in.StatusText))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
2017-08-29 02:48:17 +00:00
|
|
|
v26First := true
|
|
|
|
for v26Name, v26Value := range in.Headers {
|
|
|
|
if !v26First {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
v26First = false
|
|
|
|
out.String(string(v26Name))
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(':')
|
2017-08-29 02:48:17 +00:00
|
|
|
if m, ok := v26Value.(easyjson.Marshaler); ok {
|
2017-07-02 11:44:34 +00:00
|
|
|
m.MarshalEasyJSON(out)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v26Value.(json.Marshaler); ok {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Raw(json.Marshal(v26Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.HeadersText != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"headersText\":")
|
|
|
|
out.String(string(in.HeadersText))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"mimeType\":")
|
|
|
|
out.String(string(in.MimeType))
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.RequestHeaders) != 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"requestHeaders\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.RequestHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
2017-08-29 02:48:17 +00:00
|
|
|
v27First := true
|
|
|
|
for v27Name, v27Value := range in.RequestHeaders {
|
|
|
|
if !v27First {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
v27First = false
|
|
|
|
out.String(string(v27Name))
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(':')
|
2017-08-29 02:48:17 +00:00
|
|
|
if m, ok := v27Value.(easyjson.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.MarshalEasyJSON(out)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v27Value.(json.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Raw(json.Marshal(v27Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.RequestHeadersText != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"requestHeadersText\":")
|
|
|
|
out.String(string(in.RequestHeadersText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectionReused\":")
|
|
|
|
out.Bool(bool(in.ConnectionReused))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectionId\":")
|
|
|
|
out.Float64(float64(in.ConnectionID))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.RemoteIPAddress != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"remoteIPAddress\":")
|
|
|
|
out.String(string(in.RemoteIPAddress))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.RemotePort != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"remotePort\":")
|
|
|
|
out.Int64(int64(in.RemotePort))
|
|
|
|
}
|
|
|
|
if in.FromDiskCache {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fromDiskCache\":")
|
|
|
|
out.Bool(bool(in.FromDiskCache))
|
|
|
|
}
|
|
|
|
if in.FromServiceWorker {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fromServiceWorker\":")
|
|
|
|
out.Bool(bool(in.FromServiceWorker))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"encodedDataLength\":")
|
|
|
|
out.Float64(float64(in.EncodedDataLength))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Timing != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timing\":")
|
|
|
|
if in.Timing == nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.Timing).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Protocol != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"protocol\":")
|
|
|
|
out.String(string(in.Protocol))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"securityState\":")
|
|
|
|
(in.SecurityState).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.SecurityDetails != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"securityDetails\":")
|
|
|
|
if in.SecurityDetails == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.SecurityDetails).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Response) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Response) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *ResourceTiming) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestTime":
|
|
|
|
out.RequestTime = float64(in.Float64())
|
|
|
|
case "proxyStart":
|
|
|
|
out.ProxyStart = float64(in.Float64())
|
|
|
|
case "proxyEnd":
|
|
|
|
out.ProxyEnd = float64(in.Float64())
|
|
|
|
case "dnsStart":
|
|
|
|
out.DNSStart = float64(in.Float64())
|
|
|
|
case "dnsEnd":
|
|
|
|
out.DNSEnd = float64(in.Float64())
|
|
|
|
case "connectStart":
|
|
|
|
out.ConnectStart = float64(in.Float64())
|
|
|
|
case "connectEnd":
|
|
|
|
out.ConnectEnd = float64(in.Float64())
|
|
|
|
case "sslStart":
|
|
|
|
out.SslStart = float64(in.Float64())
|
|
|
|
case "sslEnd":
|
|
|
|
out.SslEnd = float64(in.Float64())
|
|
|
|
case "workerStart":
|
|
|
|
out.WorkerStart = float64(in.Float64())
|
|
|
|
case "workerReady":
|
|
|
|
out.WorkerReady = float64(in.Float64())
|
|
|
|
case "sendStart":
|
|
|
|
out.SendStart = float64(in.Float64())
|
|
|
|
case "sendEnd":
|
|
|
|
out.SendEnd = float64(in.Float64())
|
|
|
|
case "pushStart":
|
|
|
|
out.PushStart = float64(in.Float64())
|
|
|
|
case "pushEnd":
|
|
|
|
out.PushEnd = float64(in.Float64())
|
|
|
|
case "receiveHeadersEnd":
|
|
|
|
out.ReceiveHeadersEnd = float64(in.Float64())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in ResourceTiming) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestTime\":")
|
|
|
|
out.Float64(float64(in.RequestTime))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"proxyStart\":")
|
|
|
|
out.Float64(float64(in.ProxyStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"proxyEnd\":")
|
|
|
|
out.Float64(float64(in.ProxyEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"dnsStart\":")
|
|
|
|
out.Float64(float64(in.DNSStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"dnsEnd\":")
|
|
|
|
out.Float64(float64(in.DNSEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectStart\":")
|
|
|
|
out.Float64(float64(in.ConnectStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectEnd\":")
|
|
|
|
out.Float64(float64(in.ConnectEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sslStart\":")
|
|
|
|
out.Float64(float64(in.SslStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sslEnd\":")
|
|
|
|
out.Float64(float64(in.SslEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"workerStart\":")
|
|
|
|
out.Float64(float64(in.WorkerStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"workerReady\":")
|
|
|
|
out.Float64(float64(in.WorkerReady))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sendStart\":")
|
|
|
|
out.Float64(float64(in.SendStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sendEnd\":")
|
|
|
|
out.Float64(float64(in.SendEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"pushStart\":")
|
|
|
|
out.Float64(float64(in.PushStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"pushEnd\":")
|
|
|
|
out.Float64(float64(in.PushEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"receiveHeadersEnd\":")
|
|
|
|
out.Float64(float64(in.ReceiveHeadersEnd))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ResourceTiming) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ResourceTiming) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *Request) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "method":
|
|
|
|
out.Method = string(in.String())
|
|
|
|
case "headers":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
2017-08-29 02:48:17 +00:00
|
|
|
var v28 interface{}
|
|
|
|
if m, ok := v28.(easyjson.Unmarshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.UnmarshalEasyJSON(in)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v28.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
v28 = in.Interface()
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(out.Headers)[key] = v28
|
2017-06-18 03:27:15 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "postData":
|
|
|
|
out.PostData = string(in.String())
|
|
|
|
case "mixedContentType":
|
|
|
|
(out.MixedContentType).UnmarshalEasyJSON(in)
|
|
|
|
case "initialPriority":
|
|
|
|
(out.InitialPriority).UnmarshalEasyJSON(in)
|
|
|
|
case "referrerPolicy":
|
|
|
|
(out.ReferrerPolicy).UnmarshalEasyJSON(in)
|
2017-04-04 08:44:57 +00:00
|
|
|
case "isLinkPreload":
|
|
|
|
out.IsLinkPreload = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in Request) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"method\":")
|
|
|
|
out.String(string(in.Method))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
2017-08-29 02:48:17 +00:00
|
|
|
v29First := true
|
|
|
|
for v29Name, v29Value := range in.Headers {
|
|
|
|
if !v29First {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
v29First = false
|
|
|
|
out.String(string(v29Name))
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(':')
|
2017-08-29 02:48:17 +00:00
|
|
|
if m, ok := v29Value.(easyjson.Marshaler); ok {
|
2017-07-02 11:44:34 +00:00
|
|
|
m.MarshalEasyJSON(out)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v29Value.(json.Marshaler); ok {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Raw(json.Marshal(v29Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.PostData != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawString("\"postData\":")
|
|
|
|
out.String(string(in.PostData))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if in.MixedContentType != "" {
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawString("\"mixedContentType\":")
|
|
|
|
(in.MixedContentType).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"initialPriority\":")
|
|
|
|
(in.InitialPriority).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"referrerPolicy\":")
|
|
|
|
(in.ReferrerPolicy).MarshalEasyJSON(out)
|
2017-04-04 08:44:57 +00:00
|
|
|
if in.IsLinkPreload {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"isLinkPreload\":")
|
|
|
|
out.Bool(bool(in.IsLinkPreload))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v Request) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v Request) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *Request) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *ReplayXHRParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in ReplayXHRParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ReplayXHRParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-03-13 02:29:26 +00:00
|
|
|
func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-03-13 02:29:26 +00:00
|
|
|
func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-03-13 02:29:26 +00:00
|
|
|
func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *Initiator) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "stack":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Stack = nil
|
|
|
|
} else {
|
|
|
|
if out.Stack == nil {
|
|
|
|
out.Stack = new(runtime.StackTrace)
|
|
|
|
}
|
|
|
|
(*out.Stack).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "lineNumber":
|
|
|
|
out.LineNumber = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in Initiator) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Stack != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"stack\":")
|
|
|
|
if in.Stack == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Stack).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.LineNumber != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"lineNumber\":")
|
|
|
|
out.Float64(float64(in.LineNumber))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Initiator) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Initiator) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "body":
|
|
|
|
out.Body = string(in.String())
|
|
|
|
case "base64Encoded":
|
|
|
|
out.Base64encoded = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Body != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"body\":")
|
|
|
|
out.String(string(in.Body))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Base64encoded {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"base64Encoded\":")
|
|
|
|
out.Bool(bool(in.Base64encoded))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetResponseBodyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetResponseBodyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "cookies":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Cookies = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Cookies == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Cookies = make([]*Cookie, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Cookies = []*Cookie{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Cookies = (out.Cookies)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v30 *Cookie
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-08-29 02:48:17 +00:00
|
|
|
v30 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
if v30 == nil {
|
|
|
|
v30 = new(Cookie)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v30).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Cookies = append(out.Cookies, v30)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Cookies) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cookies\":")
|
|
|
|
if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v31, v32 := range in.Cookies {
|
|
|
|
if v31 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
if v32 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v32).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "urls":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Urls = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Urls == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Urls = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.Urls = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Urls = (out.Urls)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v33 string
|
|
|
|
v33 = string(in.String())
|
|
|
|
out.Urls = append(out.Urls, v33)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Urls) != 0 {
|
2017-01-24 15:21:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"urls\":")
|
|
|
|
if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v34, v35 := range in.Urls {
|
|
|
|
if v34 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.String(string(v35))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-01-24 15:21:23 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "tableNames":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.TableNames = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.TableNames == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.TableNames = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.TableNames = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.TableNames = (out.TableNames)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v36 string
|
|
|
|
v36 = string(in.String())
|
|
|
|
out.TableNames = append(out.TableNames, v36)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.TableNames) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"tableNames\":")
|
|
|
|
if in.TableNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v37, v38 := range in.TableNames {
|
|
|
|
if v37 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.String(string(v38))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetCertificateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "origin":
|
|
|
|
out.Origin = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetCertificateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"origin\":")
|
|
|
|
out.String(string(in.Origin))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "cookies":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Cookies = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Cookies == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Cookies = make([]*Cookie, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Cookies = []*Cookie{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Cookies = (out.Cookies)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-29 02:48:17 +00:00
|
|
|
var v39 *Cookie
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-08-29 02:48:17 +00:00
|
|
|
v39 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
if v39 == nil {
|
|
|
|
v39 = new(Cookie)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v39).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Cookies = append(out.Cookies, v39)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Cookies) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cookies\":")
|
|
|
|
if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-08-29 02:48:17 +00:00
|
|
|
for v40, v41 := range in.Cookies {
|
|
|
|
if v40 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
if v41 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
(*v41).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *GetAllCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in GetAllCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "wallTime":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.WallTime = nil
|
|
|
|
} else {
|
|
|
|
if out.WallTime == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.WallTime = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.WallTime).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "request":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Request = nil
|
|
|
|
} else {
|
|
|
|
if out.Request == nil {
|
|
|
|
out.Request = new(WebSocketRequest)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"wallTime\":")
|
|
|
|
if in.WallTime == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.WallTime).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"request\":")
|
|
|
|
if in.Request == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Request).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "response":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Response = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(WebSocketResponse)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameSent) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(WebSocketFrame)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameSent) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(WebSocketFrame)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketFrameError) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "errorMessage":
|
|
|
|
out.ErrorMessage = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketFrameError) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"errorMessage\":")
|
|
|
|
out.String(string(in.ErrorMessage))
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketCreated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "initiator":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Initiator = nil
|
|
|
|
} else {
|
|
|
|
if out.Initiator == nil {
|
|
|
|
out.Initiator = new(Initiator)
|
|
|
|
}
|
|
|
|
(*out.Initiator).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketCreated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Initiator != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"initiator\":")
|
|
|
|
if in.Initiator == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Initiator).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventWebSocketClosed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventWebSocketClosed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "loaderId":
|
|
|
|
out.LoaderID = cdp.LoaderID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(Response)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-07-04 01:07:34 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"loaderId\":")
|
|
|
|
out.String(string(in.LoaderID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-04 01:07:34 +00:00
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResponseReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResponseReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventResourceChangedPriority) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "newPriority":
|
|
|
|
(out.NewPriority).UnmarshalEasyJSON(in)
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventResourceChangedPriority) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"newPriority\":")
|
|
|
|
(in.NewPriority).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestWillBeSent) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "loaderId":
|
|
|
|
out.LoaderID = cdp.LoaderID(in.String())
|
|
|
|
case "documentURL":
|
|
|
|
out.DocumentURL = string(in.String())
|
|
|
|
case "request":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Request = nil
|
|
|
|
} else {
|
|
|
|
if out.Request == nil {
|
|
|
|
out.Request = new(Request)
|
|
|
|
}
|
|
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "wallTime":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.WallTime = nil
|
|
|
|
} else {
|
|
|
|
if out.WallTime == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.WallTime = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.WallTime).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "initiator":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Initiator = nil
|
|
|
|
} else {
|
|
|
|
if out.Initiator == nil {
|
|
|
|
out.Initiator = new(Initiator)
|
|
|
|
}
|
|
|
|
(*out.Initiator).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "redirectResponse":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.RedirectResponse = nil
|
|
|
|
} else {
|
|
|
|
if out.RedirectResponse == nil {
|
|
|
|
out.RedirectResponse = new(Response)
|
|
|
|
}
|
|
|
|
(*out.RedirectResponse).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
2017-07-04 01:07:34 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestWillBeSent) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"loaderId\":")
|
|
|
|
out.String(string(in.LoaderID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"documentURL\":")
|
|
|
|
out.String(string(in.DocumentURL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"request\":")
|
|
|
|
if in.Request == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Request).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"wallTime\":")
|
|
|
|
if in.WallTime == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.WallTime).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"initiator\":")
|
|
|
|
if in.Initiator == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Initiator).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.RedirectResponse != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectResponse\":")
|
|
|
|
if in.RedirectResponse == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.RedirectResponse).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.Type != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-04 01:07:34 +00:00
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventRequestServedFromCache) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventRequestServedFromCache) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventRequestIntercepted) {
|
2017-06-06 10:57:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-06-18 00:55:45 +00:00
|
|
|
case "interceptionId":
|
2017-06-06 10:57:18 +00:00
|
|
|
out.InterceptionID = InterceptionID(in.String())
|
|
|
|
case "request":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Request = nil
|
|
|
|
} else {
|
|
|
|
if out.Request == nil {
|
|
|
|
out.Request = new(Request)
|
|
|
|
}
|
|
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
case "resourceType":
|
|
|
|
(out.ResourceType).UnmarshalEasyJSON(in)
|
2017-08-03 05:37:27 +00:00
|
|
|
case "isNavigationRequest":
|
|
|
|
out.IsNavigationRequest = bool(in.Bool())
|
2017-06-06 10:57:18 +00:00
|
|
|
case "redirectHeaders":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.RedirectHeaders = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.RedirectHeaders = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
2017-08-29 02:48:17 +00:00
|
|
|
var v42 interface{}
|
|
|
|
if m, ok := v42.(easyjson.Unmarshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.UnmarshalEasyJSON(in)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v42.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
v42 = in.Interface()
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(out.RedirectHeaders)[key] = v42
|
2017-06-18 03:27:15 +00:00
|
|
|
in.WantComma()
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
case "redirectStatusCode":
|
|
|
|
out.RedirectStatusCode = int64(in.Int64())
|
|
|
|
case "redirectUrl":
|
|
|
|
out.RedirectURL = string(in.String())
|
2017-06-18 00:55:45 +00:00
|
|
|
case "authChallenge":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AuthChallenge = nil
|
|
|
|
} else {
|
|
|
|
if out.AuthChallenge == nil {
|
|
|
|
out.AuthChallenge = new(AuthChallenge)
|
|
|
|
}
|
|
|
|
(*out.AuthChallenge).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-06-06 10:57:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventRequestIntercepted) {
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"interceptionId\":")
|
|
|
|
out.String(string(in.InterceptionID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"request\":")
|
|
|
|
if in.Request == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Request).MarshalEasyJSON(out)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"resourceType\":")
|
|
|
|
(in.ResourceType).MarshalEasyJSON(out)
|
2017-08-03 05:37:27 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"isNavigationRequest\":")
|
|
|
|
out.Bool(bool(in.IsNavigationRequest))
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.RedirectHeaders) != 0 {
|
2017-06-06 10:57:18 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectHeaders\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.RedirectHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-06-06 10:57:18 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
2017-08-29 02:48:17 +00:00
|
|
|
v43First := true
|
|
|
|
for v43Name, v43Value := range in.RedirectHeaders {
|
|
|
|
if !v43First {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
v43First = false
|
|
|
|
out.String(string(v43Name))
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(':')
|
2017-08-29 02:48:17 +00:00
|
|
|
if m, ok := v43Value.(easyjson.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.MarshalEasyJSON(out)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v43Value.(json.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Raw(json.Marshal(v43Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.RedirectStatusCode != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectStatusCode\":")
|
|
|
|
out.Int64(int64(in.RedirectStatusCode))
|
|
|
|
}
|
|
|
|
if in.RedirectURL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectUrl\":")
|
|
|
|
out.String(string(in.RedirectURL))
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if in.AuthChallenge != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"authChallenge\":")
|
|
|
|
if in.AuthChallenge == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AuthChallenge).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventRequestIntercepted) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventRequestIntercepted) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventRequestIntercepted) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventRequestIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventLoadingFinished) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "encodedDataLength":
|
|
|
|
out.EncodedDataLength = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFinished) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"encodedDataLength\":")
|
|
|
|
out.Float64(float64(in.EncodedDataLength))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFinished) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventLoadingFailed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "errorText":
|
|
|
|
out.ErrorText = string(in.String())
|
|
|
|
case "canceled":
|
|
|
|
out.Canceled = bool(in.Bool())
|
|
|
|
case "blockedReason":
|
|
|
|
(out.BlockedReason).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventLoadingFailed) {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"errorText\":")
|
|
|
|
out.String(string(in.ErrorText))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Canceled {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"canceled\":")
|
|
|
|
out.Bool(bool(in.Canceled))
|
|
|
|
}
|
|
|
|
if in.BlockedReason != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"blockedReason\":")
|
|
|
|
(in.BlockedReason).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
2017-01-24 15:09:23 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFailed) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EventEventSourceMessageReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "eventName":
|
|
|
|
out.EventName = string(in.String())
|
|
|
|
case "eventId":
|
|
|
|
out.EventID = string(in.String())
|
|
|
|
case "data":
|
|
|
|
out.Data = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventEventSourceMessageReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"eventName\":")
|
|
|
|
out.String(string(in.EventName))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"eventId\":")
|
|
|
|
out.String(string(in.EventID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"data\":")
|
|
|
|
out.String(string(in.Data))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EventDataReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "dataLength":
|
|
|
|
out.DataLength = int64(in.Int64())
|
|
|
|
case "encodedDataLength":
|
|
|
|
out.EncodedDataLength = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EventDataReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"dataLength\":")
|
|
|
|
out.Int64(int64(in.DataLength))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"encodedDataLength\":")
|
|
|
|
out.Int64(int64(in.EncodedDataLength))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventDataReceived) MarshalJSON() ([]byte, error) {
|
2017-06-06 10:57:18 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-07-09 01:40:29 +00:00
|
|
|
func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-07-09 01:40:29 +00:00
|
|
|
func (v *EventDataReceived) UnmarshalJSON(data []byte) error {
|
2017-06-06 10:57:18 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-07-09 01:40:29 +00:00
|
|
|
func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "maxTotalBufferSize":
|
|
|
|
out.MaxTotalBufferSize = int64(in.Int64())
|
|
|
|
case "maxResourceBufferSize":
|
|
|
|
out.MaxResourceBufferSize = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.MaxTotalBufferSize != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"maxTotalBufferSize\":")
|
|
|
|
out.Int64(int64(in.MaxTotalBufferSize))
|
|
|
|
}
|
|
|
|
if in.MaxResourceBufferSize != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"maxResourceBufferSize\":")
|
|
|
|
out.Int64(int64(in.MaxResourceBufferSize))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "offline":
|
|
|
|
out.Offline = bool(in.Bool())
|
|
|
|
case "latency":
|
|
|
|
out.Latency = float64(in.Float64())
|
|
|
|
case "downloadThroughput":
|
|
|
|
out.DownloadThroughput = float64(in.Float64())
|
|
|
|
case "uploadThroughput":
|
|
|
|
out.UploadThroughput = float64(in.Float64())
|
|
|
|
case "connectionType":
|
|
|
|
(out.ConnectionType).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in EmulateNetworkConditionsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"offline\":")
|
|
|
|
out.Bool(bool(in.Offline))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"latency\":")
|
|
|
|
out.Float64(float64(in.Latency))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"downloadThroughput\":")
|
|
|
|
out.Float64(float64(in.DownloadThroughput))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"uploadThroughput\":")
|
|
|
|
out.Float64(float64(in.UploadThroughput))
|
|
|
|
if in.ConnectionType != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"connectionType\":")
|
|
|
|
(in.ConnectionType).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *DeleteCookiesParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-08-20 23:56:21 +00:00
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
2017-08-20 23:56:21 +00:00
|
|
|
case "domain":
|
|
|
|
out.Domain = string(in.String())
|
|
|
|
case "path":
|
|
|
|
out.Path = string(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in DeleteCookiesParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-08-20 23:56:21 +00:00
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.Domain != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"domain\":")
|
|
|
|
out.String(string(in.Domain))
|
|
|
|
}
|
|
|
|
if in.Path != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"path\":")
|
|
|
|
out.String(string(in.Path))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v DeleteCookiesParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *CookieParam) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "domain":
|
|
|
|
out.Domain = string(in.String())
|
|
|
|
case "path":
|
|
|
|
out.Path = string(in.String())
|
|
|
|
case "secure":
|
|
|
|
out.Secure = bool(in.Bool())
|
|
|
|
case "httpOnly":
|
|
|
|
out.HTTPOnly = bool(in.Bool())
|
|
|
|
case "sameSite":
|
|
|
|
(out.SameSite).UnmarshalEasyJSON(in)
|
|
|
|
case "expires":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Expires = nil
|
|
|
|
} else {
|
|
|
|
if out.Expires == nil {
|
|
|
|
out.Expires = new(cdp.TimeSinceEpoch)
|
|
|
|
}
|
|
|
|
(*out.Expires).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in CookieParam) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-08-20 23:56:21 +00:00
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.Domain != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"domain\":")
|
|
|
|
out.String(string(in.Domain))
|
|
|
|
}
|
|
|
|
if in.Path != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"path\":")
|
|
|
|
out.String(string(in.Path))
|
|
|
|
}
|
|
|
|
if in.Secure {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"secure\":")
|
|
|
|
out.Bool(bool(in.Secure))
|
|
|
|
}
|
|
|
|
if in.HTTPOnly {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"httpOnly\":")
|
|
|
|
out.Bool(bool(in.HTTPOnly))
|
|
|
|
}
|
|
|
|
if in.SameSite != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sameSite\":")
|
|
|
|
(in.SameSite).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.Expires != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"expires\":")
|
|
|
|
if in.Expires == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Expires).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-08-20 23:56:21 +00:00
|
|
|
func (v CookieParam) MarshalJSON() ([]byte, error) {
|
2017-02-18 03:58:29 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-08-20 23:56:21 +00:00
|
|
|
func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-08-20 23:56:21 +00:00
|
|
|
func (v *CookieParam) UnmarshalJSON(data []byte) error {
|
2017-02-18 03:58:29 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-08-20 23:56:21 +00:00
|
|
|
func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *Cookie) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
|
|
|
case "domain":
|
|
|
|
out.Domain = string(in.String())
|
|
|
|
case "path":
|
|
|
|
out.Path = string(in.String())
|
|
|
|
case "expires":
|
|
|
|
out.Expires = float64(in.Float64())
|
|
|
|
case "size":
|
|
|
|
out.Size = int64(in.Int64())
|
|
|
|
case "httpOnly":
|
|
|
|
out.HTTPOnly = bool(in.Bool())
|
|
|
|
case "secure":
|
|
|
|
out.Secure = bool(in.Bool())
|
|
|
|
case "session":
|
|
|
|
out.Session = bool(in.Bool())
|
|
|
|
case "sameSite":
|
|
|
|
(out.SameSite).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in Cookie) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"domain\":")
|
|
|
|
out.String(string(in.Domain))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"path\":")
|
|
|
|
out.String(string(in.Path))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"expires\":")
|
|
|
|
out.Float64(float64(in.Expires))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"size\":")
|
|
|
|
out.Int64(int64(in.Size))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"httpOnly\":")
|
|
|
|
out.Bool(bool(in.HTTPOnly))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"secure\":")
|
|
|
|
out.Bool(bool(in.Secure))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"session\":")
|
|
|
|
out.Bool(bool(in.Session))
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.SameSite != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sameSite\":")
|
|
|
|
(in.SameSite).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v Cookie) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *Cookie) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *ContinueInterceptedRequestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-06-06 10:57:18 +00:00
|
|
|
case "interceptionId":
|
|
|
|
out.InterceptionID = InterceptionID(in.String())
|
|
|
|
case "errorReason":
|
|
|
|
(out.ErrorReason).UnmarshalEasyJSON(in)
|
|
|
|
case "rawResponse":
|
|
|
|
out.RawResponse = string(in.String())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "method":
|
|
|
|
out.Method = string(in.String())
|
|
|
|
case "postData":
|
|
|
|
out.PostData = string(in.String())
|
|
|
|
case "headers":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
2017-08-29 02:48:17 +00:00
|
|
|
var v44 interface{}
|
|
|
|
if m, ok := v44.(easyjson.Unmarshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.UnmarshalEasyJSON(in)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v44.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
v44 = in.Interface()
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
(out.Headers)[key] = v44
|
2017-06-18 03:27:15 +00:00
|
|
|
in.WantComma()
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
case "authChallengeResponse":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AuthChallengeResponse = nil
|
|
|
|
} else {
|
|
|
|
if out.AuthChallengeResponse == nil {
|
|
|
|
out.AuthChallengeResponse = new(AuthChallengeResponse)
|
|
|
|
}
|
|
|
|
(*out.AuthChallengeResponse).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in ContinueInterceptedRequestParams) {
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"interceptionId\":")
|
|
|
|
out.String(string(in.InterceptionID))
|
|
|
|
if in.ErrorReason != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"errorReason\":")
|
|
|
|
(in.ErrorReason).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.RawResponse != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"rawResponse\":")
|
|
|
|
out.String(string(in.RawResponse))
|
|
|
|
}
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.Method != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"method\":")
|
|
|
|
out.String(string(in.Method))
|
|
|
|
}
|
|
|
|
if in.PostData != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"postData\":")
|
|
|
|
out.String(string(in.PostData))
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.Headers) != 0 {
|
2017-06-06 10:57:18 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-06-06 10:57:18 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
2017-08-29 02:48:17 +00:00
|
|
|
v45First := true
|
|
|
|
for v45Name, v45Value := range in.Headers {
|
|
|
|
if !v45First {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-08-29 02:48:17 +00:00
|
|
|
v45First = false
|
|
|
|
out.String(string(v45Name))
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte(':')
|
2017-08-29 02:48:17 +00:00
|
|
|
if m, ok := v45Value.(easyjson.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
m.MarshalEasyJSON(out)
|
2017-08-29 02:48:17 +00:00
|
|
|
} else if m, ok := v45Value.(json.Marshaler); ok {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
2017-08-29 02:48:17 +00:00
|
|
|
out.Raw(json.Marshal(v45Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if in.AuthChallengeResponse != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"authChallengeResponse\":")
|
|
|
|
if in.AuthChallengeResponse == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AuthChallengeResponse).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ContinueInterceptedRequestParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ContinueInterceptedRequestParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ContinueInterceptedRequestParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ContinueInterceptedRequestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *ClearBrowserCookiesParams) {
|
2017-06-06 10:57:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in ClearBrowserCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *ClearBrowserCacheParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in ClearBrowserCacheParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsReturns) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error {
|
2017-02-14 08:41:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) {
|
2017-02-14 08:41:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CanClearBrowserCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v CanClearBrowserCookiesReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CanClearBrowserCookiesParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCookiesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in CanClearBrowserCacheReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v CanClearBrowserCacheReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(in *jlexer.Lexer, out *CanClearBrowserCacheParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(out *jwriter.Writer, in CanClearBrowserCacheParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCacheParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(in *jlexer.Lexer, out *CachedResource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(Response)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "bodySize":
|
|
|
|
out.BodySize = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(out *jwriter.Writer, in CachedResource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Response != nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"bodySize\":")
|
|
|
|
out.Float64(float64(in.BodySize))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CachedResource) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CachedResource) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(in *jlexer.Lexer, out *AuthChallengeResponse) {
|
2017-06-18 00:55:45 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "response":
|
|
|
|
(out.Response).UnmarshalEasyJSON(in)
|
|
|
|
case "username":
|
|
|
|
out.Username = string(in.String())
|
|
|
|
case "password":
|
|
|
|
out.Password = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(out *jwriter.Writer, in AuthChallengeResponse) {
|
2017-06-18 00:55:45 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
(in.Response).MarshalEasyJSON(out)
|
2017-06-18 00:55:45 +00:00
|
|
|
if in.Username != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"username\":")
|
|
|
|
out.String(string(in.Username))
|
|
|
|
}
|
|
|
|
if in.Password != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"password\":")
|
|
|
|
out.String(string(in.Password))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(&w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(&r, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(l, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(in *jlexer.Lexer, out *AuthChallenge) {
|
2017-06-18 00:55:45 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "source":
|
|
|
|
(out.Source).UnmarshalEasyJSON(in)
|
|
|
|
case "origin":
|
|
|
|
out.Origin = string(in.String())
|
|
|
|
case "scheme":
|
|
|
|
out.Scheme = string(in.String())
|
|
|
|
case "realm":
|
|
|
|
out.Realm = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-20 23:56:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(out *jwriter.Writer, in AuthChallenge) {
|
2017-06-18 00:55:45 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.Source != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"source\":")
|
|
|
|
(in.Source).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
out.String(string(in.Origin))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"scheme\":")
|
|
|
|
out.String(string(in.Scheme))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"realm\":")
|
|
|
|
out.String(string(in.Realm))
|
2017-06-18 00:55:45 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v AuthChallenge) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(&w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *AuthChallenge) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(&r, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-20 23:56:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(l, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|