// MarshalMsg implements msgp.Marshaler func (z *CacheRegistry) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 6 // string "CacheKey" o = append(o, 0x86, 0xa8, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4b, 0x65, 0x79) o = msgp.AppendString(o, z.CacheKey) // string "Payload" o = append(o, 0xa7, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64) o, err = msgp.AppendIntf(o, z.Payload) if err != nil { return } // string "StoreTTL" o = append(o, 0xa8, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x54, 0x54, 0x4c) o = msgp.AppendFloat64(o, z.StoreTTL) // string "CacheTime" o = append(o, 0xa9, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x69, 0x6d, 0x65) o = msgp.AppendTime(o, z.CacheTime) // string "HasValue" o = append(o, 0xa8, 0x48, 0x61, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65) o = msgp.AppendBool(o, z.HasValue) // string "TypeName" o = append(o, 0xa8, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65) o = msgp.AppendString(o, z.TypeName) return }
// MarshalMsg implements msgp.Marshaler func (z *Weather) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 4 // string "time" o = append(o, 0x84, 0xa4, 0x74, 0x69, 0x6d, 0x65) o = msgp.AppendTime(o, z.Time) // string "size" o = append(o, 0xa4, 0x73, 0x69, 0x7a, 0x65) o = msgp.AppendInt64(o, z.Size) // string "type" o = append(o, 0xa4, 0x74, 0x79, 0x70, 0x65) o = msgp.AppendString(o, z.Type) // string "details" o = append(o, 0xa7, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73) o = msgp.AppendBytes(o, z.Details) return }
// MarshalMsg implements msgp.Marshaler func (z *A) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 6 // string "Name" o = append(o, 0x86, 0xa4, 0x4e, 0x61, 0x6d, 0x65) o = msgp.AppendString(o, z.Name) // string "BirthDay" o = append(o, 0xa8, 0x42, 0x69, 0x72, 0x74, 0x68, 0x44, 0x61, 0x79) o = msgp.AppendTime(o, z.BirthDay) // string "Phone" o = append(o, 0xa5, 0x50, 0x68, 0x6f, 0x6e, 0x65) o = msgp.AppendString(o, z.Phone) // string "Siblings" o = append(o, 0xa8, 0x53, 0x69, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x73) o = msgp.AppendInt(o, z.Siblings) // string "Spouse" o = append(o, 0xa6, 0x53, 0x70, 0x6f, 0x75, 0x73, 0x65) o = msgp.AppendBool(o, z.Spouse) // string "Money" o = append(o, 0xa5, 0x4d, 0x6f, 0x6e, 0x65, 0x79) o = msgp.AppendFloat64(o, z.Money) return }