person_service

package
v0.0.0-...-fc3dce1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_person_service_proto protoreflect.FileDescriptor

Functions

func RegisterPersonServiceServer

func RegisterPersonServiceServer(s *grpc.Server, srv PersonServiceServer)

Types

type ListPersonsRequest

type ListPersonsRequest struct {
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPersonsRequest) Descriptor deprecated

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

Deprecated: Use ListPersonsRequest.ProtoReflect.Descriptor instead.

func (*ListPersonsRequest) GetPageSize

func (x *ListPersonsRequest) GetPageSize() int32

func (*ListPersonsRequest) ProtoMessage

func (*ListPersonsRequest) ProtoMessage()

func (*ListPersonsRequest) ProtoReflect

func (x *ListPersonsRequest) ProtoReflect() protoreflect.Message

func (*ListPersonsRequest) Reset

func (x *ListPersonsRequest) Reset()

func (*ListPersonsRequest) String

func (x *ListPersonsRequest) String() string

type ListPersonsResponse

type ListPersonsResponse struct {
	Persons []*Person `protobuf:"bytes,1,rep,name=persons,proto3" json:"persons,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPersonsResponse) Descriptor deprecated

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

Deprecated: Use ListPersonsResponse.ProtoReflect.Descriptor instead.

func (*ListPersonsResponse) GetPersons

func (x *ListPersonsResponse) GetPersons() []*Person

func (*ListPersonsResponse) ProtoMessage

func (*ListPersonsResponse) ProtoMessage()

func (*ListPersonsResponse) ProtoReflect

func (x *ListPersonsResponse) ProtoReflect() protoreflect.Message

func (*ListPersonsResponse) Reset

func (x *ListPersonsResponse) Reset()

func (*ListPersonsResponse) String

func (x *ListPersonsResponse) String() string

type Person

type Person struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetEmail

func (x *Person) GetEmail() string

func (*Person) GetId

func (x *Person) GetId() string

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

func (x *Person) ProtoReflect() protoreflect.Message

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type PersonServiceClient

type PersonServiceClient interface {
	List(ctx context.Context, in *ListPersonsRequest, opts ...grpc.CallOption) (*ListPersonsResponse, error)
}

PersonServiceClient is the client API for PersonService service.

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

type PersonServiceServer

type PersonServiceServer interface {
	List(context.Context, *ListPersonsRequest) (*ListPersonsResponse, error)
}

PersonServiceServer is the server API for PersonService service.

type UnimplementedPersonServiceServer

type UnimplementedPersonServiceServer struct {
}

UnimplementedPersonServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPersonServiceServer) List

Jump to

Keyboard shortcuts

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