Documentation ¶
Index ¶
- Variables
- type EnrollmentRequest
- func (*EnrollmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollmentRequest) GetExpireAt() *timestamppb.Timestamp
- func (x *EnrollmentRequest) GetRole() string
- func (x *EnrollmentRequest) GetUserID() string
- func (*EnrollmentRequest) ProtoMessage()
- func (x *EnrollmentRequest) ProtoReflect() protoreflect.Message
- func (x *EnrollmentRequest) Reset()
- func (x *EnrollmentRequest) String() string
- func (m *EnrollmentRequest) Validate() error
- type EnrollmentRequestValidationError
- func (e EnrollmentRequestValidationError) Cause() error
- func (e EnrollmentRequestValidationError) Error() string
- func (e EnrollmentRequestValidationError) ErrorName() string
- func (e EnrollmentRequestValidationError) Field() string
- func (e EnrollmentRequestValidationError) Key() bool
- func (e EnrollmentRequestValidationError) Reason() string
- type RegistrationRequest
- func (*RegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationRequest) GetEmail() string
- func (x *RegistrationRequest) GetFirstname() string
- func (x *RegistrationRequest) GetLastname() string
- func (*RegistrationRequest) ProtoMessage()
- func (x *RegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *RegistrationRequest) Reset()
- func (x *RegistrationRequest) String() string
- func (m *RegistrationRequest) Validate() error
- type RegistrationRequestValidationError
- func (e RegistrationRequestValidationError) Cause() error
- func (e RegistrationRequestValidationError) Error() string
- func (e RegistrationRequestValidationError) ErrorName() string
- func (e RegistrationRequestValidationError) Field() string
- func (e RegistrationRequestValidationError) Key() bool
- func (e RegistrationRequestValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetConfirmed() bool
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetExpireAt() *timestamppb.Timestamp
- func (x *User) GetFirstname() string
- func (x *User) GetId() string
- func (x *User) GetLastname() string
- func (x *User) GetRole() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
var File_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EnrollmentRequest ¶
type EnrollmentRequest struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` ExpireAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expireAt,proto3" json:"expireAt,omitempty"` // contains filtered or unexported fields }
func (*EnrollmentRequest) Descriptor
deprecated
func (*EnrollmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnrollmentRequest.ProtoReflect.Descriptor instead.
func (*EnrollmentRequest) GetExpireAt ¶
func (x *EnrollmentRequest) GetExpireAt() *timestamppb.Timestamp
func (*EnrollmentRequest) GetRole ¶
func (x *EnrollmentRequest) GetRole() string
func (*EnrollmentRequest) GetUserID ¶
func (x *EnrollmentRequest) GetUserID() string
func (*EnrollmentRequest) ProtoMessage ¶
func (*EnrollmentRequest) ProtoMessage()
func (*EnrollmentRequest) ProtoReflect ¶
func (x *EnrollmentRequest) ProtoReflect() protoreflect.Message
func (*EnrollmentRequest) Reset ¶
func (x *EnrollmentRequest) Reset()
func (*EnrollmentRequest) String ¶
func (x *EnrollmentRequest) String() string
func (*EnrollmentRequest) Validate ¶
func (m *EnrollmentRequest) Validate() error
Validate checks the field values on EnrollmentRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type EnrollmentRequestValidationError ¶
type EnrollmentRequestValidationError struct {
// contains filtered or unexported fields
}
EnrollmentRequestValidationError is the validation error returned by EnrollmentRequest.Validate if the designated constraints aren't met.
func (EnrollmentRequestValidationError) Cause ¶
func (e EnrollmentRequestValidationError) Cause() error
Cause function returns cause value.
func (EnrollmentRequestValidationError) Error ¶
func (e EnrollmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (EnrollmentRequestValidationError) ErrorName ¶
func (e EnrollmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (EnrollmentRequestValidationError) Field ¶
func (e EnrollmentRequestValidationError) Field() string
Field function returns field value.
func (EnrollmentRequestValidationError) Key ¶
func (e EnrollmentRequestValidationError) Key() bool
Key function returns key value.
func (EnrollmentRequestValidationError) Reason ¶
func (e EnrollmentRequestValidationError) Reason() string
Reason function returns reason value.
type RegistrationRequest ¶
type RegistrationRequest struct { Firstname string `protobuf:"bytes,1,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,2,opt,name=lastname,proto3" json:"lastname,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*RegistrationRequest) Descriptor
deprecated
func (*RegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationRequest.ProtoReflect.Descriptor instead.
func (*RegistrationRequest) GetEmail ¶
func (x *RegistrationRequest) GetEmail() string
func (*RegistrationRequest) GetFirstname ¶
func (x *RegistrationRequest) GetFirstname() string
func (*RegistrationRequest) GetLastname ¶
func (x *RegistrationRequest) GetLastname() string
func (*RegistrationRequest) ProtoMessage ¶
func (*RegistrationRequest) ProtoMessage()
func (*RegistrationRequest) ProtoReflect ¶
func (x *RegistrationRequest) ProtoReflect() protoreflect.Message
func (*RegistrationRequest) Reset ¶
func (x *RegistrationRequest) Reset()
func (*RegistrationRequest) String ¶
func (x *RegistrationRequest) String() string
func (*RegistrationRequest) Validate ¶
func (m *RegistrationRequest) Validate() error
Validate checks the field values on RegistrationRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RegistrationRequestValidationError ¶
type RegistrationRequestValidationError struct {
// contains filtered or unexported fields
}
RegistrationRequestValidationError is the validation error returned by RegistrationRequest.Validate if the designated constraints aren't met.
func (RegistrationRequestValidationError) Cause ¶
func (e RegistrationRequestValidationError) Cause() error
Cause function returns cause value.
func (RegistrationRequestValidationError) Error ¶
func (e RegistrationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegistrationRequestValidationError) ErrorName ¶
func (e RegistrationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegistrationRequestValidationError) Field ¶
func (e RegistrationRequestValidationError) Field() string
Field function returns field value.
func (RegistrationRequestValidationError) Key ¶
func (e RegistrationRequestValidationError) Key() bool
Key function returns key value.
func (RegistrationRequestValidationError) Reason ¶
func (e RegistrationRequestValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Firstname string `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Confirmed bool `protobuf:"varint,7,opt,name=confirmed,proto3" json:"confirmed,omitempty"` ExpireAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expireAt,proto3" json:"expireAt,omitempty"` // contains filtered or unexported fields }
func NewUserProto ¶
NewUserProto casts native user model to protobuf User.
func (*User) Descriptor
deprecated
func (*User) GetConfirmed ¶
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetExpireAt ¶
func (x *User) GetExpireAt() *timestamppb.Timestamp
func (*User) GetFirstname ¶
func (*User) GetLastname ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.