http

package
v0.0.0-...-55990d1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportDataset

func ExportDataset() echo.HandlerFunc

Types

type CreateVerificationInput

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

type PasswordResetInput

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

type PublishedController

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

func NewPublishedController

func NewPublishedController(usecase interfaces.Published) *PublishedController

func (*PublishedController) Data

func (c *PublishedController) Data(ctx context.Context, name string) (io.Reader, error)

func (*PublishedController) Index

func (c *PublishedController) Index(ctx context.Context, name string, url *url.URL) (string, error)

func (*PublishedController) Metadata

type SignupInput

type SignupInput struct {
	Sub         *string                    `json:"sub"`
	Secret      *string                    `json:"secret"`
	UserID      *accountdomain.UserID      `json:"userId"`
	WorkspaceID *accountdomain.WorkspaceID `json:"workspaceId"`
	TeamID      *accountdomain.WorkspaceID `json:"teamId"` // TeamID is an alias of WorkspaceID
	Name        string                     `json:"name"`
	Username    string                     `json:"username"` // ysername is an alias of Name
	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 UserController

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

func NewUserController

func NewUserController(usecase accountinterfaces.User) *UserController

func (*UserController) CreateVerification

func (c *UserController) CreateVerification(ctx context.Context, input CreateVerificationInput) error

func (*UserController) PasswordReset

func (c *UserController) PasswordReset(ctx context.Context, input PasswordResetInput) error

func (*UserController) Signup

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

func (*UserController) StartPasswordReset

func (c *UserController) StartPasswordReset(ctx context.Context, input PasswordResetInput) error

func (*UserController) VerifyUser

func (c *UserController) VerifyUser(ctx context.Context, code string) (VerifyUserOutput, 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