consul/proto-public/pbcatalog/v2beta1/vip_json.gen.go

34 lines
904 B
Go
Raw Normal View History

// Code generated by protoc-json-shim. DO NOT EDIT.
package catalogv2beta1
import (
protojson "google.golang.org/protobuf/encoding/protojson"
)
// MarshalJSON is a custom marshaler for VirtualIPs
func (this *VirtualIPs) MarshalJSON() ([]byte, error) {
str, err := VipMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for VirtualIPs
func (this *VirtualIPs) UnmarshalJSON(b []byte) error {
return VipUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for IP
func (this *IP) MarshalJSON() ([]byte, error) {
str, err := VipMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for IP
func (this *IP) UnmarshalJSON(b []byte) error {
return VipUnmarshaler.Unmarshal(b, this)
}
var (
VipMarshaler = &protojson.MarshalOptions{}
VipUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)