greetpb

package
v0.0.0-...-bc4d4e1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 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 {
	// Unary
	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.

type GreetServiceServer

type GreetServiceServer interface {
	// Unary
	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