Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.3 KiB

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