Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { Email string Secret string Type vocabulary.CredentialsType }
Credentials struct
func (*Credentials) Validate ¶
func (cr *Credentials) Validate() error
type Lock ¶
type Lock struct { Reason string `json:"reason"` CreatedTime *time.Time `json:"created_time"` Code string `json:"code"` }
type LoginPayload ¶
type LoginPayload interface {
ToCredentials() (*Credentials, error)
}
LoginPayload interface
type Metadata ¶
type Metadata struct{}
type Repository ¶
type SessionInfo ¶
type SessionPayload ¶
type SessionPayload interface {
ToSession() (*SessionInfo, error)
}
type SessionRepository ¶
type User ¶
type User struct { ID uuid.UUID `json:"id" db:"id"` CreatedTime *time.Time `json:"created_time" db:"created_time"` ModifiedTime *time.Time `json:"modified_time" db:"modified_time"` Email string `json:"email" db:"email"` FullName string `json:"full_name" db:"full_name"` Password string `json:"password" db:"password"` Lock *Lock `json:"lock" db:"lock"` Metadata Metadata `json:"metadata" db:"metadata"` }
func (*User) ToSession ¶
func (u *User) ToSession() (*SessionInfo, error)
Click to show internal directories.
Click to hide internal directories.