foo

package
v0.99.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFooServer

func RegisterFooServer(s *grpc.Server, srv FooServer)

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

func (*DoRequest) GetTimestamp

func (m *DoRequest) GetTimestamp() *timestamp.Timestamp

func (*DoRequest) ProtoMessage

func (*DoRequest) ProtoMessage()

func (*DoRequest) Reset

func (m *DoRequest) Reset()

func (*DoRequest) String

func (m *DoRequest) String() string

func (*DoRequest) XXX_DiscardUnknown

func (m *DoRequest) XXX_DiscardUnknown()

func (*DoRequest) XXX_Marshal

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

func (*DoRequest) XXX_Merge

func (m *DoRequest) XXX_Merge(src proto.Message)

func (*DoRequest) XXX_Size

func (m *DoRequest) XXX_Size() int

func (*DoRequest) XXX_Unmarshal

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

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

type FooServer

type FooServer interface {
	Do(context.Context, *DoRequest) (*internal.Empty, error)
}

FooServer is the server API for Foo service.

type UnimplementedFooServer

type UnimplementedFooServer struct {
}

UnimplementedFooServer can be embedded to have forward compatible implementations.

func (*UnimplementedFooServer) Do

Jump to

Keyboard shortcuts

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