mirror of https://github.com/status-im/consul.git
23 lines
653 B
Go
23 lines
653 B
Go
|
// Code generated by protoc-json-shim. DO NOT EDIT.
|
||
|
package pbproxystate
|
||
|
|
||
|
import (
|
||
|
protojson "google.golang.org/protobuf/encoding/protojson"
|
||
|
)
|
||
|
|
||
|
// MarshalJSON is a custom marshaler for EscapeHatches
|
||
|
func (this *EscapeHatches) MarshalJSON() ([]byte, error) {
|
||
|
str, err := EscapeHatchesMarshaler.Marshal(this)
|
||
|
return []byte(str), err
|
||
|
}
|
||
|
|
||
|
// UnmarshalJSON is a custom unmarshaler for EscapeHatches
|
||
|
func (this *EscapeHatches) UnmarshalJSON(b []byte) error {
|
||
|
return EscapeHatchesUnmarshaler.Unmarshal(b, this)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
EscapeHatchesMarshaler = &protojson.MarshalOptions{}
|
||
|
EscapeHatchesUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
||
|
)
|