private

package
v0.0.0-...-d095f68 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Person_Employment_name = map[int32]string{
		0: "UNDEFINED",
		1: "FULL_TIME",
		2: "PART_TIME",
		3: "UNEMPLOYED",
	}
	Person_Employment_value = map[string]int32{
		"UNDEFINED":  0,
		"FULL_TIME":  1,
		"PART_TIME":  2,
		"UNEMPLOYED": 3,
	}
)

Enum value maps for Person_Employment.

View Source
var File_private_service_proto protoreflect.FileDescriptor
View Source
var People_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "example.private.People",
	HandlerType: (*PeopleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _People_Create_Handler,
		},
		{
			MethodName: "Fetch",
			Handler:    _People_Fetch_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _People_Delete_Handler,
		},
		{
			MethodName: "List",
			Handler:    _People_List_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _People_Update_Handler,
		},
		{
			MethodName: "Batch",
			Handler:    _People_Batch_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _People_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "private/service.proto",
}

People_ServiceDesc is the grpc.ServiceDesc for People service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPeopleServer

func RegisterPeopleServer(s grpc.ServiceRegistrar, srv PeopleServer)

Types

type BatchRequest

type BatchRequest struct {
	Creates []*CreateRequest `protobuf:"bytes,1,rep,name=creates,proto3" json:"creates,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchRequest) Descriptor deprecated

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

Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead.

func (*BatchRequest) GetCreates

func (x *BatchRequest) GetCreates() []*CreateRequest

func (*BatchRequest) ProtoMessage

func (*BatchRequest) ProtoMessage()

func (*BatchRequest) ProtoReflect

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

func (*BatchRequest) Reset

func (x *BatchRequest) Reset()

func (*BatchRequest) String

func (x *BatchRequest) String() string

type BatchResponse

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

func (*BatchResponse) Descriptor deprecated

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

Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead.

func (*BatchResponse) GetPeople

func (x *BatchResponse) GetPeople() []*Person

func (*BatchResponse) ProtoMessage

func (*BatchResponse) ProtoMessage()

func (*BatchResponse) ProtoReflect

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

func (*BatchResponse) Reset

func (x *BatchResponse) Reset()

func (*BatchResponse) String

func (x *BatchResponse) String() string

type Coding

type Coding struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*Coding) Descriptor deprecated

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

Deprecated: Use Coding.ProtoReflect.Descriptor instead.

func (*Coding) GetLanguage

func (x *Coding) GetLanguage() string

func (*Coding) ProtoMessage

func (*Coding) ProtoMessage()

func (*Coding) ProtoReflect

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

func (*Coding) Reset

func (x *Coding) Reset()

func (*Coding) String

func (x *Coding) String() string

type CreateRequest

type CreateRequest struct {
	Id         string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName  string            `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName   string            `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	FullName   string            `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Age        int64             `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
	Employment Person_Employment `protobuf:"varint,6,opt,name=employment,proto3,enum=example.private.Person_Employment" json:"employment,omitempty"`
	Hobby      *Hobby            `protobuf:"bytes,7,opt,name=hobby,proto3" json:"hobby,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetAge

func (x *CreateRequest) GetAge() int64

func (*CreateRequest) GetEmployment

func (x *CreateRequest) GetEmployment() Person_Employment

func (*CreateRequest) GetFirstName

func (x *CreateRequest) GetFirstName() string

func (*CreateRequest) GetFullName

func (x *CreateRequest) GetFullName() string

func (*CreateRequest) GetHobby

func (x *CreateRequest) GetHobby() *Hobby

func (*CreateRequest) GetId

func (x *CreateRequest) GetId() string

func (*CreateRequest) GetLastName

func (x *CreateRequest) GetLastName() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetPerson

func (x *CreateResponse) GetPerson() *Person

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type Cycling

type Cycling struct {
	Style string `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"`
	// contains filtered or unexported fields
}

func (*Cycling) Descriptor deprecated

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

Deprecated: Use Cycling.ProtoReflect.Descriptor instead.

func (*Cycling) GetStyle

func (x *Cycling) GetStyle() string

func (*Cycling) ProtoMessage

func (*Cycling) ProtoMessage()

func (*Cycling) ProtoReflect

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

func (*Cycling) Reset

func (x *Cycling) Reset()

func (*Cycling) String

func (x *Cycling) String() string

type DeleteRequest

type DeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetPerson

func (x *DeleteResponse) GetPerson() *Person

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type FetchRequest

type FetchRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchRequest) Descriptor deprecated

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

Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.

func (*FetchRequest) GetId

func (x *FetchRequest) GetId() string

func (*FetchRequest) ProtoMessage

func (*FetchRequest) ProtoMessage()

func (*FetchRequest) ProtoReflect

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

func (*FetchRequest) Reset

func (x *FetchRequest) Reset()

func (*FetchRequest) String

func (x *FetchRequest) String() string

type FetchResponse

type FetchResponse struct {
	Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchResponse) Descriptor deprecated

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

Deprecated: Use FetchResponse.ProtoReflect.Descriptor instead.

func (*FetchResponse) GetPerson

func (x *FetchResponse) GetPerson() *Person

func (*FetchResponse) ProtoMessage

func (*FetchResponse) ProtoMessage()

func (*FetchResponse) ProtoReflect

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

func (*FetchResponse) Reset

func (x *FetchResponse) Reset()

func (*FetchResponse) String

func (x *FetchResponse) String() string

type Hobby

type Hobby struct {

	// Types that are assignable to Type:
	//	*Hobby_Coding
	//	*Hobby_Reading
	//	*Hobby_Cycling
	Type isHobby_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Hobby) Descriptor deprecated

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

Deprecated: Use Hobby.ProtoReflect.Descriptor instead.

func (*Hobby) GetCoding

func (x *Hobby) GetCoding() *Coding

func (*Hobby) GetCycling

func (x *Hobby) GetCycling() *Cycling

func (*Hobby) GetReading

func (x *Hobby) GetReading() *Reading

func (*Hobby) GetType

func (m *Hobby) GetType() isHobby_Type

func (*Hobby) ProtoMessage

func (*Hobby) ProtoMessage()

func (*Hobby) ProtoReflect

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

func (*Hobby) Reset

func (x *Hobby) Reset()

func (*Hobby) String

func (x *Hobby) String() string

type Hobby_Coding

type Hobby_Coding struct {
	Coding *Coding `protobuf:"bytes,1,opt,name=coding,proto3,oneof"`
}

type Hobby_Cycling

type Hobby_Cycling struct {
	Cycling *Cycling `protobuf:"bytes,3,opt,name=cycling,proto3,oneof"`
}

type Hobby_Reading

type Hobby_Reading struct {
	Reading *Reading `protobuf:"bytes,2,opt,name=reading,proto3,oneof"`
}

type ListRequest

type ListRequest struct {
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

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

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetPeople

func (x *ListResponse) GetPeople() []*Person

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type PeopleClient

type PeopleClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Fetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*FetchResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}

PeopleClient is the client API for People service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPeopleClient

func NewPeopleClient(cc grpc.ClientConnInterface) PeopleClient

type PeopleServer

PeopleServer is the server API for People service. All implementations must embed UnimplementedPeopleServer for forward compatibility

type Person

type Person struct {
	Id         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName  string                 `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName   string                 `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	FullName   string                 `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Age        int64                  `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
	Employment Person_Employment      `protobuf:"varint,6,opt,name=employment,proto3,enum=example.private.Person_Employment" json:"employment,omitempty"`
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt  *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	Hobby      *Hobby                 `protobuf:"bytes,10,opt,name=hobby,proto3" json:"hobby,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAge

func (x *Person) GetAge() int64

func (*Person) GetCreatedAt

func (x *Person) GetCreatedAt() *timestamppb.Timestamp

func (*Person) GetDeletedAt

func (x *Person) GetDeletedAt() *timestamppb.Timestamp

func (*Person) GetEmployment

func (x *Person) GetEmployment() Person_Employment

func (*Person) GetFirstName

func (x *Person) GetFirstName() string

func (*Person) GetFullName

func (x *Person) GetFullName() string

func (*Person) GetHobby

func (x *Person) GetHobby() *Hobby

func (*Person) GetId

func (x *Person) GetId() string

func (*Person) GetLastName

func (x *Person) GetLastName() string

func (*Person) GetUpdatedAt

func (x *Person) GetUpdatedAt() *timestamppb.Timestamp

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 Person_Employment

type Person_Employment int32
const (
	Person_UNDEFINED  Person_Employment = 0
	Person_FULL_TIME  Person_Employment = 1
	Person_PART_TIME  Person_Employment = 2
	Person_UNEMPLOYED Person_Employment = 3
)

func (Person_Employment) Descriptor

func (Person_Employment) Enum

func (Person_Employment) EnumDescriptor deprecated

func (Person_Employment) EnumDescriptor() ([]byte, []int)

Deprecated: Use Person_Employment.Descriptor instead.

func (Person_Employment) Number

func (Person_Employment) String

func (x Person_Employment) String() string

func (Person_Employment) Type

type PingRequest

type PingRequest struct {
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

type PingResponse struct {
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type Reading

type Reading struct {
	Genre string `protobuf:"bytes,1,opt,name=genre,proto3" json:"genre,omitempty"`
	// contains filtered or unexported fields
}

func (*Reading) Descriptor deprecated

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

Deprecated: Use Reading.ProtoReflect.Descriptor instead.

func (*Reading) GetGenre

func (x *Reading) GetGenre() string

func (*Reading) ProtoMessage

func (*Reading) ProtoMessage()

func (*Reading) ProtoReflect

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

func (*Reading) Reset

func (x *Reading) Reset()

func (*Reading) String

func (x *Reading) String() string

type UnimplementedPeopleServer

type UnimplementedPeopleServer struct {
}

UnimplementedPeopleServer must be embedded to have forward compatible implementations.

func (UnimplementedPeopleServer) Batch

func (UnimplementedPeopleServer) Create

func (UnimplementedPeopleServer) Delete

func (UnimplementedPeopleServer) Fetch

func (UnimplementedPeopleServer) List

func (UnimplementedPeopleServer) Ping

func (UnimplementedPeopleServer) Update

type UnsafePeopleServer

type UnsafePeopleServer interface {
	// contains filtered or unexported methods
}

UnsafePeopleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PeopleServer will result in compilation errors.

type UpdateRequest

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

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) GetPerson

func (x *UpdateRequest) GetPerson() *Person

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetPerson

func (x *UpdateResponse) GetPerson() *Person

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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