luci: go.chromium.org/luci/grpc/prpc/talk/helloworld/proto Index | Files

package helloworld

import "go.chromium.org/luci/grpc/prpc/talk/helloworld/proto"

Index

Package Files

generate.go helloworld.pb.go pb.discovery.go

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterGreeterServer Uses

func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)

type GreeterClient Uses

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

GreeterClient is the client API for Greeter service.

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

func NewGreeterClient Uses

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

func NewGreeterPRPCClient Uses

func NewGreeterPRPCClient(client *prpc.Client) GreeterClient

type GreeterServer Uses

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

GreeterServer is the server API for Greeter service.

type HelloReply Uses

type HelloReply struct {
    // Message is the greeting text.
    Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

HelloReply contains a greeting.

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

func (*HelloReply) XXX_DiscardUnknown Uses

func (m *HelloReply) XXX_DiscardUnknown()

func (*HelloReply) XXX_Marshal Uses

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

func (*HelloReply) XXX_Merge Uses

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

func (*HelloReply) XXX_Size Uses

func (m *HelloReply) XXX_Size() int

func (*HelloReply) XXX_Unmarshal Uses

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

type HelloRequest Uses

type HelloRequest struct {
    // Name is the name of the person to greet.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

HelloRequest contains 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

func (*HelloRequest) XXX_DiscardUnknown Uses

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal Uses

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

func (*HelloRequest) XXX_Merge Uses

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

func (*HelloRequest) XXX_Size Uses

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal Uses

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

type UnimplementedGreeterServer Uses

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) SayHello Uses

func (*UnimplementedGreeterServer) SayHello(ctx context.Context, req *HelloRequest) (*HelloReply, error)

Package helloworld imports 10 packages (graph) and is imported by 1 packages. Updated 2019-12-10. Refresh now. Tools for package owners.