Documentation
¶
Overview ¶
Code generated by ent, DO NOT EDIT.
Code generated by ent, DO NOT EDIT.
Index ¶
- func FieldLabel(name string) string
- func GetEntityTypeNames() []string
- type EntityList
- type EntityValues
- type Extension
- type Handler
- func (h *Handler) Create(ctx echo.Context, entityType string) error
- func (h *Handler) Delete(ctx echo.Context, entityType string, id int) error
- func (h *Handler) Get(ctx echo.Context, entityType string, id int) (url.Values, error)
- func (h *Handler) List(ctx echo.Context, entityType string) (*EntityList, error)
- func (h *Handler) PasswordTokenCreate(ctx echo.Context) error
- func (h *Handler) PasswordTokenDelete(ctx echo.Context, id int) error
- func (h *Handler) PasswordTokenGet(ctx echo.Context, id int) (url.Values, error)
- func (h *Handler) PasswordTokenList(ctx echo.Context) (*EntityList, error)
- func (h *Handler) PasswordTokenUpdate(ctx echo.Context, id int) error
- func (h *Handler) Update(ctx echo.Context, entityType string, id int) error
- func (h *Handler) UserCreate(ctx echo.Context) error
- func (h *Handler) UserDelete(ctx echo.Context, id int) error
- func (h *Handler) UserGet(ctx echo.Context, id int) (url.Values, error)
- func (h *Handler) UserList(ctx echo.Context) (*EntityList, error)
- func (h *Handler) UserUpdate(ctx echo.Context, id int) error
- type HandlerConfig
- type PasswordToken
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldLabel ¶
FieldLabel provides a label for an entity field name (ie, user_id -> User ID).
func GetEntityTypeNames ¶
func GetEntityTypeNames() []string
Types ¶
type EntityList ¶
type EntityList struct { Columns []string Entities []EntityValues Page int HasNextPage bool }
type EntityValues ¶
type Extension ¶
type Extension struct {
entc.DefaultExtension
}
Extension is the Ent extension that generates code to support the entity admin panel.
type Handler ¶
type Handler struct { Config HandlerConfig // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(client *ent.Client, cfg HandlerConfig) *Handler
func (*Handler) List ¶
func (h *Handler) List(ctx echo.Context, entityType string) (*EntityList, error)
func (*Handler) PasswordTokenCreate ¶
func (*Handler) PasswordTokenDelete ¶
func (*Handler) PasswordTokenGet ¶
func (*Handler) PasswordTokenList ¶
func (h *Handler) PasswordTokenList(ctx echo.Context) (*EntityList, error)
func (*Handler) PasswordTokenUpdate ¶
func (*Handler) UserCreate ¶
func (*Handler) UserDelete ¶
func (*Handler) UserList ¶
func (h *Handler) UserList(ctx echo.Context) (*EntityList, error)
func (*Handler) UserUpdate ¶
type HandlerConfig ¶
type PasswordToken ¶
Click to show internal directories.
Click to hide internal directories.