ds

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID        AccountID `json:"id"`
	Username  string    `json:"username"`
	Password  string    `json:"password"`
	Salt      string
	Email     string    `json:"email"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type AccountGroupAssociation

type AccountGroupAssociation struct {
	AccountID AccountID `json:"account_id"`
	GroupID   string    `json:"group_id"`
	CreatedAt time.Time `json:"created_at"`
}

type AccountID

type AccountID uuid.UUID

func ParseAccountId

func ParseAccountId(id string) (AccountID, error)

func (*AccountID) String

func (u *AccountID) String() string

type Group

type Group struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type PasswordResetToken

type PasswordResetToken struct {
	AccountID string
	Token     string
	Expiry    time.Time
}

type Session

type Session struct {
	AccountID AccountID `json:"account_id"`
	SessionID string    `json:"session_id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	Valid     bool      `json:"valid"`
}

Jump to

Keyboard shortcuts

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