Documentation ¶
Index ¶
- Variables
- func RegisterDnsResolverServer(s grpc.ServiceRegistrar, srv DnsResolverServer)
- type DnsResolverClient
- type DnsResolverServer
- type ResolveReply
- func (*ResolveReply) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveReply) GetError() *v11.Error
- func (x *ResolveReply) GetHost() string
- func (x *ResolveReply) GetPort() int32
- func (x *ResolveReply) GetRawIp() []byte
- func (x *ResolveReply) GetTextualIp() string
- func (*ResolveReply) ProtoMessage()
- func (x *ResolveReply) ProtoReflect() protoreflect.Message
- func (x *ResolveReply) Reset()
- func (x *ResolveReply) String() string
- type ResolveRequest
- func (*ResolveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveRequest) GetCollectionRef() *v1.ConfigRef
- func (x *ResolveRequest) GetExecutionId() string
- func (x *ResolveRequest) GetHost() string
- func (x *ResolveRequest) GetPort() int32
- func (*ResolveRequest) ProtoMessage()
- func (x *ResolveRequest) ProtoReflect() protoreflect.Message
- func (x *ResolveRequest) Reset()
- func (x *ResolveRequest) String() string
- type UnimplementedDnsResolverServer
- type UnsafeDnsResolverServer
Constants ¶
This section is empty.
Variables ¶
var DnsResolver_ServiceDesc = grpc.ServiceDesc{ ServiceName: "veidemann.api.dnsresolver.v1.DnsResolver", HandlerType: (*DnsResolverServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "resolve", Handler: _DnsResolver_Resolve_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dnsresolver/v1/dnsresolver.proto", }
DnsResolver_ServiceDesc is the grpc.ServiceDesc for DnsResolver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dnsresolver_v1_dnsresolver_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDnsResolverServer ¶
func RegisterDnsResolverServer(s grpc.ServiceRegistrar, srv DnsResolverServer)
Types ¶
type DnsResolverClient ¶
type DnsResolverClient interface {
Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveReply, error)
}
DnsResolverClient is the client API for DnsResolver 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 NewDnsResolverClient ¶
func NewDnsResolverClient(cc grpc.ClientConnInterface) DnsResolverClient
type DnsResolverServer ¶
type DnsResolverServer interface { Resolve(context.Context, *ResolveRequest) (*ResolveReply, error) // contains filtered or unexported methods }
DnsResolverServer is the server API for DnsResolver service. All implementations must embed UnimplementedDnsResolverServer for forward compatibility
type ResolveReply ¶
type ResolveReply struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` TextualIp string `protobuf:"bytes,3,opt,name=textual_ip,json=textualIp,proto3" json:"textual_ip,omitempty"` RawIp []byte `protobuf:"bytes,4,opt,name=raw_ip,json=rawIp,proto3" json:"raw_ip,omitempty"` Error *v11.Error `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ResolveReply) Descriptor
deprecated
func (*ResolveReply) Descriptor() ([]byte, []int)
Deprecated: Use ResolveReply.ProtoReflect.Descriptor instead.
func (*ResolveReply) GetError ¶
func (x *ResolveReply) GetError() *v11.Error
func (*ResolveReply) GetHost ¶
func (x *ResolveReply) GetHost() string
func (*ResolveReply) GetPort ¶
func (x *ResolveReply) GetPort() int32
func (*ResolveReply) GetRawIp ¶
func (x *ResolveReply) GetRawIp() []byte
func (*ResolveReply) GetTextualIp ¶
func (x *ResolveReply) GetTextualIp() string
func (*ResolveReply) ProtoMessage ¶
func (*ResolveReply) ProtoMessage()
func (*ResolveReply) ProtoReflect ¶
func (x *ResolveReply) ProtoReflect() protoreflect.Message
func (*ResolveReply) Reset ¶
func (x *ResolveReply) Reset()
func (*ResolveReply) String ¶
func (x *ResolveReply) String() string
type ResolveRequest ¶
type ResolveRequest struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` ExecutionId string `protobuf:"bytes,6,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` CollectionRef *v1.ConfigRef `protobuf:"bytes,7,opt,name=collection_ref,json=collectionRef,proto3" json:"collection_ref,omitempty"` // contains filtered or unexported fields }
func (*ResolveRequest) Descriptor
deprecated
func (*ResolveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.
func (*ResolveRequest) GetCollectionRef ¶
func (x *ResolveRequest) GetCollectionRef() *v1.ConfigRef
func (*ResolveRequest) GetExecutionId ¶
func (x *ResolveRequest) GetExecutionId() string
func (*ResolveRequest) GetHost ¶
func (x *ResolveRequest) GetHost() string
func (*ResolveRequest) GetPort ¶
func (x *ResolveRequest) GetPort() int32
func (*ResolveRequest) ProtoMessage ¶
func (*ResolveRequest) ProtoMessage()
func (*ResolveRequest) ProtoReflect ¶
func (x *ResolveRequest) ProtoReflect() protoreflect.Message
func (*ResolveRequest) Reset ¶
func (x *ResolveRequest) Reset()
func (*ResolveRequest) String ¶
func (x *ResolveRequest) String() string
type UnimplementedDnsResolverServer ¶
type UnimplementedDnsResolverServer struct { }
UnimplementedDnsResolverServer must be embedded to have forward compatible implementations.
func (UnimplementedDnsResolverServer) Resolve ¶
func (UnimplementedDnsResolverServer) Resolve(context.Context, *ResolveRequest) (*ResolveReply, error)
type UnsafeDnsResolverServer ¶
type UnsafeDnsResolverServer interface {
// contains filtered or unexported methods
}
UnsafeDnsResolverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DnsResolverServer will result in compilation errors.