greetpb

package
v0.0.0-...-943c6e9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreetServiceServer

func RegisterGreetServiceServer(s *grpc.Server, srv GreetServiceServer)

Types

type GreetRequest

type GreetRequest struct {
	Greeting             *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GreetRequest) Descriptor

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

func (*GreetRequest) GetGreeting

func (m *GreetRequest) GetGreeting() *Greeting

func (*GreetRequest) ProtoMessage

func (*GreetRequest) ProtoMessage()

func (*GreetRequest) Reset

func (m *GreetRequest) Reset()

func (*GreetRequest) String

func (m *GreetRequest) String() string

func (*GreetRequest) XXX_DiscardUnknown

func (m *GreetRequest) XXX_DiscardUnknown()

func (*GreetRequest) XXX_Marshal

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

func (*GreetRequest) XXX_Merge

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

func (*GreetRequest) XXX_Size

func (m *GreetRequest) XXX_Size() int

func (*GreetRequest) XXX_Unmarshal

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

type GreetResponse

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

func (*GreetResponse) Descriptor

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

func (*GreetResponse) GetResult

func (m *GreetResponse) GetResult() string

func (*GreetResponse) ProtoMessage

func (*GreetResponse) ProtoMessage()

func (*GreetResponse) Reset

func (m *GreetResponse) Reset()

func (*GreetResponse) String

func (m *GreetResponse) String() string

func (*GreetResponse) XXX_DiscardUnknown

func (m *GreetResponse) XXX_DiscardUnknown()

func (*GreetResponse) XXX_Marshal

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

func (*GreetResponse) XXX_Merge

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

func (*GreetResponse) XXX_Size

func (m *GreetResponse) XXX_Size() int

func (*GreetResponse) XXX_Unmarshal

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

type GreetServiceClient

type GreetServiceClient interface {
	Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error)
}

GreetServiceClient is the client API for GreetService service.

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

func NewGreetServiceClient

func NewGreetServiceClient(cc grpc.ClientConnInterface) GreetServiceClient

type GreetServiceServer

type GreetServiceServer interface {
	Greet(context.Context, *GreetRequest) (*GreetResponse, error)
}

GreetServiceServer is the server API for GreetService service.

type Greeting

type Greeting struct {
	FirstName            string   `protobuf:"bytes,1,opt,name=firstName,proto3" json:"firstName,omitempty"`
	LastName             string   `protobuf:"bytes,2,opt,name=lastName,proto3" json:"lastName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Greeting) Descriptor

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

func (*Greeting) GetFirstName

func (m *Greeting) GetFirstName() string

func (*Greeting) GetLastName

func (m *Greeting) GetLastName() string

func (*Greeting) ProtoMessage

func (*Greeting) ProtoMessage()

func (*Greeting) Reset

func (m *Greeting) Reset()

func (*Greeting) String

func (m *Greeting) String() string

func (*Greeting) XXX_DiscardUnknown

func (m *Greeting) XXX_DiscardUnknown()

func (*Greeting) XXX_Marshal

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

func (*Greeting) XXX_Merge

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

func (*Greeting) XXX_Size

func (m *Greeting) XXX_Size() int

func (*Greeting) XXX_Unmarshal

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

type UnimplementedGreetServiceServer

type UnimplementedGreetServiceServer struct {
}

UnimplementedGreetServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreetServiceServer) Greet

Jump to

Keyboard shortcuts

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