mirror of https://github.com/hashicorp/consul
122 lines
3.6 KiB
Go
122 lines
3.6 KiB
Go
// 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)
|
|
}
|
|
|
|
// MarshalJSON is a custom marshaler for NodeHealthStatus
|
|
func (this *NodeHealthStatus) MarshalJSON() ([]byte, error) {
|
|
str, err := HealthMarshaler.Marshal(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for NodeHealthStatus
|
|
func (this *NodeHealthStatus) UnmarshalJSON(b []byte) error {
|
|
return HealthUnmarshaler.Unmarshal(b, this)
|
|
}
|
|
|
|
var (
|
|
HealthMarshaler = &protojson.MarshalOptions{}
|
|
HealthUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
|
)
|