pbhello

package
v0.0.0-...-2f326a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreetingServiceServer

func RegisterGreetingServiceServer(s *grpc.Server, srv GreetingServiceServer)

Types

type GreetingServiceClient

type GreetingServiceClient interface {
	Greeting(ctx context.Context, in *Person, opts ...grpc.CallOption) (*GreetingText, error)
}

GreetingServiceClient is the client API for GreetingService service.

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

func NewGreetingServiceClient

func NewGreetingServiceClient(cc *grpc.ClientConn) GreetingServiceClient

type GreetingServiceServer

type GreetingServiceServer interface {
	Greeting(context.Context, *Person) (*GreetingText, error)
}

GreetingServiceServer is the server API for GreetingService service.

type GreetingText

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

func (*GreetingText) Descriptor

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

func (*GreetingText) GetText

func (m *GreetingText) GetText() string

func (*GreetingText) ProtoMessage

func (*GreetingText) ProtoMessage()

func (*GreetingText) Reset

func (m *GreetingText) Reset()

func (*GreetingText) String

func (m *GreetingText) String() string

func (*GreetingText) XXX_DiscardUnknown

func (m *GreetingText) XXX_DiscardUnknown()

func (*GreetingText) XXX_Marshal

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

func (*GreetingText) XXX_Merge

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

func (*GreetingText) XXX_Size

func (m *GreetingText) XXX_Size() int

func (*GreetingText) XXX_Unmarshal

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

type Person

type Person 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:"-"`
}

func (*Person) Descriptor

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

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) String

func (m *Person) String() string

func (*Person) XXX_DiscardUnknown

func (m *Person) XXX_DiscardUnknown()

func (*Person) XXX_Marshal

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

func (*Person) XXX_Merge

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

func (*Person) XXX_Size

func (m *Person) XXX_Size() int

func (*Person) XXX_Unmarshal

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

type UnimplementedGreetingServiceServer

type UnimplementedGreetingServiceServer struct {
}

UnimplementedGreetingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreetingServiceServer) Greeting

Jump to

Keyboard shortcuts

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