go.opencensus.io: go.opencensus.io/examples/grpc/proto Index | Files

package helloworld

import "go.opencensus.io/examples/grpc/proto"

Package helloworld is a generated protocol buffer package.

It is generated from these files:

helloworld.proto

It has these top-level messages:

HelloRequest
HelloReply

Index

Package Files

helloworld.pb.go

func RegisterGreeterServer Uses

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

type GreeterClient Uses

type GreeterClient interface {
    // Sends a greeting
    SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

func NewGreeterClient Uses

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterServer Uses

type GreeterServer interface {
    // Sends a greeting
    SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

type HelloReply Uses

type HelloReply struct {
    Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

The response message containing the greetings

func (*HelloReply) Descriptor Uses

func (*HelloReply) Descriptor() ([]byte, []int)

func (*HelloReply) GetMessage Uses

func (m *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage Uses

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset Uses

func (m *HelloReply) Reset()

func (*HelloReply) String Uses

func (m *HelloReply) String() string

type HelloRequest Uses

type HelloRequest struct {
    Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

The request message containing the user's name.

func (*HelloRequest) Descriptor Uses

func (*HelloRequest) Descriptor() ([]byte, []int)

func (*HelloRequest) GetName Uses

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage Uses

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset Uses

func (m *HelloRequest) Reset()

func (*HelloRequest) String Uses

func (m *HelloRequest) String() string

Package helloworld imports 5 packages (graph) and is imported by 2 packages. Updated 2018-05-04. Refresh now. Tools for package owners.