Documentation
¶
Index ¶
- Variables
- func RegisterUserMetaServer(s grpc.ServiceRegistrar, srv UserMetaServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetTracing_ID() string
- func (x *CreateRequest) GetUser() *common.UserInfo
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetMsg() string
- func (x *CreateResponse) GetStatusCode() int32
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type GetByIdRequest
- func (*GetByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdRequest) GetTracing_ID() string
- func (x *GetByIdRequest) GetUserUuid() string
- func (*GetByIdRequest) ProtoMessage()
- func (x *GetByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetByIdRequest) Reset()
- func (x *GetByIdRequest) String() string
- type GetByIdResponse
- func (*GetByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdResponse) GetMsg() string
- func (x *GetByIdResponse) GetStatusCode() int32
- func (x *GetByIdResponse) GetUser() *common.UserInfo
- func (*GetByIdResponse) ProtoMessage()
- func (x *GetByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetByIdResponse) Reset()
- func (x *GetByIdResponse) String() string
- type GetColleaguesRequest
- func (*GetColleaguesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetColleaguesRequest) GetOrganization() string
- func (x *GetColleaguesRequest) GetTracing_ID() string
- func (x *GetColleaguesRequest) GetUserUuid() string
- func (*GetColleaguesRequest) ProtoMessage()
- func (x *GetColleaguesRequest) ProtoReflect() protoreflect.Message
- func (x *GetColleaguesRequest) Reset()
- func (x *GetColleaguesRequest) String() string
- type GetColleaguesResponse
- func (*GetColleaguesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetColleaguesResponse) GetColleagues() []*common.UserInfo
- func (x *GetColleaguesResponse) GetMsg() string
- func (x *GetColleaguesResponse) GetStatusCode() int32
- func (*GetColleaguesResponse) ProtoMessage()
- func (x *GetColleaguesResponse) ProtoReflect() protoreflect.Message
- func (x *GetColleaguesResponse) Reset()
- func (x *GetColleaguesResponse) String() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetCallerUuid() string
- func (x *GetRequest) GetForUuid() string
- func (x *GetRequest) GetTracing_ID() string
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetMsg() string
- func (x *GetResponse) GetStatusCode() int32
- func (x *GetResponse) GetUser() *common.UserInfo
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type UnimplementedUserMetaServer
- func (UnimplementedUserMetaServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedUserMetaServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedUserMetaServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
- func (UnimplementedUserMetaServer) GetColleagues(context.Context, *GetColleaguesRequest) (*GetColleaguesResponse, error)
- func (UnimplementedUserMetaServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeUserMetaServer
- type UpdatableUser
- func (*UpdatableUser) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatableUser) GetFirstName() string
- func (x *UpdatableUser) GetLastName() string
- func (x *UpdatableUser) GetOrgnPosition() string
- func (x *UpdatableUser) GetProfileImgUrl() string
- func (*UpdatableUser) ProtoMessage()
- func (x *UpdatableUser) ProtoReflect() protoreflect.Message
- func (x *UpdatableUser) Reset()
- func (x *UpdatableUser) String() string
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetCallerUuid() string
- func (x *UpdateRequest) GetTracing_ID() string
- func (x *UpdateRequest) GetUser() *UpdatableUser
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetMsg() string
- func (x *UpdateResponse) GetStatusCode() int32
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
- type UserMetaClient
- type UserMetaServer
Constants ¶
This section is empty.
Variables ¶
var File_service_user_meta_agent_cmd_grpcserver_proto_api_user_meta_proto protoreflect.FileDescriptor
var UserMeta_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user_proto.UserMeta", HandlerType: (*UserMetaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _UserMeta_Create_Handler, }, { MethodName: "Update", Handler: _UserMeta_Update_Handler, }, { MethodName: "Get", Handler: _UserMeta_Get_Handler, }, { MethodName: "GetById", Handler: _UserMeta_GetById_Handler, }, { MethodName: "GetColleagues", Handler: _UserMeta_GetColleagues_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.user.meta.agent/cmd/grpcserver/proto/api.user-meta.proto", }
UserMeta_ServiceDesc is the grpc.ServiceDesc for UserMeta service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserMetaServer ¶
func RegisterUserMetaServer(s grpc.ServiceRegistrar, srv UserMetaServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` User *common.UserInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
RPC CREATE USER
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetTracing_ID ¶
func (x *CreateRequest) GetTracing_ID() string
func (*CreateRequest) GetUser ¶
func (x *CreateRequest) GetUser() *common.UserInfo
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetMsg ¶
func (x *CreateResponse) GetMsg() string
func (*CreateResponse) GetStatusCode ¶
func (x *CreateResponse) GetStatusCode() int32
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type GetByIdRequest ¶
type GetByIdRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` UserUuid string `protobuf:"bytes,2,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"` // contains filtered or unexported fields }
func (*GetByIdRequest) Descriptor
deprecated
func (*GetByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdRequest.ProtoReflect.Descriptor instead.
func (*GetByIdRequest) GetTracing_ID ¶
func (x *GetByIdRequest) GetTracing_ID() string
func (*GetByIdRequest) GetUserUuid ¶
func (x *GetByIdRequest) GetUserUuid() string
func (*GetByIdRequest) ProtoMessage ¶
func (*GetByIdRequest) ProtoMessage()
func (*GetByIdRequest) ProtoReflect ¶
func (x *GetByIdRequest) ProtoReflect() protoreflect.Message
func (*GetByIdRequest) Reset ¶
func (x *GetByIdRequest) Reset()
func (*GetByIdRequest) String ¶
func (x *GetByIdRequest) String() string
type GetByIdResponse ¶
type GetByIdResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` User *common.UserInfo `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetByIdResponse) Descriptor
deprecated
func (*GetByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdResponse.ProtoReflect.Descriptor instead.
func (*GetByIdResponse) GetMsg ¶
func (x *GetByIdResponse) GetMsg() string
func (*GetByIdResponse) GetStatusCode ¶
func (x *GetByIdResponse) GetStatusCode() int32
func (*GetByIdResponse) GetUser ¶
func (x *GetByIdResponse) GetUser() *common.UserInfo
func (*GetByIdResponse) ProtoMessage ¶
func (*GetByIdResponse) ProtoMessage()
func (*GetByIdResponse) ProtoReflect ¶
func (x *GetByIdResponse) ProtoReflect() protoreflect.Message
func (*GetByIdResponse) Reset ¶
func (x *GetByIdResponse) Reset()
func (*GetByIdResponse) String ¶
func (x *GetByIdResponse) String() string
type GetColleaguesRequest ¶
type GetColleaguesRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` UserUuid string `protobuf:"bytes,2,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"` Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` // contains filtered or unexported fields }
func (*GetColleaguesRequest) Descriptor
deprecated
func (*GetColleaguesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetColleaguesRequest.ProtoReflect.Descriptor instead.
func (*GetColleaguesRequest) GetOrganization ¶
func (x *GetColleaguesRequest) GetOrganization() string
func (*GetColleaguesRequest) GetTracing_ID ¶
func (x *GetColleaguesRequest) GetTracing_ID() string
func (*GetColleaguesRequest) GetUserUuid ¶
func (x *GetColleaguesRequest) GetUserUuid() string
func (*GetColleaguesRequest) ProtoMessage ¶
func (*GetColleaguesRequest) ProtoMessage()
func (*GetColleaguesRequest) ProtoReflect ¶
func (x *GetColleaguesRequest) ProtoReflect() protoreflect.Message
func (*GetColleaguesRequest) Reset ¶
func (x *GetColleaguesRequest) Reset()
func (*GetColleaguesRequest) String ¶
func (x *GetColleaguesRequest) String() string
type GetColleaguesResponse ¶
type GetColleaguesResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Colleagues []*common.UserInfo `protobuf:"bytes,3,rep,name=colleagues,proto3" json:"colleagues,omitempty"` // contains filtered or unexported fields }
func (*GetColleaguesResponse) Descriptor
deprecated
func (*GetColleaguesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetColleaguesResponse.ProtoReflect.Descriptor instead.
func (*GetColleaguesResponse) GetColleagues ¶
func (x *GetColleaguesResponse) GetColleagues() []*common.UserInfo
func (*GetColleaguesResponse) GetMsg ¶
func (x *GetColleaguesResponse) GetMsg() string
func (*GetColleaguesResponse) GetStatusCode ¶
func (x *GetColleaguesResponse) GetStatusCode() int32
func (*GetColleaguesResponse) ProtoMessage ¶
func (*GetColleaguesResponse) ProtoMessage()
func (*GetColleaguesResponse) ProtoReflect ¶
func (x *GetColleaguesResponse) ProtoReflect() protoreflect.Message
func (*GetColleaguesResponse) Reset ¶
func (x *GetColleaguesResponse) Reset()
func (*GetColleaguesResponse) String ¶
func (x *GetColleaguesResponse) String() string
type GetRequest ¶
type GetRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` CallerUuid string `protobuf:"bytes,2,opt,name=caller_uuid,json=callerUuid,proto3" json:"caller_uuid,omitempty"` ForUuid string `protobuf:"bytes,3,opt,name=for_uuid,json=forUuid,proto3" json:"for_uuid,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetCallerUuid ¶
func (x *GetRequest) GetCallerUuid() string
func (*GetRequest) GetForUuid ¶
func (x *GetRequest) GetForUuid() string
func (*GetRequest) GetTracing_ID ¶
func (x *GetRequest) GetTracing_ID() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` User *common.UserInfo `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetMsg ¶
func (x *GetResponse) GetMsg() string
func (*GetResponse) GetStatusCode ¶
func (x *GetResponse) GetStatusCode() int32
func (*GetResponse) GetUser ¶
func (x *GetResponse) GetUser() *common.UserInfo
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type UnimplementedUserMetaServer ¶
type UnimplementedUserMetaServer struct { }
UnimplementedUserMetaServer must be embedded to have forward compatible implementations.
func (UnimplementedUserMetaServer) Create ¶
func (UnimplementedUserMetaServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedUserMetaServer) Get ¶
func (UnimplementedUserMetaServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedUserMetaServer) GetById ¶
func (UnimplementedUserMetaServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
func (UnimplementedUserMetaServer) GetColleagues ¶
func (UnimplementedUserMetaServer) GetColleagues(context.Context, *GetColleaguesRequest) (*GetColleaguesResponse, error)
func (UnimplementedUserMetaServer) Update ¶
func (UnimplementedUserMetaServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeUserMetaServer ¶
type UnsafeUserMetaServer interface {
// contains filtered or unexported methods
}
UnsafeUserMetaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserMetaServer will result in compilation errors.
type UpdatableUser ¶
type UpdatableUser struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` OrgnPosition string `protobuf:"bytes,3,opt,name=orgn_position,json=orgnPosition,proto3" json:"orgn_position,omitempty"` ProfileImgUrl string `protobuf:"bytes,4,opt,name=profile_img_url,json=profileImgUrl,proto3" json:"profile_img_url,omitempty"` // contains filtered or unexported fields }
func (*UpdatableUser) Descriptor
deprecated
func (*UpdatableUser) Descriptor() ([]byte, []int)
Deprecated: Use UpdatableUser.ProtoReflect.Descriptor instead.
func (*UpdatableUser) GetFirstName ¶
func (x *UpdatableUser) GetFirstName() string
func (*UpdatableUser) GetLastName ¶
func (x *UpdatableUser) GetLastName() string
func (*UpdatableUser) GetOrgnPosition ¶
func (x *UpdatableUser) GetOrgnPosition() string
func (*UpdatableUser) GetProfileImgUrl ¶
func (x *UpdatableUser) GetProfileImgUrl() string
func (*UpdatableUser) ProtoMessage ¶
func (*UpdatableUser) ProtoMessage()
func (*UpdatableUser) ProtoReflect ¶
func (x *UpdatableUser) ProtoReflect() protoreflect.Message
func (*UpdatableUser) Reset ¶
func (x *UpdatableUser) Reset()
func (*UpdatableUser) String ¶
func (x *UpdatableUser) String() string
type UpdateRequest ¶
type UpdateRequest struct { Tracing_ID string `protobuf:"bytes,1,opt,name=tracing_ID,json=tracingID,proto3" json:"tracing_ID,omitempty"` CallerUuid string `protobuf:"bytes,2,opt,name=caller_uuid,json=callerUuid,proto3" json:"caller_uuid,omitempty"` User *UpdatableUser `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetCallerUuid ¶
func (x *UpdateRequest) GetCallerUuid() string
func (*UpdateRequest) GetTracing_ID ¶
func (x *UpdateRequest) GetTracing_ID() string
func (*UpdateRequest) GetUser ¶
func (x *UpdateRequest) GetUser() *UpdatableUser
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetMsg ¶
func (x *UpdateResponse) GetMsg() string
func (*UpdateResponse) GetStatusCode ¶
func (x *UpdateResponse) GetStatusCode() int32
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type UserMetaClient ¶
type UserMetaClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) GetById(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error) GetColleagues(ctx context.Context, in *GetColleaguesRequest, opts ...grpc.CallOption) (*GetColleaguesResponse, error) }
UserMetaClient is the client API for UserMeta 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 NewUserMetaClient ¶
func NewUserMetaClient(cc grpc.ClientConnInterface) UserMetaClient
type UserMetaServer ¶
type UserMetaServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error) GetColleagues(context.Context, *GetColleaguesRequest) (*GetColleaguesResponse, error) // contains filtered or unexported methods }
UserMetaServer is the server API for UserMeta service. All implementations must embed UnimplementedUserMetaServer for forward compatibility