Documentation ¶
Overview ¶
Package foo demonstrates a protobuf package.
We include a doc.go file in here to let protobuild know to place a Go/Protobuf package.
Index ¶
- func RegisterFooServer(s *grpc.Server, srv FooServer)
- type DoRequest
- func (*DoRequest) Descriptor() ([]byte, []int)
- func (m *DoRequest) GetTimestamp() *timestamp.Timestamp
- func (*DoRequest) ProtoMessage()
- func (m *DoRequest) Reset()
- func (m *DoRequest) String() string
- func (m *DoRequest) XXX_DiscardUnknown()
- func (m *DoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoRequest) XXX_Merge(src proto.Message)
- func (m *DoRequest) XXX_Size() int
- func (m *DoRequest) XXX_Unmarshal(b []byte) error
- type FooClient
- type FooServer
- type UnimplementedFooServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFooServer ¶
Types ¶
type DoRequest ¶
type DoRequest struct { Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DoRequest) Descriptor ¶
func (*DoRequest) GetTimestamp ¶
func (*DoRequest) ProtoMessage ¶
func (*DoRequest) ProtoMessage()
func (*DoRequest) XXX_DiscardUnknown ¶
func (m *DoRequest) XXX_DiscardUnknown()
func (*DoRequest) XXX_Marshal ¶
func (*DoRequest) XXX_Unmarshal ¶
type FooClient ¶
type FooClient interface {
Do(ctx context.Context, in *DoRequest, opts ...grpc.CallOption) (*internal.Empty, error)
}
FooClient is the client API for Foo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFooClient ¶
func NewFooClient(cc grpc.ClientConnInterface) FooClient
Click to show internal directories.
Click to hide internal directories.