Documentation ¶
Index ¶
- Variables
- func RegisterHopServer(s grpc.ServiceRegistrar, srv HopServer)
- type HopClient
- type HopServer
- type SelectReply
- type SelectRequest
- func (*SelectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SelectRequest) GetAddr() string
- func (x *SelectRequest) GetClient() string
- func (x *SelectRequest) GetHost() string
- func (x *SelectRequest) GetNetwork() string
- func (x *SelectRequest) GetPath() string
- func (x *SelectRequest) GetSrc() string
- func (*SelectRequest) ProtoMessage()
- func (x *SelectRequest) ProtoReflect() protoreflect.Message
- func (x *SelectRequest) Reset()
- func (x *SelectRequest) String() string
- type UnimplementedHopServer
- type UnsafeHopServer
Constants ¶
This section is empty.
Variables ¶
var File_hop_proto protoreflect.FileDescriptor
var Hop_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Hop", HandlerType: (*HopServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Select", Handler: _Hop_Select_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hop.proto", }
Hop_ServiceDesc is the grpc.ServiceDesc for Hop service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHopServer ¶
func RegisterHopServer(s grpc.ServiceRegistrar, srv HopServer)
Types ¶
type HopClient ¶
type HopClient interface {
Select(ctx context.Context, in *SelectRequest, opts ...grpc.CallOption) (*SelectReply, error)
}
HopClient is the client API for Hop 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 NewHopClient ¶
func NewHopClient(cc grpc.ClientConnInterface) HopClient
type HopServer ¶
type HopServer interface { Select(context.Context, *SelectRequest) (*SelectReply, error) // contains filtered or unexported methods }
HopServer is the server API for Hop service. All implementations must embed UnimplementedHopServer for forward compatibility
type SelectReply ¶
type SelectReply struct { Node []byte `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*SelectReply) Descriptor
deprecated
func (*SelectReply) Descriptor() ([]byte, []int)
Deprecated: Use SelectReply.ProtoReflect.Descriptor instead.
func (*SelectReply) GetNode ¶
func (x *SelectReply) GetNode() []byte
func (*SelectReply) ProtoMessage ¶
func (*SelectReply) ProtoMessage()
func (*SelectReply) ProtoReflect ¶
func (x *SelectReply) ProtoReflect() protoreflect.Message
func (*SelectReply) Reset ¶
func (x *SelectReply) Reset()
func (*SelectReply) String ¶
func (x *SelectReply) String() string
type SelectRequest ¶
type SelectRequest struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` Client string `protobuf:"bytes,4,opt,name=client,proto3" json:"client,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Src string `protobuf:"bytes,6,opt,name=src,proto3" json:"src,omitempty"` // contains filtered or unexported fields }
func (*SelectRequest) Descriptor
deprecated
func (*SelectRequest) Descriptor() ([]byte, []int)
Deprecated: Use SelectRequest.ProtoReflect.Descriptor instead.
func (*SelectRequest) GetAddr ¶
func (x *SelectRequest) GetAddr() string
func (*SelectRequest) GetClient ¶
func (x *SelectRequest) GetClient() string
func (*SelectRequest) GetHost ¶
func (x *SelectRequest) GetHost() string
func (*SelectRequest) GetNetwork ¶
func (x *SelectRequest) GetNetwork() string
func (*SelectRequest) GetPath ¶
func (x *SelectRequest) GetPath() string
func (*SelectRequest) GetSrc ¶
func (x *SelectRequest) GetSrc() string
func (*SelectRequest) ProtoMessage ¶
func (*SelectRequest) ProtoMessage()
func (*SelectRequest) ProtoReflect ¶
func (x *SelectRequest) ProtoReflect() protoreflect.Message
func (*SelectRequest) Reset ¶
func (x *SelectRequest) Reset()
func (*SelectRequest) String ¶
func (x *SelectRequest) String() string
type UnimplementedHopServer ¶
type UnimplementedHopServer struct { }
UnimplementedHopServer must be embedded to have forward compatible implementations.
func (UnimplementedHopServer) Select ¶
func (UnimplementedHopServer) Select(context.Context, *SelectRequest) (*SelectReply, error)
type UnsafeHopServer ¶
type UnsafeHopServer interface {
// contains filtered or unexported methods
}
UnsafeHopServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HopServer will result in compilation errors.