http

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 9 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 *id.UserID `json:"userId"`
	TeamID *id.TeamID `json:"teamId"`
}

type CreateVerificationInput added in v0.6.0

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

type PasswordResetInput added in v0.6.0

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 added in v0.6.0

type SignupInput struct {
	Sub    *string    `json:"sub"`
	Secret *string    `json:"secret"`
	UserID *id.UserID `json:"userId"`
	TeamID *id.TeamID `json:"teamId"`
	Name   *string    `json:"name"`
	// Username is an alias of Name
	Username *string       `json:"username"`
	Email    *string       `json:"email"`
	Password *string       `json:"password"`
	Theme    *user.Theme   `json:"theme"`
	Lang     *language.Tag `json:"lang"`
}

type SignupOutput added in v0.6.0

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 interfaces.User) *UserController

func (*UserController) CreateVerification added in v0.6.0

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

func (*UserController) PasswordReset added in v0.6.0

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

func (*UserController) Signup added in v0.6.0

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

func (*UserController) StartPasswordReset added in v0.6.0

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

func (*UserController) VerifyUser added in v0.6.0

func (c *UserController) VerifyUser(ctx context.Context, code string) (VerifyUserOutput, error)

type VerifyUserOutput added in v0.6.0

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