Versions in this module Expand all Collapse all v0 v0.1.1 Jan 13, 2023 v0.1.0 Jan 12, 2023 Changes in this version + var File_office_proto protoreflect.FileDescriptor + var Service_ServiceDesc = grpc.ServiceDesc + func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer) + type CreateRequest struct + AccountId int64 + Name string + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (x *CreateRequest) GetAccountId() int64 + func (x *CreateRequest) GetName() string + func (x *CreateRequest) ProtoReflect() protoreflect.Message + func (x *CreateRequest) Reset() + func (x *CreateRequest) String() string + type CreateResponse struct + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (x *CreateResponse) ProtoReflect() protoreflect.Message + func (x *CreateResponse) Reset() + func (x *CreateResponse) String() string + type FindManyRequest struct + AccountId int64 + Limit int32 + Offset int32 + func (*FindManyRequest) Descriptor() ([]byte, []int) + func (*FindManyRequest) ProtoMessage() + func (x *FindManyRequest) GetAccountId() int64 + func (x *FindManyRequest) GetLimit() int32 + func (x *FindManyRequest) GetOffset() int32 + func (x *FindManyRequest) ProtoReflect() protoreflect.Message + func (x *FindManyRequest) Reset() + func (x *FindManyRequest) String() string + type FindManyResponse struct + Offices []*Office + Total int32 + func (*FindManyResponse) Descriptor() ([]byte, []int) + func (*FindManyResponse) ProtoMessage() + func (x *FindManyResponse) GetOffices() []*Office + func (x *FindManyResponse) GetTotal() int32 + func (x *FindManyResponse) ProtoReflect() protoreflect.Message + func (x *FindManyResponse) Reset() + func (x *FindManyResponse) String() string + type FindOneRequest struct + Id int64 + func (*FindOneRequest) Descriptor() ([]byte, []int) + func (*FindOneRequest) ProtoMessage() + func (x *FindOneRequest) GetId() int64 + func (x *FindOneRequest) ProtoReflect() protoreflect.Message + func (x *FindOneRequest) Reset() + func (x *FindOneRequest) String() string + type FindOneResponse struct + Office *Office + func (*FindOneResponse) Descriptor() ([]byte, []int) + func (*FindOneResponse) ProtoMessage() + func (x *FindOneResponse) GetOffice() *Office + func (x *FindOneResponse) ProtoReflect() protoreflect.Message + func (x *FindOneResponse) Reset() + func (x *FindOneResponse) String() string + type Office struct + Id int64 + Name string + func (*Office) Descriptor() ([]byte, []int) + func (*Office) ProtoMessage() + func (x *Office) GetId() int64 + func (x *Office) GetName() string + func (x *Office) ProtoReflect() protoreflect.Message + func (x *Office) Reset() + func (x *Office) String() string + type ServiceClient interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + FindMany func(ctx context.Context, in *FindManyRequest, opts ...grpc.CallOption) (*FindManyResponse, error) + FindOne func(ctx context.Context, in *FindOneRequest, opts ...grpc.CallOption) (*FindOneResponse, error) + Update func(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) + func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient + type ServiceServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + FindMany func(context.Context, *FindManyRequest) (*FindManyResponse, error) + FindOne func(context.Context, *FindOneRequest) (*FindOneResponse, error) + Update func(context.Context, *UpdateRequest) (*UpdateResponse, error) + type UnimplementedServiceServer struct + func (UnimplementedServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) + func (UnimplementedServiceServer) FindMany(context.Context, *FindManyRequest) (*FindManyResponse, error) + func (UnimplementedServiceServer) FindOne(context.Context, *FindOneRequest) (*FindOneResponse, error) + func (UnimplementedServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) + type UnsafeServiceServer interface + type UpdateRequest struct + Id int64 + Name string + func (*UpdateRequest) Descriptor() ([]byte, []int) + func (*UpdateRequest) ProtoMessage() + func (x *UpdateRequest) GetId() int64 + func (x *UpdateRequest) GetName() string + func (x *UpdateRequest) ProtoReflect() protoreflect.Message + func (x *UpdateRequest) Reset() + func (x *UpdateRequest) String() string + type UpdateResponse struct + func (*UpdateResponse) Descriptor() ([]byte, []int) + func (*UpdateResponse) ProtoMessage() + func (x *UpdateResponse) ProtoReflect() protoreflect.Message + func (x *UpdateResponse) Reset() + func (x *UpdateResponse) String() string