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.
consul/proto-public/pbcatalog/v2beta1/health_json.gen.go

111 lines
3.3 KiB

// 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 HealthStatus
func (this *HealthStatus) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HealthStatus
func (this *HealthStatus) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HealthChecks
func (this *HealthChecks) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HealthChecks
func (this *HealthChecks) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HealthCheck
func (this *HealthCheck) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HealthCheck
func (this *HealthCheck) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for HTTPCheck
func (this *HTTPCheck) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HTTPCheck
func (this *HTTPCheck) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for TCPCheck
func (this *TCPCheck) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for TCPCheck
func (this *TCPCheck) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for UDPCheck
func (this *UDPCheck) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for UDPCheck
func (this *UDPCheck) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for GRPCCheck
func (this *GRPCCheck) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for GRPCCheck
func (this *GRPCCheck) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for OSServiceCheck
func (this *OSServiceCheck) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for OSServiceCheck
func (this *OSServiceCheck) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for CheckTLSConfig
func (this *CheckTLSConfig) MarshalJSON() ([]byte, error) {
str, err := HealthMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CheckTLSConfig
func (this *CheckTLSConfig) UnmarshalJSON(b []byte) error {
return HealthUnmarshaler.Unmarshal(b, this)
}
var (
HealthMarshaler = &protojson.MarshalOptions{}
HealthUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)