Documentation
¶
Index ¶
- Variables
- func RegisterUserMgmtServiceServer(s grpc.ServiceRegistrar, srv UserMgmtServiceServer)
- type CreateUserRequest
- type CreateUserResponse
- type NewUser
- func (*NewUser) Descriptor() ([]byte, []int)deprecated
- func (x *NewUser) GetEmail() string
- func (x *NewUser) GetName() string
- func (x *NewUser) GetPassword() string
- func (x *NewUser) GetPasswordConfirm() string
- func (x *NewUser) GetRoles() []string
- func (*NewUser) ProtoMessage()
- func (x *NewUser) ProtoReflect() protoreflect.Message
- func (x *NewUser) Reset()
- func (x *NewUser) String() string
- type UnimplementedUserMgmtServiceServer
- type UnsafeUserMgmtServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetDateCreated() *timestamppb.Timestamp
- func (x *User) GetDateUpdated() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetName() string
- func (x *User) GetPasswordHash() []byte
- func (x *User) GetRoles() []string
- func (x *User) GetUuid() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserMgmtServiceClient
- type UserMgmtServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_usermgmt_usermgmtpb_usermgmtservice_proto protoreflect.FileDescriptor
var UserMgmtService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "usermgmtpb.UserMgmtService", HandlerType: (*UserMgmtServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserMgmtService_CreateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "usermgmt/usermgmtpb/usermgmtservice.proto", }
UserMgmtService_ServiceDesc is the grpc.ServiceDesc for UserMgmtService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserMgmtServiceServer ¶
func RegisterUserMgmtServiceServer(s grpc.ServiceRegistrar, srv UserMgmtServiceServer)
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { NewUser *NewUser `protobuf:"bytes,1,opt,name=new_user,json=newUser,proto3" json:"new_user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetNewUser ¶
func (x *CreateUserRequest) GetNewUser() *NewUser
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 { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetUser ¶
func (x *CreateUserResponse) GetUser() *User
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 NewUser ¶
type NewUser 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"` Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` PasswordConfirm string `protobuf:"bytes,5,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"` // contains filtered or unexported fields }
func (*NewUser) Descriptor
deprecated
func (*NewUser) GetPassword ¶
func (*NewUser) GetPasswordConfirm ¶
func (*NewUser) ProtoMessage ¶
func (*NewUser) ProtoMessage()
func (*NewUser) ProtoReflect ¶
func (x *NewUser) ProtoReflect() protoreflect.Message
type UnimplementedUserMgmtServiceServer ¶
type UnimplementedUserMgmtServiceServer struct { }
UnimplementedUserMgmtServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserMgmtServiceServer) CreateUser ¶
func (UnimplementedUserMgmtServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
type UnsafeUserMgmtServiceServer ¶
type UnsafeUserMgmtServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserMgmtServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserMgmtServiceServer will result in compilation errors.
type User ¶
type User struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,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"` Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` PasswordHash []byte `protobuf:"bytes,5,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` DateCreated *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"` DateUpdated *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=date_updated,json=dateUpdated,proto3" json:"date_updated,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetDateCreated ¶
func (x *User) GetDateCreated() *timestamppb.Timestamp
func (*User) GetDateUpdated ¶
func (x *User) GetDateUpdated() *timestamppb.Timestamp
func (*User) GetPasswordHash ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserMgmtServiceClient ¶
type UserMgmtServiceClient interface {
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
}
UserMgmtServiceClient is the client API for UserMgmtService 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 NewUserMgmtServiceClient ¶
func NewUserMgmtServiceClient(cc grpc.ClientConnInterface) UserMgmtServiceClient
type UserMgmtServiceServer ¶
type UserMgmtServiceServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) // contains filtered or unexported methods }
UserMgmtServiceServer is the server API for UserMgmtService service. All implementations must embed UnimplementedUserMgmtServiceServer for forward compatibility