proto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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

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.

Jump to

Keyboard shortcuts

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