examplepb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (dst *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

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.

Jump to

Keyboard shortcuts

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