dnsresolver

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL