Documentation
¶
Index ¶
- func Delete(g Group, path string, handler func(context.Context) error)
- func DeleteID[I any](g Group, path string, handler func(context.Context, I) error)
- func DeleteIn[I any](g Group, path string, handler func(context.Context, I) error)
- func Get[O any](g Group, path string, handler func(context.Context) (O, error))
- func GetID[I, O any](g Group, path string, handler func(context.Context, I) (O, error))
- func GetIn[I any, O any](g Group, path string, handler func(context.Context, I) (O, error))
- func GetInOut[I any, O any](g Group, path string, handler func(context.Context, I) (O, error))
- func List[I, O any](g Group, path string, handler func(context.Context, I) (O, error))
- func New(ctx context.Context, addr string, db db.DB, dev bool) error
- func NewAPI(m *http.ServeMux, db db.DB, dev bool) huma.API
- func Post[O any](g Group, path string, handler func(context.Context) (O, error))
- func PostBody[I, O any](g Group, path string, handler func(context.Context, I) (O, error))
- func PostCookie[I any](g Group, path string, handler func(context.Context, I) (http.Cookie, error))
- func Put[B, O any](g Group, path string, handler func(context.Context, B) (O, error))
- func PutID[I, B, O any](g Group, path string, handler func(context.Context, I, B) (O, error))
- type ContactListIn
- type ContactListOut
- type ContactUpdateIn
- type GetHealthOut
- type Group
- type InBody
- type InBodyID
- type InID
- type OutBody
- type OutCookie
- type SessionGetIn
- type SessionGetOut
- type UserCreateIn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostCookie ¶
Types ¶
type ContactListIn ¶
type ContactListOut ¶
type ContactUpdateIn ¶
type ContactUpdateIn struct {
Email string `json:"email"`
Info models.ContactInfo `json:"info"`
Name string `json:"name"`
Phone string `json:"phone"`
}
type GetHealthOut ¶
type SessionGetIn ¶
type SessionGetOut ¶
type SessionGetOut struct {
Body q.UserGetOut
Session http.Cookie `cookie:"session"`
Status int
}
type UserCreateIn ¶
Click to show internal directories.
Click to hide internal directories.