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.

67 lines
1.9 KiB

// Code generated by protoc-json-shim. DO NOT EDIT.
package pbacl
import (
protojson "google.golang.org/protobuf/encoding/protojson"
)
// MarshalJSON is a custom marshaler for LogoutResponse
func (this *LogoutResponse) MarshalJSON() ([]byte, error) {
str, err := AclMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LogoutResponse
func (this *LogoutResponse) UnmarshalJSON(b []byte) error {
return AclUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for LoginRequest
func (this *LoginRequest) MarshalJSON() ([]byte, error) {
str, err := AclMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LoginRequest
func (this *LoginRequest) UnmarshalJSON(b []byte) error {
return AclUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for LoginResponse
func (this *LoginResponse) MarshalJSON() ([]byte, error) {
str, err := AclMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LoginResponse
func (this *LoginResponse) UnmarshalJSON(b []byte) error {
return AclUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for LoginToken
func (this *LoginToken) MarshalJSON() ([]byte, error) {
str, err := AclMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LoginToken
func (this *LoginToken) UnmarshalJSON(b []byte) error {
return AclUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for LogoutRequest
func (this *LogoutRequest) MarshalJSON() ([]byte, error) {
str, err := AclMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for LogoutRequest
func (this *LogoutRequest) UnmarshalJSON(b []byte) error {
return AclUnmarshaler.Unmarshal(b, this)
}
var (
AclMarshaler = &protojson.MarshalOptions{}
AclUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)