setup_handler

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(server *server.Server, grp *huma.Group)

Types

type CreateUserInput

type CreateUserInput struct {
	Body struct {
		Email    string `json:"email" required:"true" format:"email"`
		Password string `json:"password" required:"true" minLength:"6"`
	}
}

type CreateUserResponse

type CreateUserResponse struct {
	Body struct {
		Data *UserData `json:"data" nullable:"false"`
	}
}

type HandlerGroup

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

func (*HandlerGroup) CreateUser

func (self *HandlerGroup) CreateUser(ctx context.Context, input *CreateUserInput) (*CreateUserResponse, error)

func (*HandlerGroup) GetStatus

func (self *HandlerGroup) GetStatus(ctx context.Context, input *server.EmptyInput) (*SetupStatusResponse, error)

type SetupData

type SetupData struct {
	IsBootstrapped     bool `json:"is_bootstrapped"`
	IsFirstUserCreated bool `json:"is_first_user_created"`
}

type SetupStatusResponse

type SetupStatusResponse struct {
	Body struct {
		Data *SetupData `json:"data" nullable:"false"`
	}
}

type UserData

type UserData struct {
	Email string `json:"email" required:"true" format:"email"`
}

Jump to

Keyboard shortcuts

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