Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserGet = request.Handler(func(r *GetUserRequest) (*GetUserResponse, error) { return &GetUserResponse{ User: r.User, }, nil })
View Source
var UserList = request.Handler(func(r *ListUserRequest) (*ListUserResponse, error) { var users []*models.User var err error err = r.Read(func(tx *sqlx.Tx) error { users, err = models.UserQuery(r.Ctx).Get(tx) return err }) if err != nil { return nil, err } return &ListUserResponse{ Users: users, }, nil })
Functions ¶
This section is empty.
Types ¶
type GetUserRequest ¶ added in v0.8.0
type GetUserResponse ¶ added in v0.8.0
type ListUserRequest ¶ added in v0.8.0
type ListUserResponse ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.