luci: go.chromium.org/luci/examples/appengine/helloworld_standard/proto Index | Files

package helloworld

import "go.chromium.org/luci/examples/appengine/helloworld_standard/proto"

Index

Package Files

generate.go greeterserver_dec.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 DecoratedGreeter Uses

type DecoratedGreeter struct {
    // Service is the service to decorate.
    Service GreeterServer
    // Prelude is called for each method before forwarding the call to Service.
    // If Prelude returns an error, then the call is skipped and the error is
    // processed via the Postlude (if one is defined), or it is returned directly.
    Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
    // Postlude is called for each method after Service has processed the call, or
    // after the Prelude has returned an error. This takes the the Service's
    // response proto (which may be nil) and/or any error. The decorated
    // service will return the response (possibly mutated) and error that Postlude
    // returns.
    Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedGreeter) SayHello Uses

func (s *DecoratedGreeter) SayHello(c context.Context, req *HelloRequest) (rsp *HelloReply, err error)

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

func NewGreeterPRPCClient Uses

func NewGreeterPRPCClient(client *prpc.Client) 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 (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                 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 (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

Package helloworld imports 8 packages (graph) and is imported by 2 packages. Updated 2018-12-19. Refresh now. Tools for package owners.