bar

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 bar 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 RegisterBarServer

func RegisterBarServer(s *grpc.Server, srv BarServer)

Types

type BarClient

type BarClient interface {
	Do(ctx context.Context, in *DoRequest, opts ...grpc.CallOption) (*internal.Empty, error)
}

BarClient is the client API for Bar service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBarClient

func NewBarClient(cc grpc.ClientConnInterface) BarClient

type BarServer

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

BarServer is the server API for Bar service.

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 UnimplementedBarServer

type UnimplementedBarServer struct {
}

UnimplementedBarServer can be embedded to have forward compatible implementations.

func (*UnimplementedBarServer) Do

Jump to

Keyboard shortcuts

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