Documentation ¶
Overview ¶
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Code generated by protoc-json-shim. DO NOT EDIT.
Index ¶
- Variables
- func RegisterDNSServiceServer(s grpc.ServiceRegistrar, srv DNSServiceServer)
- type CloningDNSServiceClient
- type DNSServiceClient
- type DNSServiceServer
- type IsCloningDNSServiceClient
- type Protocol
- type QueryRequest
- func (in *QueryRequest) DeepCopy() *QueryRequest
- func (in *QueryRequest) DeepCopyInterface() interface{}
- func (in *QueryRequest) DeepCopyInto(out *QueryRequest)
- func (*QueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRequest) GetMsg() []byte
- func (x *QueryRequest) GetProtocol() Protocol
- func (msg *QueryRequest) MarshalBinary() ([]byte, error)
- func (this *QueryRequest) MarshalJSON() ([]byte, error)
- func (*QueryRequest) ProtoMessage()
- func (x *QueryRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRequest) Reset()
- func (x *QueryRequest) String() string
- func (msg *QueryRequest) UnmarshalBinary(b []byte) error
- func (this *QueryRequest) UnmarshalJSON(b []byte) error
- type QueryResponse
- func (in *QueryResponse) DeepCopy() *QueryResponse
- func (in *QueryResponse) DeepCopyInterface() interface{}
- func (in *QueryResponse) DeepCopyInto(out *QueryResponse)
- func (*QueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponse) GetMsg() []byte
- func (msg *QueryResponse) MarshalBinary() ([]byte, error)
- func (this *QueryResponse) MarshalJSON() ([]byte, error)
- func (*QueryResponse) ProtoMessage()
- func (x *QueryResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResponse) Reset()
- func (x *QueryResponse) String() string
- func (msg *QueryResponse) UnmarshalBinary(b []byte) error
- func (this *QueryResponse) UnmarshalJSON(b []byte) error
- type UnimplementedDNSServiceServer
- type UnsafeDNSServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Protocol_name = map[int32]string{ 0: "PROTOCOL_UNSET_UNSPECIFIED", 1: "PROTOCOL_TCP", 2: "PROTOCOL_UDP", } Protocol_value = map[string]int32{ "PROTOCOL_UNSET_UNSPECIFIED": 0, "PROTOCOL_TCP": 1, "PROTOCOL_UDP": 2, } )
Enum value maps for Protocol.
var ( DnsMarshaler = &protojson.MarshalOptions{} DnsUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )
var DNSService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hashicorp.consul.dns.DNSService", HandlerType: (*DNSServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query", Handler: _DNSService_Query_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pbdns/dns.proto", }
DNSService_ServiceDesc is the grpc.ServiceDesc for DNSService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pbdns_dns_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDNSServiceServer ¶
func RegisterDNSServiceServer(s grpc.ServiceRegistrar, srv DNSServiceServer)
Types ¶
type CloningDNSServiceClient ¶ added in v0.5.4
type CloningDNSServiceClient struct {
DNSServiceClient
}
CloningDNSServiceClient implements the DNSServiceClient interface by wrapping another implementation and copying all protobuf messages that pass through the client. This is mainly useful to wrap the an in-process client to insulate users of that client from having to care about potential immutability of data they receive or having the server implementation mutate their internal memory.
func (CloningDNSServiceClient) IsCloningDNSServiceClient ¶ added in v0.5.4
func (c CloningDNSServiceClient) IsCloningDNSServiceClient() bool
IsCloningDNSServiceClient implements the IsCloningDNSServiceClient interface. This is only used to detect wrapped clients that would be double cloning data and prevent that.
func (CloningDNSServiceClient) Query ¶ added in v0.5.4
func (c CloningDNSServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
type DNSServiceClient ¶
type DNSServiceClient interface { // Query sends a DNS request over to Consul server and returns a DNS reply message. Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) }
DNSServiceClient is the client API for DNSService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCloningDNSServiceClient ¶ added in v0.5.4
func NewCloningDNSServiceClient(client DNSServiceClient) DNSServiceClient
func NewDNSServiceClient ¶
func NewDNSServiceClient(cc grpc.ClientConnInterface) DNSServiceClient
type DNSServiceServer ¶
type DNSServiceServer interface { // Query sends a DNS request over to Consul server and returns a DNS reply message. Query(context.Context, *QueryRequest) (*QueryResponse, error) }
DNSServiceServer is the server API for DNSService service. All implementations should embed UnimplementedDNSServiceServer for forward compatibility
type IsCloningDNSServiceClient ¶ added in v0.5.4
type IsCloningDNSServiceClient interface {
IsCloningDNSServiceClient() bool
}
IsCloningDNSServiceClient is an interface that can be used to detect that a DNSServiceClient is using the in-memory transport and has already been wrapped with a with a CloningDNSServiceClient.
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type QueryRequest ¶
type QueryRequest struct { // msg is the DNS request message. Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // protocol is the protocol of the request Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=hashicorp.consul.dns.Protocol" json:"protocol,omitempty"` // contains filtered or unexported fields }
func (*QueryRequest) DeepCopy ¶ added in v0.5.1
func (in *QueryRequest) DeepCopy() *QueryRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryRequest. Required by controller-gen.
func (*QueryRequest) DeepCopyInterface ¶ added in v0.5.1
func (in *QueryRequest) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new QueryRequest. Required by controller-gen.
func (*QueryRequest) DeepCopyInto ¶ added in v0.5.1
func (in *QueryRequest) DeepCopyInto(out *QueryRequest)
DeepCopyInto supports using QueryRequest within kubernetes types, where deepcopy-gen is used.
func (*QueryRequest) Descriptor
deprecated
func (*QueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
func (*QueryRequest) GetMsg ¶
func (x *QueryRequest) GetMsg() []byte
func (*QueryRequest) GetProtocol ¶
func (x *QueryRequest) GetProtocol() Protocol
func (*QueryRequest) MarshalBinary ¶
func (msg *QueryRequest) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler
func (*QueryRequest) MarshalJSON ¶ added in v0.5.1
func (this *QueryRequest) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for QueryRequest
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) ProtoReflect ¶
func (x *QueryRequest) ProtoReflect() protoreflect.Message
func (*QueryRequest) Reset ¶
func (x *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (x *QueryRequest) String() string
func (*QueryRequest) UnmarshalBinary ¶
func (msg *QueryRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*QueryRequest) UnmarshalJSON ¶ added in v0.5.1
func (this *QueryRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for QueryRequest
type QueryResponse ¶
type QueryResponse struct { // msg is the DNS reply message. Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*QueryResponse) DeepCopy ¶ added in v0.5.1
func (in *QueryResponse) DeepCopy() *QueryResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponse. Required by controller-gen.
func (*QueryResponse) DeepCopyInterface ¶ added in v0.5.1
func (in *QueryResponse) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponse. Required by controller-gen.
func (*QueryResponse) DeepCopyInto ¶ added in v0.5.1
func (in *QueryResponse) DeepCopyInto(out *QueryResponse)
DeepCopyInto supports using QueryResponse within kubernetes types, where deepcopy-gen is used.
func (*QueryResponse) Descriptor
deprecated
func (*QueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.
func (*QueryResponse) GetMsg ¶
func (x *QueryResponse) GetMsg() []byte
func (*QueryResponse) MarshalBinary ¶
func (msg *QueryResponse) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler
func (*QueryResponse) MarshalJSON ¶ added in v0.5.1
func (this *QueryResponse) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for QueryResponse
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) ProtoReflect ¶
func (x *QueryResponse) ProtoReflect() protoreflect.Message
func (*QueryResponse) Reset ¶
func (x *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (x *QueryResponse) String() string
func (*QueryResponse) UnmarshalBinary ¶
func (msg *QueryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*QueryResponse) UnmarshalJSON ¶ added in v0.5.1
func (this *QueryResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for QueryResponse
type UnimplementedDNSServiceServer ¶
type UnimplementedDNSServiceServer struct { }
UnimplementedDNSServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDNSServiceServer) Query ¶
func (UnimplementedDNSServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error)
type UnsafeDNSServiceServer ¶
type UnsafeDNSServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDNSServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DNSServiceServer will result in compilation errors.