Documentation ¶
Index ¶
- func RegisterHopperServer(s *grpc.Server, srv HopperServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type HopRequest
- func (*HopRequest) Descriptor() ([]byte, []int)
- func (m *HopRequest) GetHops() int64
- func (*HopRequest) ProtoMessage()
- func (m *HopRequest) Reset()
- func (m *HopRequest) String() string
- func (m *HopRequest) XXX_DiscardUnknown()
- func (m *HopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HopRequest) XXX_Merge(src proto.Message)
- func (m *HopRequest) XXX_Size() int
- func (m *HopRequest) XXX_Unmarshal(b []byte) error
- type HopperClient
- type HopperServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHopperServer ¶
func RegisterHopperServer(s *grpc.Server, srv HopperServer)
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type HopRequest ¶
type HopRequest struct { Hops int64 `protobuf:"varint,1,opt,name=hops,proto3" json:"hops,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HopRequest) Descriptor ¶
func (*HopRequest) Descriptor() ([]byte, []int)
func (*HopRequest) GetHops ¶
func (m *HopRequest) GetHops() int64
func (*HopRequest) ProtoMessage ¶
func (*HopRequest) ProtoMessage()
func (*HopRequest) Reset ¶
func (m *HopRequest) Reset()
func (*HopRequest) String ¶
func (m *HopRequest) String() string
func (*HopRequest) XXX_DiscardUnknown ¶
func (m *HopRequest) XXX_DiscardUnknown()
func (*HopRequest) XXX_Marshal ¶
func (m *HopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HopRequest) XXX_Merge ¶
func (dst *HopRequest) XXX_Merge(src proto.Message)
func (*HopRequest) XXX_Size ¶
func (m *HopRequest) XXX_Size() int
func (*HopRequest) XXX_Unmarshal ¶
func (m *HopRequest) XXX_Unmarshal(b []byte) error
type HopperClient ¶
type HopperClient interface {
Hop(ctx context.Context, in *HopRequest, opts ...grpc.CallOption) (*Empty, error)
}
HopperClient is the client API for Hopper service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHopperClient ¶
func NewHopperClient(cc *grpc.ClientConn) HopperClient
type HopperServer ¶
type HopperServer interface {
Hop(context.Context, *HopRequest) (*Empty, error)
}
HopperServer is the server API for Hopper service.
Click to show internal directories.
Click to hide internal directories.