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