 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetCountryCode() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
 
- type CreateUserRequest
- type DeleteUserRequest
- type DeleteUserResponse
- type FilterUserRequest
- func (*FilterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FilterUserRequest) GetCompany() string
- func (x *FilterUserRequest) GetCountry() string
- func (x *FilterUserRequest) GetJobtype() string
- func (x *FilterUserRequest) GetUsername() string
- func (*FilterUserRequest) ProtoMessage()
- func (x *FilterUserRequest) ProtoReflect() protoreflect.Message
- func (x *FilterUserRequest) Reset()
- func (x *FilterUserRequest) String() string
 
- type GetSummaryRequest
- type GetSummaryResponse
- func (*GetSummaryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSummaryResponse) GetSummary() *Summary
- func (*GetSummaryResponse) ProtoMessage()
- func (x *GetSummaryResponse) ProtoReflect() protoreflect.Message
- func (x *GetSummaryResponse) Reset()
- func (x *GetSummaryResponse) String() string
 
- type GetUserError
- func (*GetUserError) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserError) GetRecommendation() string
- func (x *GetUserError) GetUsername() string
- func (*GetUserError) ProtoMessage()
- func (x *GetUserError) ProtoReflect() protoreflect.Message
- func (x *GetUserError) Reset()
- func (x *GetUserError) String() string
 
- type GetUserPostRequest
- func (*GetUserPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPostRequest) GetAddress() *Address
- func (x *GetUserPostRequest) GetType() string
- func (*GetUserPostRequest) ProtoMessage()
- func (x *GetUserPostRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserPostRequest) Reset()
- func (x *GetUserPostRequest) String() string
 
- type GetUserPostResponse
- func (*GetUserPostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPostResponse) GetUsers() []*User
- func (*GetUserPostResponse) ProtoMessage()
- func (x *GetUserPostResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserPostResponse) Reset()
- func (x *GetUserPostResponse) String() string
 
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetCountry() string
- func (x *GetUserRequest) GetJob() *Job
- func (x *GetUserRequest) GetUsername() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
 
- type GetUserResponse
- type GetUsersResponse
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetCompany() string
- func (x *Job) GetJobArea() string
- func (x *Job) GetJobTitle() string
- func (x *Job) GetJobType() string
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
 
- type Post
- type Summary
- func (*Summary) Descriptor() ([]byte, []int)deprecated
- func (x *Summary) GetCountries() []string
- func (x *Summary) GetJobTitles() []string
- func (x *Summary) GetJobTypes() []string
- func (x *Summary) GetUsernames() []string
- func (*Summary) ProtoMessage()
- func (x *Summary) ProtoReflect() protoreflect.Message
- func (x *Summary) Reset()
- func (x *Summary) String() string
 
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) FilterUsers(context.Context, *FilterUserRequest) (*GetUsersResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) GetUsers(context.Context, *GetUserRequest) (*GetUsersResponse, error)
- func (UnimplementedUserServiceServer) GetUsersByJobTitle(context.Context, *GetUserRequest) (*GetUsersResponse, error)
- func (UnimplementedUserServiceServer) GetUsersPost(context.Context, *GetUserPostRequest) (*GetUserPostResponse, error)
- func (UnimplementedUserServiceServer) GetUsersSummary(context.Context, *GetSummaryRequest) (*GetSummaryResponse, error)
- func (UnimplementedUserServiceServer) UpdateUserJob(context.Context, *UpdateUserJobRequest) (*UpdateUserJobResponse, error)
 
- type UnsafeUserServiceServer
- type UpdateUserJobRequest
- func (*UpdateUserJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserJobRequest) GetJob() *Job
- func (x *UpdateUserJobRequest) GetUsername() string
- func (*UpdateUserJobRequest) ProtoMessage()
- func (x *UpdateUserJobRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserJobRequest) Reset()
- func (x *UpdateUserJobRequest) String() string
 
- type UpdateUserJobResponse
- func (*UpdateUserJobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserJobResponse) GetUser() *User
- func (*UpdateUserJobResponse) ProtoMessage()
- func (x *UpdateUserJobResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserJobResponse) Reset()
- func (x *UpdateUserJobResponse) String() string
 
- type UpdateUserResponse
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAddress() *Address
- func (x *User) GetEmail() string
- func (x *User) GetId() int64
- func (x *User) GetJob() *Job
- func (x *User) GetPost() Post
- func (x *User) GetSurname() string
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
 
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Post_name = map[int32]string{ 0: "PRODUCT", 1: "ENGAGEMENT", 2: "PROMOTION", 3: "COMPETITION", 4: "NEWS_TRENDING", } Post_value = map[string]int32{ "PRODUCT": 0, "ENGAGEMENT": 1, "PROMOTION": 2, "COMPETITION": 3, "NEWS_TRENDING": 4, } )
Enum value maps for Post.
var File_user_v1_user_proto protoreflect.FileDescriptor
    var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "GetUsers", Handler: _UserService_GetUsers_Handler, }, { MethodName: "GetUsersByJobTitle", Handler: _UserService_GetUsersByJobTitle_Handler, }, { MethodName: "FilterUsers", Handler: _UserService_FilterUsers_Handler, }, { MethodName: "GetUsersPost", Handler: _UserService_GetUsersPost_Handler, }, { MethodName: "GetUsersSummary", Handler: _UserService_GetUsersSummary_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "UpdateUserJob", Handler: _UserService_UpdateUserJob_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type Address ¶
type Address struct {
	City        string `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
	Country     string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*Address) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Address) GetCountry ¶
func (*Address) GetCountryCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type CreateUserRequest ¶
type CreateUserRequest struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*CreateUserRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*DeleteUserRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetUsername ¶
func (x *DeleteUserRequest) GetUsername() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*DeleteUserResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) GetId ¶
func (x *DeleteUserResponse) GetId() int64
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type FilterUserRequest ¶
type FilterUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Country  string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	Company  string `protobuf:"bytes,3,opt,name=company,proto3" json:"company,omitempty"`
	Jobtype  string `protobuf:"bytes,4,opt,name=jobtype,proto3" json:"jobtype,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*FilterUserRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*FilterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use FilterUserRequest.ProtoReflect.Descriptor instead.
func (*FilterUserRequest) GetCompany ¶
func (x *FilterUserRequest) GetCompany() string
func (*FilterUserRequest) GetCountry ¶
func (x *FilterUserRequest) GetCountry() string
func (*FilterUserRequest) GetJobtype ¶
func (x *FilterUserRequest) GetJobtype() string
func (*FilterUserRequest) GetUsername ¶
func (x *FilterUserRequest) GetUsername() string
func (*FilterUserRequest) ProtoMessage ¶
func (*FilterUserRequest) ProtoMessage()
func (*FilterUserRequest) ProtoReflect ¶
func (x *FilterUserRequest) ProtoReflect() protoreflect.Message
func (*FilterUserRequest) Reset ¶
func (x *FilterUserRequest) Reset()
func (*FilterUserRequest) String ¶
func (x *FilterUserRequest) String() string
type GetSummaryRequest ¶
type GetSummaryRequest struct {
	Summary string `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetSummaryRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetSummaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSummaryRequest.ProtoReflect.Descriptor instead.
func (*GetSummaryRequest) GetSummary ¶
func (x *GetSummaryRequest) GetSummary() string
func (*GetSummaryRequest) ProtoMessage ¶
func (*GetSummaryRequest) ProtoMessage()
func (*GetSummaryRequest) ProtoReflect ¶
func (x *GetSummaryRequest) ProtoReflect() protoreflect.Message
func (*GetSummaryRequest) Reset ¶
func (x *GetSummaryRequest) Reset()
func (*GetSummaryRequest) String ¶
func (x *GetSummaryRequest) String() string
type GetSummaryResponse ¶
type GetSummaryResponse struct {
	Summary *Summary `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetSummaryResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetSummaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSummaryResponse.ProtoReflect.Descriptor instead.
func (*GetSummaryResponse) GetSummary ¶
func (x *GetSummaryResponse) GetSummary() *Summary
func (*GetSummaryResponse) ProtoMessage ¶
func (*GetSummaryResponse) ProtoMessage()
func (*GetSummaryResponse) ProtoReflect ¶
func (x *GetSummaryResponse) ProtoReflect() protoreflect.Message
func (*GetSummaryResponse) Reset ¶
func (x *GetSummaryResponse) Reset()
func (*GetSummaryResponse) String ¶
func (x *GetSummaryResponse) String() string
type GetUserError ¶ added in v1.0.0
type GetUserError struct {
	Username       string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Recommendation string `protobuf:"bytes,2,opt,name=recommendation,proto3" json:"recommendation,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetUserError) Descriptor
            deprecated
            
          
  
    
      added in
      v1.0.0
    
  
      
      func (*GetUserError) Descriptor() ([]byte, []int)
Deprecated: Use GetUserError.ProtoReflect.Descriptor instead.
func (*GetUserError) GetRecommendation ¶ added in v1.0.0
func (x *GetUserError) GetRecommendation() string
func (*GetUserError) GetUsername ¶ added in v1.0.0
func (x *GetUserError) GetUsername() string
func (*GetUserError) ProtoMessage ¶ added in v1.0.0
func (*GetUserError) ProtoMessage()
func (*GetUserError) ProtoReflect ¶ added in v1.0.0
func (x *GetUserError) ProtoReflect() protoreflect.Message
func (*GetUserError) Reset ¶ added in v1.0.0
func (x *GetUserError) Reset()
func (*GetUserError) String ¶ added in v1.0.0
func (x *GetUserError) String() string
type GetUserPostRequest ¶
type GetUserPostRequest struct {
	Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Type    string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetUserPostRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetUserPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPostRequest.ProtoReflect.Descriptor instead.
func (*GetUserPostRequest) GetAddress ¶
func (x *GetUserPostRequest) GetAddress() *Address
func (*GetUserPostRequest) GetType ¶
func (x *GetUserPostRequest) GetType() string
func (*GetUserPostRequest) ProtoMessage ¶
func (*GetUserPostRequest) ProtoMessage()
func (*GetUserPostRequest) ProtoReflect ¶
func (x *GetUserPostRequest) ProtoReflect() protoreflect.Message
func (*GetUserPostRequest) Reset ¶
func (x *GetUserPostRequest) Reset()
func (*GetUserPostRequest) String ¶
func (x *GetUserPostRequest) String() string
type GetUserPostResponse ¶
type GetUserPostResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetUserPostResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetUserPostResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPostResponse.ProtoReflect.Descriptor instead.
func (*GetUserPostResponse) GetUsers ¶
func (x *GetUserPostResponse) GetUsers() []*User
func (*GetUserPostResponse) ProtoMessage ¶
func (*GetUserPostResponse) ProtoMessage()
func (*GetUserPostResponse) ProtoReflect ¶
func (x *GetUserPostResponse) ProtoReflect() protoreflect.Message
func (*GetUserPostResponse) Reset ¶
func (x *GetUserPostResponse) Reset()
func (*GetUserPostResponse) String ¶
func (x *GetUserPostResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Country  string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	Job      *Job   `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetUserRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetCountry ¶
func (x *GetUserRequest) GetCountry() string
func (*GetUserRequest) GetJob ¶
func (x *GetUserRequest) GetJob() *Job
func (*GetUserRequest) GetUsername ¶
func (x *GetUserRequest) GetUsername() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetUserResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type GetUsersResponse ¶
type GetUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*GetUsersResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*GetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.
func (*GetUsersResponse) GetUsers ¶
func (x *GetUsersResponse) GetUsers() []*User
func (*GetUsersResponse) ProtoMessage ¶
func (*GetUsersResponse) ProtoMessage()
func (*GetUsersResponse) ProtoReflect ¶
func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
func (*GetUsersResponse) Reset ¶
func (x *GetUsersResponse) Reset()
func (*GetUsersResponse) String ¶
func (x *GetUsersResponse) String() string
type Job ¶
type Job struct {
	Company  string `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
	JobArea  string `protobuf:"bytes,2,opt,name=job_area,json=jobArea,proto3" json:"job_area,omitempty"`
	JobTitle string `protobuf:"bytes,3,opt,name=job_title,json=jobTitle,proto3" json:"job_title,omitempty"`
	JobType  string `protobuf:"bytes,4,opt,name=job_type,json=jobType,proto3" json:"job_type,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*Job) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Job) GetCompany ¶
func (*Job) GetJobArea ¶
func (*Job) GetJobTitle ¶
func (*Job) GetJobType ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type Post ¶
type Post int32
func (Post) Descriptor ¶
func (Post) Descriptor() protoreflect.EnumDescriptor
        
          
            func (Post) EnumDescriptor
            deprecated
            
          
  
    
  
      
      
    func (Post) Number ¶
func (x Post) Number() protoreflect.EnumNumber
func (Post) Type ¶
func (Post) Type() protoreflect.EnumType
type Summary ¶
type Summary struct {
	Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"`
	JobTypes  []string `protobuf:"bytes,2,rep,name=job_types,json=jobTypes,proto3" json:"job_types,omitempty"`
	JobTitles []string `protobuf:"bytes,3,rep,name=job_titles,json=jobTitles,proto3" json:"job_titles,omitempty"`
	Countries []string `protobuf:"bytes,4,rep,name=countries,proto3" json:"countries,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*Summary) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Summary) GetCountries ¶
func (*Summary) GetJobTitles ¶
func (*Summary) GetJobTypes ¶
func (*Summary) GetUsernames ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
func (*Summary) ProtoReflect ¶
func (x *Summary) ProtoReflect() protoreflect.Message
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct {
}
    UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) FilterUsers ¶
func (UnimplementedUserServiceServer) FilterUsers(context.Context, *FilterUserRequest) (*GetUsersResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) GetUsers ¶
func (UnimplementedUserServiceServer) GetUsers(context.Context, *GetUserRequest) (*GetUsersResponse, error)
func (UnimplementedUserServiceServer) GetUsersByJobTitle ¶
func (UnimplementedUserServiceServer) GetUsersByJobTitle(context.Context, *GetUserRequest) (*GetUsersResponse, error)
func (UnimplementedUserServiceServer) GetUsersPost ¶
func (UnimplementedUserServiceServer) GetUsersPost(context.Context, *GetUserPostRequest) (*GetUserPostResponse, error)
func (UnimplementedUserServiceServer) GetUsersSummary ¶
func (UnimplementedUserServiceServer) GetUsersSummary(context.Context, *GetSummaryRequest) (*GetSummaryResponse, error)
func (UnimplementedUserServiceServer) UpdateUserJob ¶
func (UnimplementedUserServiceServer) UpdateUserJob(context.Context, *UpdateUserJobRequest) (*UpdateUserJobResponse, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}
    UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateUserJobRequest ¶
type UpdateUserJobRequest struct {
	Job      *Job   `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*UpdateUserJobRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*UpdateUserJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserJobRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserJobRequest) GetJob ¶
func (x *UpdateUserJobRequest) GetJob() *Job
func (*UpdateUserJobRequest) GetUsername ¶
func (x *UpdateUserJobRequest) GetUsername() string
func (*UpdateUserJobRequest) ProtoMessage ¶
func (*UpdateUserJobRequest) ProtoMessage()
func (*UpdateUserJobRequest) ProtoReflect ¶
func (x *UpdateUserJobRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserJobRequest) Reset ¶
func (x *UpdateUserJobRequest) Reset()
func (*UpdateUserJobRequest) String ¶
func (x *UpdateUserJobRequest) String() string
type UpdateUserJobResponse ¶
type UpdateUserJobResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*UpdateUserJobResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*UpdateUserJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserJobResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserJobResponse) GetUser ¶
func (x *UpdateUserJobResponse) GetUser() *User
func (*UpdateUserJobResponse) ProtoMessage ¶
func (*UpdateUserJobResponse) ProtoMessage()
func (*UpdateUserJobResponse) ProtoReflect ¶
func (x *UpdateUserJobResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserJobResponse) Reset ¶
func (x *UpdateUserJobResponse) Reset()
func (*UpdateUserJobResponse) String ¶
func (x *UpdateUserJobResponse) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*UpdateUserResponse) Descriptor
            deprecated
            
          
  
    
  
      
      func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetId ¶
func (x *UpdateUserResponse) GetId() int64
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
type User ¶
type User struct {
	Id       int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Surname  string   `protobuf:"bytes,3,opt,name=surname,proto3" json:"surname,omitempty"`
	Email    string   `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Address  *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Job      *Job     `protobuf:"bytes,6,opt,name=job,proto3" json:"job,omitempty"`
	Post     Post     `protobuf:"varint,7,opt,name=post,proto3,enum=user.v1.Post" json:"post,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*User) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*User) GetAddress ¶
func (*User) GetSurname ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	GetUsers(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
	GetUsersByJobTitle(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
	FilterUsers(ctx context.Context, in *FilterUserRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
	GetUsersPost(ctx context.Context, in *GetUserPostRequest, opts ...grpc.CallOption) (*GetUserPostResponse, error)
	GetUsersSummary(ctx context.Context, in *GetSummaryRequest, opts ...grpc.CallOption) (*GetSummaryResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	UpdateUserJob(ctx context.Context, in *UpdateUserJobRequest, opts ...grpc.CallOption) (*UpdateUserJobResponse, error)
}
    UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	GetUsers(context.Context, *GetUserRequest) (*GetUsersResponse, error)
	GetUsersByJobTitle(context.Context, *GetUserRequest) (*GetUsersResponse, error)
	FilterUsers(context.Context, *FilterUserRequest) (*GetUsersResponse, error)
	GetUsersPost(context.Context, *GetUserPostRequest) (*GetUserPostResponse, error)
	GetUsersSummary(context.Context, *GetSummaryRequest) (*GetSummaryResponse, error)
	CreateUser(context.Context, *CreateUserRequest) (*GetUserResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	UpdateUserJob(context.Context, *UpdateUserJobRequest) (*UpdateUserJobResponse, error)
	// contains filtered or unexported methods
}
    UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility