Documentation ¶
Overview ¶
Package user is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterUserRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserRegistryClient) error
- func RegisterUserRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserRegistryServer) error
- func RegisterUserRegistryServer(s grpc.ServiceRegistrar, srv UserRegistryServer)
- type Contacts
- func (*Contacts) Descriptor() ([]byte, []int)deprecated
- func (x *Contacts) GetDiscordUrl() string
- func (x *Contacts) GetEmail() string
- func (x *Contacts) GetPhoneNumber() string
- func (x *Contacts) GetTelegramUrl() string
- func (m *Contacts) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Contacts) MarshalToVT(dAtA []byte) (int, error)
- func (m *Contacts) MarshalVT() (dAtA []byte, err error)
- func (*Contacts) ProtoMessage()
- func (x *Contacts) ProtoReflect() protoreflect.Message
- func (x *Contacts) Reset()
- func (m *Contacts) SizeVT() (n int)
- func (x *Contacts) String() string
- func (m *Contacts) UnmarshalVT(dAtA []byte) error
- type Secret
- func (*Secret) Descriptor() ([]byte, []int)deprecated
- func (x *Secret) GetLogin() string
- func (x *Secret) GetPassword() string
- func (x *Secret) GetRole() string
- func (m *Secret) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Secret) MarshalToVT(dAtA []byte) (int, error)
- func (m *Secret) MarshalVT() (dAtA []byte, err error)
- func (*Secret) ProtoMessage()
- func (x *Secret) ProtoReflect() protoreflect.Message
- func (x *Secret) Reset()
- func (m *Secret) SizeVT() (n int)
- func (x *Secret) String() string
- func (m *Secret) UnmarshalVT(dAtA []byte) error
- type UnimplementedUserRegistryServer
- func (UnimplementedUserRegistryServer) CreateUser(context.Context, *UserCreateRequest) (*UserCreateResponse, error)
- func (UnimplementedUserRegistryServer) GetUserByID(context.Context, *UserGetByIDRequest) (*UserGetByIDResponse, error)
- func (UnimplementedUserRegistryServer) GetUserTotalSalary(context.Context, *UserGetTotalSalaryRequest) (*UserGetTotalSalaryResponse, error)
- func (UnimplementedUserRegistryServer) GetUsers(context.Context, *UserGetRequest) (*UserGetResponse, error)
- func (UnimplementedUserRegistryServer) UpdateUser(context.Context, *UserUpdateRequest) (*UserUpdateResponse, error)
- func (UnimplementedUserRegistryServer) UpdateUserContacts(context.Context, *UserContactsUpdateRequest) (*UserContactsUpdateResponse, error)
- type UnsafeUserRegistryServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAboutInfo() string
- func (x *User) GetAvatarUrl() string
- func (x *User) GetBirthday() *timestamppb.Timestamp
- func (x *User) GetContacts() *Contacts
- func (x *User) GetDepartment() int64
- func (x *User) GetDisplayName() string
- func (x *User) GetEmployedAt() *timestamppb.Timestamp
- func (x *User) GetFiredAt() *timestamppb.Timestamp
- func (x *User) GetFullName() string
- func (x *User) GetId() int64
- func (x *User) GetIsPieceWage() bool
- func (x *User) GetLastName() string
- func (x *User) GetName() string
- func (x *User) GetSalary() float64
- func (x *User) GetTeam() int64
- func (m *User) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *User) MarshalToVT(dAtA []byte) (int, error)
- func (m *User) MarshalVT() (dAtA []byte, err error)
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (m *User) SizeVT() (n int)
- func (x *User) String() string
- func (m *User) UnmarshalVT(dAtA []byte) error
- type UserContactsUpdateRequest
- func (*UserContactsUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserContactsUpdateRequest) GetContacts() *Contacts
- func (x *UserContactsUpdateRequest) GetId() int64
- func (m *UserContactsUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserContactsUpdateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserContactsUpdateRequest) MarshalVT() (dAtA []byte, err error)
- func (*UserContactsUpdateRequest) ProtoMessage()
- func (x *UserContactsUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UserContactsUpdateRequest) Reset()
- func (m *UserContactsUpdateRequest) SizeVT() (n int)
- func (x *UserContactsUpdateRequest) String() string
- func (m *UserContactsUpdateRequest) UnmarshalVT(dAtA []byte) error
- type UserContactsUpdateResponse
- func (*UserContactsUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserContactsUpdateResponse) GetId() int64
- func (m *UserContactsUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserContactsUpdateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserContactsUpdateResponse) MarshalVT() (dAtA []byte, err error)
- func (*UserContactsUpdateResponse) ProtoMessage()
- func (x *UserContactsUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UserContactsUpdateResponse) Reset()
- func (m *UserContactsUpdateResponse) SizeVT() (n int)
- func (x *UserContactsUpdateResponse) String() string
- func (m *UserContactsUpdateResponse) UnmarshalVT(dAtA []byte) error
- type UserCreateRequest
- func (*UserCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateRequest) GetSecret() *Secret
- func (x *UserCreateRequest) GetUser() *User
- func (m *UserCreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserCreateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserCreateRequest) MarshalVT() (dAtA []byte, err error)
- func (*UserCreateRequest) ProtoMessage()
- func (x *UserCreateRequest) ProtoReflect() protoreflect.Message
- func (x *UserCreateRequest) Reset()
- func (m *UserCreateRequest) SizeVT() (n int)
- func (x *UserCreateRequest) String() string
- func (m *UserCreateRequest) UnmarshalVT(dAtA []byte) error
- type UserCreateResponse
- func (*UserCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateResponse) GetId() int64
- func (m *UserCreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserCreateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserCreateResponse) MarshalVT() (dAtA []byte, err error)
- func (*UserCreateResponse) ProtoMessage()
- func (x *UserCreateResponse) ProtoReflect() protoreflect.Message
- func (x *UserCreateResponse) Reset()
- func (m *UserCreateResponse) SizeVT() (n int)
- func (x *UserCreateResponse) String() string
- func (m *UserCreateResponse) UnmarshalVT(dAtA []byte) error
- type UserGetByIDRequest
- func (*UserGetByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserGetByIDRequest) GetId() int64
- func (m *UserGetByIDRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserGetByIDRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserGetByIDRequest) MarshalVT() (dAtA []byte, err error)
- func (*UserGetByIDRequest) ProtoMessage()
- func (x *UserGetByIDRequest) ProtoReflect() protoreflect.Message
- func (x *UserGetByIDRequest) Reset()
- func (m *UserGetByIDRequest) SizeVT() (n int)
- func (x *UserGetByIDRequest) String() string
- func (m *UserGetByIDRequest) UnmarshalVT(dAtA []byte) error
- type UserGetByIDResponse
- func (*UserGetByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserGetByIDResponse) GetUser() *User
- func (m *UserGetByIDResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserGetByIDResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserGetByIDResponse) MarshalVT() (dAtA []byte, err error)
- func (*UserGetByIDResponse) ProtoMessage()
- func (x *UserGetByIDResponse) ProtoReflect() protoreflect.Message
- func (x *UserGetByIDResponse) Reset()
- func (m *UserGetByIDResponse) SizeVT() (n int)
- func (x *UserGetByIDResponse) String() string
- func (m *UserGetByIDResponse) UnmarshalVT(dAtA []byte) error
- type UserGetRequest
- func (*UserGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserGetRequest) GetDepartments() []int64
- func (x *UserGetRequest) GetDisplayName() string
- func (x *UserGetRequest) GetEmail() string
- func (x *UserGetRequest) GetFullName() string
- func (x *UserGetRequest) GetIds() []int64
- func (x *UserGetRequest) GetLastName() string
- func (x *UserGetRequest) GetNames() string
- func (x *UserGetRequest) GetTeams() []int64
- func (m *UserGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserGetRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserGetRequest) MarshalVT() (dAtA []byte, err error)
- func (*UserGetRequest) ProtoMessage()
- func (x *UserGetRequest) ProtoReflect() protoreflect.Message
- func (x *UserGetRequest) Reset()
- func (m *UserGetRequest) SizeVT() (n int)
- func (x *UserGetRequest) String() string
- func (m *UserGetRequest) UnmarshalVT(dAtA []byte) error
- type UserGetResponse
- func (*UserGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserGetResponse) GetUsers() []*User
- func (m *UserGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserGetResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserGetResponse) MarshalVT() (dAtA []byte, err error)
- func (*UserGetResponse) ProtoMessage()
- func (x *UserGetResponse) ProtoReflect() protoreflect.Message
- func (x *UserGetResponse) Reset()
- func (m *UserGetResponse) SizeVT() (n int)
- func (x *UserGetResponse) String() string
- func (m *UserGetResponse) UnmarshalVT(dAtA []byte) error
- type UserGetTotalSalaryRequest
- func (*UserGetTotalSalaryRequest) Descriptor() ([]byte, []int)deprecated
- func (m *UserGetTotalSalaryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserGetTotalSalaryRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserGetTotalSalaryRequest) MarshalVT() (dAtA []byte, err error)
- func (*UserGetTotalSalaryRequest) ProtoMessage()
- func (x *UserGetTotalSalaryRequest) ProtoReflect() protoreflect.Message
- func (x *UserGetTotalSalaryRequest) Reset()
- func (m *UserGetTotalSalaryRequest) SizeVT() (n int)
- func (x *UserGetTotalSalaryRequest) String() string
- func (m *UserGetTotalSalaryRequest) UnmarshalVT(dAtA []byte) error
- type UserGetTotalSalaryResponse
- func (*UserGetTotalSalaryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserGetTotalSalaryResponse) GetUserToSalary() map[string]float64
- func (m *UserGetTotalSalaryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserGetTotalSalaryResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserGetTotalSalaryResponse) MarshalVT() (dAtA []byte, err error)
- func (*UserGetTotalSalaryResponse) ProtoMessage()
- func (x *UserGetTotalSalaryResponse) ProtoReflect() protoreflect.Message
- func (x *UserGetTotalSalaryResponse) Reset()
- func (m *UserGetTotalSalaryResponse) SizeVT() (n int)
- func (x *UserGetTotalSalaryResponse) String() string
- func (m *UserGetTotalSalaryResponse) UnmarshalVT(dAtA []byte) error
- type UserRegistryClient
- type UserRegistryServer
- type UserUpdateRequest
- func (*UserUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateRequest) GetId() int64
- func (x *UserUpdateRequest) GetUser() *User
- func (m *UserUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserUpdateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserUpdateRequest) MarshalVT() (dAtA []byte, err error)
- func (*UserUpdateRequest) ProtoMessage()
- func (x *UserUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UserUpdateRequest) Reset()
- func (m *UserUpdateRequest) SizeVT() (n int)
- func (x *UserUpdateRequest) String() string
- func (m *UserUpdateRequest) UnmarshalVT(dAtA []byte) error
- type UserUpdateResponse
- func (*UserUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateResponse) GetId() int64
- func (m *UserUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UserUpdateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UserUpdateResponse) MarshalVT() (dAtA []byte, err error)
- func (*UserUpdateResponse) ProtoMessage()
- func (x *UserUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UserUpdateResponse) Reset()
- func (m *UserUpdateResponse) SizeVT() (n int)
- func (x *UserUpdateResponse) String() string
- func (m *UserUpdateResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_api_user_user_proto protoreflect.FileDescriptor
var UserRegistry_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.constantine27k.crnt_user_service.api.user.UserRegistry", HandlerType: (*UserRegistryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserRegistry_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserRegistry_UpdateUser_Handler, }, { MethodName: "UpdateUserContacts", Handler: _UserRegistry_UpdateUserContacts_Handler, }, { MethodName: "GetUsers", Handler: _UserRegistry_GetUsers_Handler, }, { MethodName: "GetUserByID", Handler: _UserRegistry_GetUserByID_Handler, }, { MethodName: "GetUserTotalSalary", Handler: _UserRegistry_GetUserTotalSalary_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/user.proto", }
UserRegistry_ServiceDesc is the grpc.ServiceDesc for UserRegistry service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserRegistryHandler ¶
func RegisterUserRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserRegistryHandler registers the http handlers for service UserRegistry to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserRegistryHandlerClient ¶
func RegisterUserRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserRegistryClient) error
RegisterUserRegistryHandlerClient registers the http handlers for service UserRegistry to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserRegistryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserRegistryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserRegistryClient" to call the correct interceptors.
func RegisterUserRegistryHandlerFromEndpoint ¶
func RegisterUserRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserRegistryHandlerFromEndpoint is same as RegisterUserRegistryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserRegistryHandlerServer ¶
func RegisterUserRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserRegistryServer) error
RegisterUserRegistryHandlerServer registers the http handlers for service UserRegistry to "mux". UnaryRPC :call UserRegistryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserRegistryHandlerFromEndpoint instead.
func RegisterUserRegistryServer ¶
func RegisterUserRegistryServer(s grpc.ServiceRegistrar, srv UserRegistryServer)
Types ¶
type Contacts ¶
type Contacts struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` TelegramUrl string `protobuf:"bytes,3,opt,name=telegram_url,json=telegramUrl,proto3" json:"telegram_url,omitempty"` DiscordUrl string `protobuf:"bytes,4,opt,name=discord_url,json=discordUrl,proto3" json:"discord_url,omitempty"` // contains filtered or unexported fields }
func (*Contacts) Descriptor
deprecated
func (*Contacts) GetDiscordUrl ¶
func (*Contacts) GetPhoneNumber ¶
func (*Contacts) GetTelegramUrl ¶
func (*Contacts) MarshalToSizedBufferVT ¶
func (*Contacts) ProtoMessage ¶
func (*Contacts) ProtoMessage()
func (*Contacts) ProtoReflect ¶
func (x *Contacts) ProtoReflect() protoreflect.Message
func (*Contacts) UnmarshalVT ¶
type Secret ¶
type Secret struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*Secret) Descriptor
deprecated
func (*Secret) GetPassword ¶
func (*Secret) MarshalToSizedBufferVT ¶
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
func (*Secret) UnmarshalVT ¶
type UnimplementedUserRegistryServer ¶
type UnimplementedUserRegistryServer struct { }
UnimplementedUserRegistryServer should be embedded to have forward compatible implementations.
func (UnimplementedUserRegistryServer) CreateUser ¶
func (UnimplementedUserRegistryServer) CreateUser(context.Context, *UserCreateRequest) (*UserCreateResponse, error)
func (UnimplementedUserRegistryServer) GetUserByID ¶
func (UnimplementedUserRegistryServer) GetUserByID(context.Context, *UserGetByIDRequest) (*UserGetByIDResponse, error)
func (UnimplementedUserRegistryServer) GetUserTotalSalary ¶
func (UnimplementedUserRegistryServer) GetUserTotalSalary(context.Context, *UserGetTotalSalaryRequest) (*UserGetTotalSalaryResponse, error)
func (UnimplementedUserRegistryServer) GetUsers ¶
func (UnimplementedUserRegistryServer) GetUsers(context.Context, *UserGetRequest) (*UserGetResponse, error)
func (UnimplementedUserRegistryServer) UpdateUser ¶
func (UnimplementedUserRegistryServer) UpdateUser(context.Context, *UserUpdateRequest) (*UserUpdateResponse, error)
func (UnimplementedUserRegistryServer) UpdateUserContacts ¶
func (UnimplementedUserRegistryServer) UpdateUserContacts(context.Context, *UserContactsUpdateRequest) (*UserContactsUpdateResponse, error)
type UnsafeUserRegistryServer ¶
type UnsafeUserRegistryServer interface {
// contains filtered or unexported methods
}
UnsafeUserRegistryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserRegistryServer will result in compilation errors.
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` FullName string `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Birthday *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=birthday,proto3" json:"birthday,omitempty"` EmployedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=employed_at,json=employedAt,proto3" json:"employed_at,omitempty"` FiredAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=fired_at,json=firedAt,proto3" json:"fired_at,omitempty"` AboutInfo string `protobuf:"bytes,9,opt,name=about_info,json=aboutInfo,proto3" json:"about_info,omitempty"` AvatarUrl string `protobuf:"bytes,10,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` Contacts *Contacts `protobuf:"bytes,11,opt,name=contacts,proto3" json:"contacts,omitempty"` Salary float64 `protobuf:"fixed64,12,opt,name=salary,proto3" json:"salary,omitempty"` IsPieceWage bool `protobuf:"varint,13,opt,name=is_piece_wage,json=isPieceWage,proto3" json:"is_piece_wage,omitempty"` Team int64 `protobuf:"varint,14,opt,name=team,proto3" json:"team,omitempty"` Department int64 `protobuf:"varint,15,opt,name=department,proto3" json:"department,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAboutInfo ¶
func (*User) GetAvatarUrl ¶
func (*User) GetBirthday ¶
func (x *User) GetBirthday() *timestamppb.Timestamp
func (*User) GetContacts ¶
func (*User) GetDepartment ¶
func (*User) GetDisplayName ¶
func (*User) GetEmployedAt ¶
func (x *User) GetEmployedAt() *timestamppb.Timestamp
func (*User) GetFiredAt ¶
func (x *User) GetFiredAt() *timestamppb.Timestamp
func (*User) GetFullName ¶
func (*User) GetIsPieceWage ¶
func (*User) GetLastName ¶
func (*User) MarshalToSizedBufferVT ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) UnmarshalVT ¶
type UserContactsUpdateRequest ¶
type UserContactsUpdateRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Contacts *Contacts `protobuf:"bytes,2,opt,name=contacts,proto3" json:"contacts,omitempty"` // contains filtered or unexported fields }
func (*UserContactsUpdateRequest) Descriptor
deprecated
func (*UserContactsUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserContactsUpdateRequest.ProtoReflect.Descriptor instead.
func (*UserContactsUpdateRequest) GetContacts ¶
func (x *UserContactsUpdateRequest) GetContacts() *Contacts
func (*UserContactsUpdateRequest) GetId ¶
func (x *UserContactsUpdateRequest) GetId() int64
func (*UserContactsUpdateRequest) MarshalToSizedBufferVT ¶
func (m *UserContactsUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserContactsUpdateRequest) MarshalToVT ¶
func (m *UserContactsUpdateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UserContactsUpdateRequest) MarshalVT ¶
func (m *UserContactsUpdateRequest) MarshalVT() (dAtA []byte, err error)
func (*UserContactsUpdateRequest) ProtoMessage ¶
func (*UserContactsUpdateRequest) ProtoMessage()
func (*UserContactsUpdateRequest) ProtoReflect ¶
func (x *UserContactsUpdateRequest) ProtoReflect() protoreflect.Message
func (*UserContactsUpdateRequest) Reset ¶
func (x *UserContactsUpdateRequest) Reset()
func (*UserContactsUpdateRequest) SizeVT ¶
func (m *UserContactsUpdateRequest) SizeVT() (n int)
func (*UserContactsUpdateRequest) String ¶
func (x *UserContactsUpdateRequest) String() string
func (*UserContactsUpdateRequest) UnmarshalVT ¶
func (m *UserContactsUpdateRequest) UnmarshalVT(dAtA []byte) error
type UserContactsUpdateResponse ¶
type UserContactsUpdateResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserContactsUpdateResponse) Descriptor
deprecated
func (*UserContactsUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserContactsUpdateResponse.ProtoReflect.Descriptor instead.
func (*UserContactsUpdateResponse) GetId ¶
func (x *UserContactsUpdateResponse) GetId() int64
func (*UserContactsUpdateResponse) MarshalToSizedBufferVT ¶
func (m *UserContactsUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserContactsUpdateResponse) MarshalToVT ¶
func (m *UserContactsUpdateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UserContactsUpdateResponse) MarshalVT ¶
func (m *UserContactsUpdateResponse) MarshalVT() (dAtA []byte, err error)
func (*UserContactsUpdateResponse) ProtoMessage ¶
func (*UserContactsUpdateResponse) ProtoMessage()
func (*UserContactsUpdateResponse) ProtoReflect ¶
func (x *UserContactsUpdateResponse) ProtoReflect() protoreflect.Message
func (*UserContactsUpdateResponse) Reset ¶
func (x *UserContactsUpdateResponse) Reset()
func (*UserContactsUpdateResponse) SizeVT ¶
func (m *UserContactsUpdateResponse) SizeVT() (n int)
func (*UserContactsUpdateResponse) String ¶
func (x *UserContactsUpdateResponse) String() string
func (*UserContactsUpdateResponse) UnmarshalVT ¶
func (m *UserContactsUpdateResponse) UnmarshalVT(dAtA []byte) error
type UserCreateRequest ¶
type UserCreateRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Secret *Secret `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
func (*UserCreateRequest) Descriptor
deprecated
func (*UserCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateRequest.ProtoReflect.Descriptor instead.
func (*UserCreateRequest) GetSecret ¶
func (x *UserCreateRequest) GetSecret() *Secret
func (*UserCreateRequest) GetUser ¶
func (x *UserCreateRequest) GetUser() *User
func (*UserCreateRequest) MarshalToSizedBufferVT ¶
func (m *UserCreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserCreateRequest) MarshalToVT ¶
func (m *UserCreateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UserCreateRequest) MarshalVT ¶
func (m *UserCreateRequest) MarshalVT() (dAtA []byte, err error)
func (*UserCreateRequest) ProtoMessage ¶
func (*UserCreateRequest) ProtoMessage()
func (*UserCreateRequest) ProtoReflect ¶
func (x *UserCreateRequest) ProtoReflect() protoreflect.Message
func (*UserCreateRequest) Reset ¶
func (x *UserCreateRequest) Reset()
func (*UserCreateRequest) SizeVT ¶
func (m *UserCreateRequest) SizeVT() (n int)
func (*UserCreateRequest) String ¶
func (x *UserCreateRequest) String() string
func (*UserCreateRequest) UnmarshalVT ¶
func (m *UserCreateRequest) UnmarshalVT(dAtA []byte) error
type UserCreateResponse ¶
type UserCreateResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserCreateResponse) Descriptor
deprecated
func (*UserCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateResponse.ProtoReflect.Descriptor instead.
func (*UserCreateResponse) GetId ¶
func (x *UserCreateResponse) GetId() int64
func (*UserCreateResponse) MarshalToSizedBufferVT ¶
func (m *UserCreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserCreateResponse) MarshalToVT ¶
func (m *UserCreateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UserCreateResponse) MarshalVT ¶
func (m *UserCreateResponse) MarshalVT() (dAtA []byte, err error)
func (*UserCreateResponse) ProtoMessage ¶
func (*UserCreateResponse) ProtoMessage()
func (*UserCreateResponse) ProtoReflect ¶
func (x *UserCreateResponse) ProtoReflect() protoreflect.Message
func (*UserCreateResponse) Reset ¶
func (x *UserCreateResponse) Reset()
func (*UserCreateResponse) SizeVT ¶
func (m *UserCreateResponse) SizeVT() (n int)
func (*UserCreateResponse) String ¶
func (x *UserCreateResponse) String() string
func (*UserCreateResponse) UnmarshalVT ¶
func (m *UserCreateResponse) UnmarshalVT(dAtA []byte) error
type UserGetByIDRequest ¶
type UserGetByIDRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserGetByIDRequest) Descriptor
deprecated
func (*UserGetByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserGetByIDRequest.ProtoReflect.Descriptor instead.
func (*UserGetByIDRequest) GetId ¶
func (x *UserGetByIDRequest) GetId() int64
func (*UserGetByIDRequest) MarshalToSizedBufferVT ¶
func (m *UserGetByIDRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserGetByIDRequest) MarshalToVT ¶
func (m *UserGetByIDRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UserGetByIDRequest) MarshalVT ¶
func (m *UserGetByIDRequest) MarshalVT() (dAtA []byte, err error)
func (*UserGetByIDRequest) ProtoMessage ¶
func (*UserGetByIDRequest) ProtoMessage()
func (*UserGetByIDRequest) ProtoReflect ¶
func (x *UserGetByIDRequest) ProtoReflect() protoreflect.Message
func (*UserGetByIDRequest) Reset ¶
func (x *UserGetByIDRequest) Reset()
func (*UserGetByIDRequest) SizeVT ¶
func (m *UserGetByIDRequest) SizeVT() (n int)
func (*UserGetByIDRequest) String ¶
func (x *UserGetByIDRequest) String() string
func (*UserGetByIDRequest) UnmarshalVT ¶
func (m *UserGetByIDRequest) UnmarshalVT(dAtA []byte) error
type UserGetByIDResponse ¶
type UserGetByIDResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserGetByIDResponse) Descriptor
deprecated
func (*UserGetByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserGetByIDResponse.ProtoReflect.Descriptor instead.
func (*UserGetByIDResponse) GetUser ¶
func (x *UserGetByIDResponse) GetUser() *User
func (*UserGetByIDResponse) MarshalToSizedBufferVT ¶
func (m *UserGetByIDResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserGetByIDResponse) MarshalToVT ¶
func (m *UserGetByIDResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UserGetByIDResponse) MarshalVT ¶
func (m *UserGetByIDResponse) MarshalVT() (dAtA []byte, err error)
func (*UserGetByIDResponse) ProtoMessage ¶
func (*UserGetByIDResponse) ProtoMessage()
func (*UserGetByIDResponse) ProtoReflect ¶
func (x *UserGetByIDResponse) ProtoReflect() protoreflect.Message
func (*UserGetByIDResponse) Reset ¶
func (x *UserGetByIDResponse) Reset()
func (*UserGetByIDResponse) SizeVT ¶
func (m *UserGetByIDResponse) SizeVT() (n int)
func (*UserGetByIDResponse) String ¶
func (x *UserGetByIDResponse) String() string
func (*UserGetByIDResponse) UnmarshalVT ¶
func (m *UserGetByIDResponse) UnmarshalVT(dAtA []byte) error
type UserGetRequest ¶
type UserGetRequest struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` Names string `protobuf:"bytes,2,opt,name=names,proto3" json:"names,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` FullName string `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Teams []int64 `protobuf:"varint,7,rep,packed,name=teams,proto3" json:"teams,omitempty"` Departments []int64 `protobuf:"varint,8,rep,packed,name=departments,proto3" json:"departments,omitempty"` // contains filtered or unexported fields }
func (*UserGetRequest) Descriptor
deprecated
func (*UserGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserGetRequest.ProtoReflect.Descriptor instead.
func (*UserGetRequest) GetDepartments ¶
func (x *UserGetRequest) GetDepartments() []int64
func (*UserGetRequest) GetDisplayName ¶
func (x *UserGetRequest) GetDisplayName() string
func (*UserGetRequest) GetEmail ¶
func (x *UserGetRequest) GetEmail() string
func (*UserGetRequest) GetFullName ¶
func (x *UserGetRequest) GetFullName() string
func (*UserGetRequest) GetIds ¶
func (x *UserGetRequest) GetIds() []int64
func (*UserGetRequest) GetLastName ¶
func (x *UserGetRequest) GetLastName() string
func (*UserGetRequest) GetNames ¶
func (x *UserGetRequest) GetNames() string
func (*UserGetRequest) GetTeams ¶
func (x *UserGetRequest) GetTeams() []int64
func (*UserGetRequest) MarshalToSizedBufferVT ¶
func (m *UserGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserGetRequest) MarshalToVT ¶
func (m *UserGetRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UserGetRequest) MarshalVT ¶
func (m *UserGetRequest) MarshalVT() (dAtA []byte, err error)
func (*UserGetRequest) ProtoMessage ¶
func (*UserGetRequest) ProtoMessage()
func (*UserGetRequest) ProtoReflect ¶
func (x *UserGetRequest) ProtoReflect() protoreflect.Message
func (*UserGetRequest) Reset ¶
func (x *UserGetRequest) Reset()
func (*UserGetRequest) SizeVT ¶
func (m *UserGetRequest) SizeVT() (n int)
func (*UserGetRequest) String ¶
func (x *UserGetRequest) String() string
func (*UserGetRequest) UnmarshalVT ¶
func (m *UserGetRequest) UnmarshalVT(dAtA []byte) error
type UserGetResponse ¶
type UserGetResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*UserGetResponse) Descriptor
deprecated
func (*UserGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserGetResponse.ProtoReflect.Descriptor instead.
func (*UserGetResponse) GetUsers ¶
func (x *UserGetResponse) GetUsers() []*User
func (*UserGetResponse) MarshalToSizedBufferVT ¶
func (m *UserGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserGetResponse) MarshalToVT ¶
func (m *UserGetResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UserGetResponse) MarshalVT ¶
func (m *UserGetResponse) MarshalVT() (dAtA []byte, err error)
func (*UserGetResponse) ProtoMessage ¶
func (*UserGetResponse) ProtoMessage()
func (*UserGetResponse) ProtoReflect ¶
func (x *UserGetResponse) ProtoReflect() protoreflect.Message
func (*UserGetResponse) Reset ¶
func (x *UserGetResponse) Reset()
func (*UserGetResponse) SizeVT ¶
func (m *UserGetResponse) SizeVT() (n int)
func (*UserGetResponse) String ¶
func (x *UserGetResponse) String() string
func (*UserGetResponse) UnmarshalVT ¶
func (m *UserGetResponse) UnmarshalVT(dAtA []byte) error
type UserGetTotalSalaryRequest ¶
type UserGetTotalSalaryRequest struct {
// contains filtered or unexported fields
}
func (*UserGetTotalSalaryRequest) Descriptor
deprecated
func (*UserGetTotalSalaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserGetTotalSalaryRequest.ProtoReflect.Descriptor instead.
func (*UserGetTotalSalaryRequest) MarshalToSizedBufferVT ¶
func (m *UserGetTotalSalaryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserGetTotalSalaryRequest) MarshalToVT ¶
func (m *UserGetTotalSalaryRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UserGetTotalSalaryRequest) MarshalVT ¶
func (m *UserGetTotalSalaryRequest) MarshalVT() (dAtA []byte, err error)
func (*UserGetTotalSalaryRequest) ProtoMessage ¶
func (*UserGetTotalSalaryRequest) ProtoMessage()
func (*UserGetTotalSalaryRequest) ProtoReflect ¶
func (x *UserGetTotalSalaryRequest) ProtoReflect() protoreflect.Message
func (*UserGetTotalSalaryRequest) Reset ¶
func (x *UserGetTotalSalaryRequest) Reset()
func (*UserGetTotalSalaryRequest) SizeVT ¶
func (m *UserGetTotalSalaryRequest) SizeVT() (n int)
func (*UserGetTotalSalaryRequest) String ¶
func (x *UserGetTotalSalaryRequest) String() string
func (*UserGetTotalSalaryRequest) UnmarshalVT ¶
func (m *UserGetTotalSalaryRequest) UnmarshalVT(dAtA []byte) error
type UserGetTotalSalaryResponse ¶
type UserGetTotalSalaryResponse struct { UserToSalary map[string]float64 `` /* 189-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UserGetTotalSalaryResponse) Descriptor
deprecated
func (*UserGetTotalSalaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserGetTotalSalaryResponse.ProtoReflect.Descriptor instead.
func (*UserGetTotalSalaryResponse) GetUserToSalary ¶
func (x *UserGetTotalSalaryResponse) GetUserToSalary() map[string]float64
func (*UserGetTotalSalaryResponse) MarshalToSizedBufferVT ¶
func (m *UserGetTotalSalaryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserGetTotalSalaryResponse) MarshalToVT ¶
func (m *UserGetTotalSalaryResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UserGetTotalSalaryResponse) MarshalVT ¶
func (m *UserGetTotalSalaryResponse) MarshalVT() (dAtA []byte, err error)
func (*UserGetTotalSalaryResponse) ProtoMessage ¶
func (*UserGetTotalSalaryResponse) ProtoMessage()
func (*UserGetTotalSalaryResponse) ProtoReflect ¶
func (x *UserGetTotalSalaryResponse) ProtoReflect() protoreflect.Message
func (*UserGetTotalSalaryResponse) Reset ¶
func (x *UserGetTotalSalaryResponse) Reset()
func (*UserGetTotalSalaryResponse) SizeVT ¶
func (m *UserGetTotalSalaryResponse) SizeVT() (n int)
func (*UserGetTotalSalaryResponse) String ¶
func (x *UserGetTotalSalaryResponse) String() string
func (*UserGetTotalSalaryResponse) UnmarshalVT ¶
func (m *UserGetTotalSalaryResponse) UnmarshalVT(dAtA []byte) error
type UserRegistryClient ¶
type UserRegistryClient interface { CreateUser(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserCreateResponse, error) UpdateUser(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserUpdateResponse, error) UpdateUserContacts(ctx context.Context, in *UserContactsUpdateRequest, opts ...grpc.CallOption) (*UserContactsUpdateResponse, error) GetUsers(ctx context.Context, in *UserGetRequest, opts ...grpc.CallOption) (*UserGetResponse, error) GetUserByID(ctx context.Context, in *UserGetByIDRequest, opts ...grpc.CallOption) (*UserGetByIDResponse, error) GetUserTotalSalary(ctx context.Context, in *UserGetTotalSalaryRequest, opts ...grpc.CallOption) (*UserGetTotalSalaryResponse, error) }
UserRegistryClient is the client API for UserRegistry 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 NewUserRegistryClient ¶
func NewUserRegistryClient(cc grpc.ClientConnInterface) UserRegistryClient
type UserRegistryServer ¶
type UserRegistryServer interface { CreateUser(context.Context, *UserCreateRequest) (*UserCreateResponse, error) UpdateUser(context.Context, *UserUpdateRequest) (*UserUpdateResponse, error) UpdateUserContacts(context.Context, *UserContactsUpdateRequest) (*UserContactsUpdateResponse, error) GetUsers(context.Context, *UserGetRequest) (*UserGetResponse, error) GetUserByID(context.Context, *UserGetByIDRequest) (*UserGetByIDResponse, error) GetUserTotalSalary(context.Context, *UserGetTotalSalaryRequest) (*UserGetTotalSalaryResponse, error) }
UserRegistryServer is the server API for UserRegistry service. All implementations should embed UnimplementedUserRegistryServer for forward compatibility
type UserUpdateRequest ¶
type UserUpdateRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserUpdateRequest) Descriptor
deprecated
func (*UserUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateRequest.ProtoReflect.Descriptor instead.
func (*UserUpdateRequest) GetId ¶
func (x *UserUpdateRequest) GetId() int64
func (*UserUpdateRequest) GetUser ¶
func (x *UserUpdateRequest) GetUser() *User
func (*UserUpdateRequest) MarshalToSizedBufferVT ¶
func (m *UserUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserUpdateRequest) MarshalToVT ¶
func (m *UserUpdateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UserUpdateRequest) MarshalVT ¶
func (m *UserUpdateRequest) MarshalVT() (dAtA []byte, err error)
func (*UserUpdateRequest) ProtoMessage ¶
func (*UserUpdateRequest) ProtoMessage()
func (*UserUpdateRequest) ProtoReflect ¶
func (x *UserUpdateRequest) ProtoReflect() protoreflect.Message
func (*UserUpdateRequest) Reset ¶
func (x *UserUpdateRequest) Reset()
func (*UserUpdateRequest) SizeVT ¶
func (m *UserUpdateRequest) SizeVT() (n int)
func (*UserUpdateRequest) String ¶
func (x *UserUpdateRequest) String() string
func (*UserUpdateRequest) UnmarshalVT ¶
func (m *UserUpdateRequest) UnmarshalVT(dAtA []byte) error
type UserUpdateResponse ¶
type UserUpdateResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserUpdateResponse) Descriptor
deprecated
func (*UserUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateResponse.ProtoReflect.Descriptor instead.
func (*UserUpdateResponse) GetId ¶
func (x *UserUpdateResponse) GetId() int64
func (*UserUpdateResponse) MarshalToSizedBufferVT ¶
func (m *UserUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UserUpdateResponse) MarshalToVT ¶
func (m *UserUpdateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UserUpdateResponse) MarshalVT ¶
func (m *UserUpdateResponse) MarshalVT() (dAtA []byte, err error)
func (*UserUpdateResponse) ProtoMessage ¶
func (*UserUpdateResponse) ProtoMessage()
func (*UserUpdateResponse) ProtoReflect ¶
func (x *UserUpdateResponse) ProtoReflect() protoreflect.Message
func (*UserUpdateResponse) Reset ¶
func (x *UserUpdateResponse) Reset()
func (*UserUpdateResponse) SizeVT ¶
func (m *UserUpdateResponse) SizeVT() (n int)
func (*UserUpdateResponse) String ¶
func (x *UserUpdateResponse) String() string
func (*UserUpdateResponse) UnmarshalVT ¶
func (m *UserUpdateResponse) UnmarshalVT(dAtA []byte) error