user

package
v0.0.0-...-bff983a Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package user is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_api_user_user_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Contacts.ProtoReflect.Descriptor instead.

func (*Contacts) GetDiscordUrl

func (x *Contacts) GetDiscordUrl() string

func (*Contacts) GetEmail

func (x *Contacts) GetEmail() string

func (*Contacts) GetPhoneNumber

func (x *Contacts) GetPhoneNumber() string

func (*Contacts) GetTelegramUrl

func (x *Contacts) GetTelegramUrl() string

func (*Contacts) MarshalToSizedBufferVT

func (m *Contacts) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Contacts) MarshalToVT

func (m *Contacts) MarshalToVT(dAtA []byte) (int, error)

func (*Contacts) MarshalVT

func (m *Contacts) MarshalVT() (dAtA []byte, err error)

func (*Contacts) ProtoMessage

func (*Contacts) ProtoMessage()

func (*Contacts) ProtoReflect

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

func (*Contacts) Reset

func (x *Contacts) Reset()

func (*Contacts) SizeVT

func (m *Contacts) SizeVT() (n int)

func (*Contacts) String

func (x *Contacts) String() string

func (*Contacts) UnmarshalVT

func (m *Contacts) UnmarshalVT(dAtA []byte) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Secret.ProtoReflect.Descriptor instead.

func (*Secret) GetLogin

func (x *Secret) GetLogin() string

func (*Secret) GetPassword

func (x *Secret) GetPassword() string

func (*Secret) GetRole

func (x *Secret) GetRole() string

func (*Secret) MarshalToSizedBufferVT

func (m *Secret) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Secret) MarshalToVT

func (m *Secret) MarshalToVT(dAtA []byte) (int, error)

func (*Secret) MarshalVT

func (m *Secret) MarshalVT() (dAtA []byte, err error)

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) ProtoReflect

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

func (*Secret) Reset

func (x *Secret) Reset()

func (*Secret) SizeVT

func (m *Secret) SizeVT() (n int)

func (*Secret) String

func (x *Secret) String() string

func (*Secret) UnmarshalVT

func (m *Secret) UnmarshalVT(dAtA []byte) error

type UnimplementedUserRegistryServer

type UnimplementedUserRegistryServer struct {
}

UnimplementedUserRegistryServer should be embedded to have forward compatible implementations.

func (UnimplementedUserRegistryServer) CreateUser

func (UnimplementedUserRegistryServer) GetUserByID

func (UnimplementedUserRegistryServer) GetUserTotalSalary

func (UnimplementedUserRegistryServer) GetUsers

func (UnimplementedUserRegistryServer) UpdateUser

func (UnimplementedUserRegistryServer) UpdateUserContacts

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAboutInfo

func (x *User) GetAboutInfo() string

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetBirthday

func (x *User) GetBirthday() *timestamppb.Timestamp

func (*User) GetContacts

func (x *User) GetContacts() *Contacts

func (*User) GetDepartment

func (x *User) GetDepartment() int64

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmployedAt

func (x *User) GetEmployedAt() *timestamppb.Timestamp

func (*User) GetFiredAt

func (x *User) GetFiredAt() *timestamppb.Timestamp

func (*User) GetFullName

func (x *User) GetFullName() string

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetIsPieceWage

func (x *User) GetIsPieceWage() bool

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSalary

func (x *User) GetSalary() float64

func (*User) GetTeam

func (x *User) GetTeam() int64

func (*User) MarshalToSizedBufferVT

func (m *User) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*User) MarshalToVT

func (m *User) MarshalToVT(dAtA []byte) (int, error)

func (*User) MarshalVT

func (m *User) MarshalVT() (dAtA []byte, err error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) SizeVT

func (m *User) SizeVT() (n int)

func (*User) String

func (x *User) String() string

func (*User) UnmarshalVT

func (m *User) UnmarshalVT(dAtA []byte) error

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 (*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 (*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 (*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 (*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.

type UserRegistryServer

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

Jump to

Keyboard shortcuts

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