Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetEmail() string
- func (x *CreateUserRequest) GetName() string
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetRole() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreateUserResponse) GetEmail() string
- func (x *CreateUserResponse) GetLoginEnabled() bool
- func (x *CreateUserResponse) GetName() string
- func (x *CreateUserResponse) GetPublicId() string
- func (x *CreateUserResponse) GetRole() string
- func (x *CreateUserResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type DeleteUserRequest
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserResponse) GetSuccess() bool
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- type DisableUserLoginRequest
- func (*DisableUserLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableUserLoginRequest) GetPublicId() string
- func (*DisableUserLoginRequest) ProtoMessage()
- func (x *DisableUserLoginRequest) ProtoReflect() protoreflect.Message
- func (x *DisableUserLoginRequest) Reset()
- func (x *DisableUserLoginRequest) String() string
- type DisableUserLoginResponse
- func (*DisableUserLoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DisableUserLoginResponse) GetLoginEnabled() bool
- func (x *DisableUserLoginResponse) GetPublicId() string
- func (*DisableUserLoginResponse) ProtoMessage()
- func (x *DisableUserLoginResponse) ProtoReflect() protoreflect.Message
- func (x *DisableUserLoginResponse) Reset()
- func (x *DisableUserLoginResponse) String() string
- type EnableUserLoginRequest
- func (*EnableUserLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableUserLoginRequest) GetPublicId() string
- func (*EnableUserLoginRequest) ProtoMessage()
- func (x *EnableUserLoginRequest) ProtoReflect() protoreflect.Message
- func (x *EnableUserLoginRequest) Reset()
- func (x *EnableUserLoginRequest) String() string
- type EnableUserLoginResponse
- func (*EnableUserLoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnableUserLoginResponse) GetLoginEnabled() bool
- func (x *EnableUserLoginResponse) GetPublicId() string
- func (*EnableUserLoginResponse) ProtoMessage()
- func (x *EnableUserLoginResponse) ProtoReflect() protoreflect.Message
- func (x *EnableUserLoginResponse) Reset()
- func (x *EnableUserLoginResponse) String() string
- type GetUserRequest
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetUserResponse) GetEmail() string
- func (x *GetUserResponse) GetLoginEnabled() bool
- func (x *GetUserResponse) GetName() string
- func (x *GetUserResponse) GetPublicId() string
- func (x *GetUserResponse) GetRole() string
- func (x *GetUserResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type GetUsersRequest
- func (*GetUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersRequest) GetLimit() int32
- func (x *GetUsersRequest) GetOrder() string
- func (x *GetUsersRequest) GetPage() int32
- func (x *GetUsersRequest) GetSearch() string
- func (*GetUsersRequest) ProtoMessage()
- func (x *GetUsersRequest) ProtoReflect() protoreflect.Message
- func (x *GetUsersRequest) Reset()
- func (x *GetUsersRequest) String() string
- type GetUsersResponse
- func (*GetUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersResponse) GetTotal() int32
- func (x *GetUsersResponse) GetUsers() []*GetUserResponse
- func (*GetUsersResponse) ProtoMessage()
- func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetUsersResponse) Reset()
- func (x *GetUsersResponse) String() string
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) DisableUserLogin(context.Context, *DisableUserLoginRequest) (*DisableUserLoginResponse, error)
- func (UnimplementedUserServiceServer) EnableUserLogin(context.Context, *EnableUserLoginRequest) (*EnableUserLoginResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- type UnsafeUserServiceServer
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetEmail() string
- func (x *UpdateUserRequest) GetLoginEnabled() bool
- func (x *UpdateUserRequest) GetName() string
- func (x *UpdateUserRequest) GetPublicId() string
- func (x *UpdateUserRequest) GetRole() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserResponse
- func (*UpdateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *UpdateUserResponse) GetEmail() string
- func (x *UpdateUserResponse) GetLoginEnabled() bool
- func (x *UpdateUserResponse) GetName() string
- func (x *UpdateUserResponse) GetPublicId() string
- func (x *UpdateUserResponse) GetRole() string
- func (x *UpdateUserResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (*UpdateUserResponse) ProtoMessage()
- func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserResponse) Reset()
- func (x *UpdateUserResponse) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( UserService_GetUsers_FullMethodName = "/user.UserService/GetUsers" UserService_GetUser_FullMethodName = "/user.UserService/GetUser" UserService_CreateUser_FullMethodName = "/user.UserService/CreateUser" UserService_DeleteUser_FullMethodName = "/user.UserService/DeleteUser" UserService_UpdateUser_FullMethodName = "/user.UserService/UpdateUser" UserService_DisableUserLogin_FullMethodName = "/user.UserService/DisableUserLogin" UserService_EnableUserLogin_FullMethodName = "/user.UserService/EnableUserLogin" )
Variables ¶
var File_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUsers", Handler: _UserService_GetUsers_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DisableUserLogin", Handler: _UserService_DisableUserLogin_Handler, }, { MethodName: "EnableUserLogin", Handler: _UserService_EnableUserLogin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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 CreateUserRequest ¶
type CreateUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetName ¶
func (x *CreateUserRequest) GetName() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetRole ¶
func (x *CreateUserRequest) GetRole() string
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 CreateUserResponse ¶
type CreateUserResponse struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` LoginEnabled bool `protobuf:"varint,5,opt,name=login_enabled,json=loginEnabled,proto3" json:"login_enabled,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetCreatedAt ¶
func (x *CreateUserResponse) GetCreatedAt() *timestamppb.Timestamp
func (*CreateUserResponse) GetEmail ¶
func (x *CreateUserResponse) GetEmail() string
func (*CreateUserResponse) GetLoginEnabled ¶
func (x *CreateUserResponse) GetLoginEnabled() bool
func (*CreateUserResponse) GetName ¶
func (x *CreateUserResponse) GetName() string
func (*CreateUserResponse) GetPublicId ¶
func (x *CreateUserResponse) GetPublicId() string
func (*CreateUserResponse) GetRole ¶
func (x *CreateUserResponse) GetRole() string
func (*CreateUserResponse) GetUpdatedAt ¶
func (x *CreateUserResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetPublicId ¶
func (x *DeleteUserRequest) GetPublicId() 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 { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) GetSuccess ¶
func (x *DeleteUserResponse) GetSuccess() bool
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 DisableUserLoginRequest ¶
type DisableUserLoginRequest struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` // contains filtered or unexported fields }
func (*DisableUserLoginRequest) Descriptor
deprecated
func (*DisableUserLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableUserLoginRequest.ProtoReflect.Descriptor instead.
func (*DisableUserLoginRequest) GetPublicId ¶
func (x *DisableUserLoginRequest) GetPublicId() string
func (*DisableUserLoginRequest) ProtoMessage ¶
func (*DisableUserLoginRequest) ProtoMessage()
func (*DisableUserLoginRequest) ProtoReflect ¶
func (x *DisableUserLoginRequest) ProtoReflect() protoreflect.Message
func (*DisableUserLoginRequest) Reset ¶
func (x *DisableUserLoginRequest) Reset()
func (*DisableUserLoginRequest) String ¶
func (x *DisableUserLoginRequest) String() string
type DisableUserLoginResponse ¶
type DisableUserLoginResponse struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` LoginEnabled bool `protobuf:"varint,2,opt,name=login_enabled,json=loginEnabled,proto3" json:"login_enabled,omitempty"` // contains filtered or unexported fields }
func (*DisableUserLoginResponse) Descriptor
deprecated
func (*DisableUserLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisableUserLoginResponse.ProtoReflect.Descriptor instead.
func (*DisableUserLoginResponse) GetLoginEnabled ¶
func (x *DisableUserLoginResponse) GetLoginEnabled() bool
func (*DisableUserLoginResponse) GetPublicId ¶
func (x *DisableUserLoginResponse) GetPublicId() string
func (*DisableUserLoginResponse) ProtoMessage ¶
func (*DisableUserLoginResponse) ProtoMessage()
func (*DisableUserLoginResponse) ProtoReflect ¶
func (x *DisableUserLoginResponse) ProtoReflect() protoreflect.Message
func (*DisableUserLoginResponse) Reset ¶
func (x *DisableUserLoginResponse) Reset()
func (*DisableUserLoginResponse) String ¶
func (x *DisableUserLoginResponse) String() string
type EnableUserLoginRequest ¶
type EnableUserLoginRequest struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` // contains filtered or unexported fields }
func (*EnableUserLoginRequest) Descriptor
deprecated
func (*EnableUserLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableUserLoginRequest.ProtoReflect.Descriptor instead.
func (*EnableUserLoginRequest) GetPublicId ¶
func (x *EnableUserLoginRequest) GetPublicId() string
func (*EnableUserLoginRequest) ProtoMessage ¶
func (*EnableUserLoginRequest) ProtoMessage()
func (*EnableUserLoginRequest) ProtoReflect ¶
func (x *EnableUserLoginRequest) ProtoReflect() protoreflect.Message
func (*EnableUserLoginRequest) Reset ¶
func (x *EnableUserLoginRequest) Reset()
func (*EnableUserLoginRequest) String ¶
func (x *EnableUserLoginRequest) String() string
type EnableUserLoginResponse ¶
type EnableUserLoginResponse struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` LoginEnabled bool `protobuf:"varint,2,opt,name=login_enabled,json=loginEnabled,proto3" json:"login_enabled,omitempty"` // contains filtered or unexported fields }
func (*EnableUserLoginResponse) Descriptor
deprecated
func (*EnableUserLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnableUserLoginResponse.ProtoReflect.Descriptor instead.
func (*EnableUserLoginResponse) GetLoginEnabled ¶
func (x *EnableUserLoginResponse) GetLoginEnabled() bool
func (*EnableUserLoginResponse) GetPublicId ¶
func (x *EnableUserLoginResponse) GetPublicId() string
func (*EnableUserLoginResponse) ProtoMessage ¶
func (*EnableUserLoginResponse) ProtoMessage()
func (*EnableUserLoginResponse) ProtoReflect ¶
func (x *EnableUserLoginResponse) ProtoReflect() protoreflect.Message
func (*EnableUserLoginResponse) Reset ¶
func (x *EnableUserLoginResponse) Reset()
func (*EnableUserLoginResponse) String ¶
func (x *EnableUserLoginResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetPublicId ¶
func (x *GetUserRequest) GetPublicId() 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 { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` LoginEnabled bool `protobuf:"varint,5,opt,name=login_enabled,json=loginEnabled,proto3" json:"login_enabled,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetCreatedAt ¶
func (x *GetUserResponse) GetCreatedAt() *timestamppb.Timestamp
func (*GetUserResponse) GetEmail ¶
func (x *GetUserResponse) GetEmail() string
func (*GetUserResponse) GetLoginEnabled ¶
func (x *GetUserResponse) GetLoginEnabled() bool
func (*GetUserResponse) GetName ¶
func (x *GetUserResponse) GetName() string
func (*GetUserResponse) GetPublicId ¶
func (x *GetUserResponse) GetPublicId() string
func (*GetUserResponse) GetRole ¶
func (x *GetUserResponse) GetRole() string
func (*GetUserResponse) GetUpdatedAt ¶
func (x *GetUserResponse) GetUpdatedAt() *timestamppb.Timestamp
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 GetUsersRequest ¶
type GetUsersRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // starts at 1 Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // default 50 Order string `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"` // asc or desc Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"` // search text optional // contains filtered or unexported fields }
func (*GetUsersRequest) Descriptor
deprecated
func (*GetUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.
func (*GetUsersRequest) GetLimit ¶
func (x *GetUsersRequest) GetLimit() int32
func (*GetUsersRequest) GetOrder ¶
func (x *GetUsersRequest) GetOrder() string
func (*GetUsersRequest) GetPage ¶
func (x *GetUsersRequest) GetPage() int32
func (*GetUsersRequest) GetSearch ¶
func (x *GetUsersRequest) GetSearch() string
func (*GetUsersRequest) ProtoMessage ¶
func (*GetUsersRequest) ProtoMessage()
func (*GetUsersRequest) ProtoReflect ¶
func (x *GetUsersRequest) ProtoReflect() protoreflect.Message
func (*GetUsersRequest) Reset ¶
func (x *GetUsersRequest) Reset()
func (*GetUsersRequest) String ¶
func (x *GetUsersRequest) String() string
type GetUsersResponse ¶
type GetUsersResponse struct { Users []*GetUserResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetUsersResponse) Descriptor
deprecated
func (*GetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.
func (*GetUsersResponse) GetTotal ¶
func (x *GetUsersResponse) GetTotal() int32
func (*GetUsersResponse) GetUsers ¶
func (x *GetUsersResponse) GetUsers() []*GetUserResponse
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 UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) DisableUserLogin ¶
func (UnimplementedUserServiceServer) DisableUserLogin(context.Context, *DisableUserLoginRequest) (*DisableUserLoginResponse, error)
func (UnimplementedUserServiceServer) EnableUserLogin ¶
func (UnimplementedUserServiceServer) EnableUserLogin(context.Context, *EnableUserLoginRequest) (*EnableUserLoginResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) GetUsers ¶
func (UnimplementedUserServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, 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 UpdateUserRequest ¶
type UpdateUserRequest struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` LoginEnabled bool `protobuf:"varint,5,opt,name=login_enabled,json=loginEnabled,proto3" json:"login_enabled,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetEmail ¶
func (x *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetLoginEnabled ¶
func (x *UpdateUserRequest) GetLoginEnabled() bool
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetPublicId ¶
func (x *UpdateUserRequest) GetPublicId() string
func (*UpdateUserRequest) GetRole ¶
func (x *UpdateUserRequest) GetRole() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct { PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` LoginEnabled bool `protobuf:"varint,5,opt,name=login_enabled,json=loginEnabled,proto3" json:"login_enabled,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetCreatedAt ¶
func (x *UpdateUserResponse) GetCreatedAt() *timestamppb.Timestamp
func (*UpdateUserResponse) GetEmail ¶
func (x *UpdateUserResponse) GetEmail() string
func (*UpdateUserResponse) GetLoginEnabled ¶
func (x *UpdateUserResponse) GetLoginEnabled() bool
func (*UpdateUserResponse) GetName ¶
func (x *UpdateUserResponse) GetName() string
func (*UpdateUserResponse) GetPublicId ¶
func (x *UpdateUserResponse) GetPublicId() string
func (*UpdateUserResponse) GetRole ¶
func (x *UpdateUserResponse) GetRole() string
func (*UpdateUserResponse) GetUpdatedAt ¶
func (x *UpdateUserResponse) GetUpdatedAt() *timestamppb.Timestamp
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 UserServiceClient ¶
type UserServiceClient interface { GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) DisableUserLogin(ctx context.Context, in *DisableUserLoginRequest, opts ...grpc.CallOption) (*DisableUserLoginResponse, error) EnableUserLogin(ctx context.Context, in *EnableUserLoginRequest, opts ...grpc.CallOption) (*EnableUserLoginResponse, 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 { GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) DisableUserLogin(context.Context, *DisableUserLoginRequest) (*DisableUserLoginResponse, error) EnableUserLogin(context.Context, *EnableUserLoginRequest) (*EnableUserLoginResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility