| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
- package obfuscate
- import (
- json "encoding/json"
- 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
- )
- func easyjson4ef41860DecodeGithubComDataDogDatadogAgentPkgObfuscate(in *jlexer.Lexer, out *SQLConfig) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "TableNames":
- out.TableNames = bool(in.Bool())
- case "replace_digits":
- out.ReplaceDigits = bool(in.Bool())
- case "KeepSQLAlias":
- out.KeepSQLAlias = bool(in.Bool())
- case "DollarQuotedFunc":
- out.DollarQuotedFunc = bool(in.Bool())
- case "Cache":
- out.Cache = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjson4ef41860EncodeGithubComDataDogDatadogAgentPkgObfuscate(out *jwriter.Writer, in SQLConfig) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"TableNames\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.TableNames))
- }
- {
- const prefix string = ",\"replace_digits\":"
- out.RawString(prefix)
- out.Bool(bool(in.ReplaceDigits))
- }
- {
- const prefix string = ",\"KeepSQLAlias\":"
- out.RawString(prefix)
- out.Bool(bool(in.KeepSQLAlias))
- }
- {
- const prefix string = ",\"DollarQuotedFunc\":"
- out.RawString(prefix)
- out.Bool(bool(in.DollarQuotedFunc))
- }
- {
- const prefix string = ",\"Cache\":"
- out.RawString(prefix)
- out.Bool(bool(in.Cache))
- }
- out.RawByte('}')
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SQLConfig) MarshalEasyJSON(w *jwriter.Writer) {
- easyjson4ef41860EncodeGithubComDataDogDatadogAgentPkgObfuscate(w, v)
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SQLConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjson4ef41860DecodeGithubComDataDogDatadogAgentPkgObfuscate(l, v)
- }
|