person

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPersonServer

func RegisterPersonServer(s *grpc.Server, srv PersonServer)

Types

type PersonClient

type PersonClient interface {
	SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error)
}

PersonClient is the client API for Person service.

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

func NewPersonClient

func NewPersonClient(cc *grpc.ClientConn) PersonClient

type PersonServer

type PersonServer interface {
	SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
}

PersonServer is the server API for Person service.

type SayHelloRequest

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

func (*SayHelloRequest) Descriptor

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

func (*SayHelloRequest) GetName

func (m *SayHelloRequest) GetName() string

func (*SayHelloRequest) ProtoMessage

func (*SayHelloRequest) ProtoMessage()

func (*SayHelloRequest) Reset

func (m *SayHelloRequest) Reset()

func (*SayHelloRequest) String

func (m *SayHelloRequest) String() string

func (*SayHelloRequest) XXX_DiscardUnknown

func (m *SayHelloRequest) XXX_DiscardUnknown()

func (*SayHelloRequest) XXX_Marshal

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

func (*SayHelloRequest) XXX_Merge

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

func (*SayHelloRequest) XXX_Size

func (m *SayHelloRequest) XXX_Size() int

func (*SayHelloRequest) XXX_Unmarshal

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

type SayHelloResponse

type SayHelloResponse struct {
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SayHelloResponse) Descriptor

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

func (*SayHelloResponse) GetMsg

func (m *SayHelloResponse) GetMsg() string

func (*SayHelloResponse) ProtoMessage

func (*SayHelloResponse) ProtoMessage()

func (*SayHelloResponse) Reset

func (m *SayHelloResponse) Reset()

func (*SayHelloResponse) String

func (m *SayHelloResponse) String() string

func (*SayHelloResponse) XXX_DiscardUnknown

func (m *SayHelloResponse) XXX_DiscardUnknown()

func (*SayHelloResponse) XXX_Marshal

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

func (*SayHelloResponse) XXX_Merge

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

func (*SayHelloResponse) XXX_Size

func (m *SayHelloResponse) XXX_Size() int

func (*SayHelloResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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