mirror of https://github.com/hashicorp/consul
67 lines
1.9 KiB
Go
67 lines
1.9 KiB
Go
// 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}
|
|
)
|