daos

package
v0.0.0-...-a5e1e4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	ID                string `gorm:"type:uuid;primary_key;"`
	UserID            string
	Name              string
	Data              []byte
	Type              string
	Created           time.Time
	ParentCertificate string
	KeyID             string
}

func (*Certificate) ToLightResponse

func (d *Certificate) ToLightResponse() *contracts.CertificateLightResponse

type Key

type Key struct {
	ID        string `gorm:"type:uuid;primary_key;"`
	UserID    string
	Name      string
	Data      []byte
	Algorithm string
	Created   time.Time
}

type Session

type Session struct {
	ID         string `gorm:"type:uuid;primary_key;"`
	Created    time.Time
	Expiration time.Time
	UserID     string `gorm:"type:uuid;"`
}

func (*Session) ToResponse

func (s *Session) ToResponse() *contracts.SessionResponse

type User

type User struct {
	ID        string `gorm:"type:uuid;primary_key;"`
	FirstName string
	LastName  string
	Email     string
	Password  string
}

func NewUserFromProps

func NewUserFromProps(props map[string]interface{}) *User

func (*User) ToResponse

func (u *User) ToResponse() *contracts.UserResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL