dto

package
v0.0.0-...-1ec896d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBucketCommand

type CreateBucketCommand struct {
	Name      string
	PublicKey string
}

type CreateBucketResponse

type CreateBucketResponse struct {
	ID uuid.UUID
}

type CreateUserCommand

type CreateUserCommand struct {
	Email            string
	Admin            bool
	PersonalBucketID uuid.UUID
	PublicKey        string
	PrivateKey       []byte
}

type CreateUserInviteCommand

type CreateUserInviteCommand struct {
	Invitee *uuid.UUID
	Admin   bool
	Message string
	Expires *time.Time
}

type CreateUserInviteResponse

type CreateUserInviteResponse struct {
	ID    uuid.UUID
	Token []byte
}

type FileEntryListQuery

type FileEntryListQuery struct {
	BucketID      uuid.UUID
	DirectoryPath []string
	After         string
	PageSize      int
}

type LoginResponse

type LoginResponse struct {
	Token []byte `json:"token"`
}

type LoginUserCommand

type LoginUserCommand struct {
	Email    string `mapstructure:"email"`
	Password string `mapstructure:"password"`
}

type PasswordLoginRequest

type PasswordLoginRequest struct {
	Email    string `json:"email"`
	Password []byte `json:"password"`
}

func (*PasswordLoginRequest) Shred

func (p *PasswordLoginRequest) Shred()

func (*PasswordLoginRequest) UnmarshalJSON

func (p *PasswordLoginRequest) UnmarshalJSON(data []byte) error

type RegisterUserCommand

type RegisterUserCommand struct {
	InviteID  uuid.UUID          `mapstructure:"invite-id"`
	InviteKey domain.InviteToken `mapstructure:"key"`
	Email     string             `mapstructure:"email"`
	Password  string             `mapstructure:"password"`
}

type User

type User struct {
	ID               uuid.UUID `json:"id"`
	Email            string    `json:"email"`
	GivenName        string    `json:"given_name"`
	Surname          string    `json:"surname"`
	PersonalBucketID uuid.UUID `json:"personal_bucket_id"`
}

Jump to

Keyboard shortcuts

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