router

package
v0.0.0-...-479bf75 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux

func NewMux(logger *slog.Logger, storage storage.Queries) http.Handler

Types

type UserHandler

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

func (UserHandler) Register

func (u UserHandler) Register(w http.ResponseWriter, r *http.Request)

type UserRegisterRequest

type UserRegisterRequest struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UserRegisterResponse

type UserRegisterResponse struct {
	ID       int            `json:"id"`
	Username string         `json:"username"`
	Email    string         `json:"email"`
	Profile  map[string]any `json:"profile,omitempty"`
}

Jump to

Keyboard shortcuts

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