http

package
v0.0.0-...-2b2b6fc Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserInput

type CreateUserInput struct {
	Sub         string                `json:"sub"`
	Secret      string                `json:"secret"`
	UserID      *accountdomain.UserID `json:"userId"`
	WorkspaceID *id.WorkspaceID       `json:"workspaceId"`
}

type CreateVerificationInput

type CreateVerificationInput struct {
	Email string `json:"email"`
}

type NotifyInput

type NotifyInput struct {
	Type    string                         `json:"type"`
	AssetID string                         `json:"assetId"`
	Status  *asset.ArchiveExtractionStatus `json:"status"`
	Task    *NotifyInputTask               `json:"-"`
}

type NotifyInputTask

type NotifyInputTask struct {
	TaskID string
	Status string
}

type PasswordResetInput

type PasswordResetInput struct {
	Email    string `json:"email"`
	Token    string `json:"token"`
	Password string `json:"password"`
}

type SignupInput

type SignupInput struct {
	Sub         *string                    `json:"sub"`
	Secret      *string                    `json:"secret"`
	UserID      *accountdomain.UserID      `json:"userId"`
	WorkspaceID *accountdomain.WorkspaceID `json:"workspaceId"`
	Name        string                     `json:"username"`
	Email       string                     `json:"email"`
	Password    string                     `json:"password"`
	Theme       *user.Theme                `json:"theme"`
	Lang        *language.Tag              `json:"lang"`
}

type SignupOutput

type SignupOutput struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

type TaskController

type TaskController struct {
	// contains filtered or unexported fields
}

func NewTaskController

func NewTaskController(uc interfaces.Asset) *TaskController

func (*TaskController) Notify

func (tc *TaskController) Notify(ctx context.Context, input NotifyInput) error

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func NewUserController

func NewUserController(usecase accountinterfaces.User) *UserController

func (*UserController) Signup

func (c *UserController) Signup(ctx context.Context, input SignupInput) (SignupOutput, error)

type VerifyUserOutput

type VerifyUserOutput struct {
	UserID   string `json:"userId"`
	Verified bool   `json:"verified"`
}

Jump to

Keyboard shortcuts

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