grpc: google.golang.org/grpc/examples/helloworld/helloworld Index | Files

package helloworld

import "google.golang.org/grpc/examples/helloworld/helloworld"

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)
}

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

type GreeterServer Uses

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

GreeterServer is the server API for Greeter service.

type HelloReply Uses

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

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

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 (dst *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                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

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 (dst *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

Package helloworld imports 5 packages (graph) and is imported by 70 packages. Updated 2018-06-25. Refresh now. Tools for package owners.