proto

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resolver_proto protoreflect.FileDescriptor
View Source
var Resolver_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Resolver",
	HandlerType: (*ResolverServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Resolve",
			Handler:    _Resolver_Resolve_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "resolver.proto",
}

Resolver_ServiceDesc is the grpc.ServiceDesc for Resolver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterResolverServer

func RegisterResolverServer(s grpc.ServiceRegistrar, srv ResolverServer)

Types

type ResolveReply

type ResolveReply struct {
	Ips []string `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips,omitempty"`
	Ok  bool     `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveReply) Descriptor deprecated

func (*ResolveReply) Descriptor() ([]byte, []int)

Deprecated: Use ResolveReply.ProtoReflect.Descriptor instead.

func (*ResolveReply) GetIps

func (x *ResolveReply) GetIps() []string

func (*ResolveReply) GetOk

func (x *ResolveReply) GetOk() bool

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 {
	Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Host    string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Client  string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveRequest) Descriptor deprecated

func (*ResolveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.

func (*ResolveRequest) GetClient

func (x *ResolveRequest) GetClient() string

func (*ResolveRequest) GetHost

func (x *ResolveRequest) GetHost() string

func (*ResolveRequest) GetNetwork

func (x *ResolveRequest) GetNetwork() string

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 ResolverClient

type ResolverClient interface {
	Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveReply, error)
}

ResolverClient is the client API for Resolver 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 NewResolverClient

func NewResolverClient(cc grpc.ClientConnInterface) ResolverClient

type ResolverServer

type ResolverServer interface {
	Resolve(context.Context, *ResolveRequest) (*ResolveReply, error)
	// contains filtered or unexported methods
}

ResolverServer is the server API for Resolver service. All implementations must embed UnimplementedResolverServer for forward compatibility

type UnimplementedResolverServer

type UnimplementedResolverServer struct {
}

UnimplementedResolverServer must be embedded to have forward compatible implementations.

func (UnimplementedResolverServer) Resolve

type UnsafeResolverServer

type UnsafeResolverServer interface {
	// contains filtered or unexported methods
}

UnsafeResolverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResolverServer will result in compilation errors.

Jump to

Keyboard shortcuts

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