Documentation ¶
Index ¶
- func AcceptInviteFormNew(sender sender.Sender, invite *core.UserInvitation) forms.Form
- func ChangePasswordFormNew(u *core.User) forms.Form
- func EditPostFormNew(ctx context.Context, db boil.ContextExecutor, u *core.User, postID string) (forms.Form, error)
- func LoginFormNew() forms.Form
- func NewCommentFormNew(u *core.User) forms.Form
- func NewPostFormNew(u *core.User) forms.Form
- func SendInviteFormNew(sender sender.Sender, u *core.User) forms.Form
- func SettingsGeneralFormNew(u *core.User) forms.Form
- func SignupFormNew(sender sender.Sender) forms.Form
- func SignupWaitingListFormNew(sender sender.Sender) forms.Form
- func WhitelistConnectionNew(u *core.User) forms.Form
- type AcceptInviteForm
- type AcceptInviteFormInput
- type ChangePasswordForm
- type ChangePasswordFormInput
- type LoginForm
- type LoginFormInput
- type NewCommentForm
- type NewCommentFormInput
- type PostForm
- type PostFormAction
- type PostFormInput
- type SendInviteForm
- type SendInviteFormInput
- type SettingsGeneralForm
- type SettingsGeneralFormInput
- type SignupForm
- type SignupFormInput
- type SignupWaitingListForm
- type SignupWaitingListFormInput
- type WhitelistConnection
- type WhitelistConnectionInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptInviteFormNew ¶
func EditPostFormNew ¶
func LoginFormNew ¶
Types ¶
type AcceptInviteForm ¶
type AcceptInviteForm struct { *forms.FormBase[AcceptInviteFormInput] Sender sender.Sender Invite *core.UserInvitation }
func (*AcceptInviteForm) Save ¶
func (f *AcceptInviteForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*AcceptInviteForm) Validate ¶
func (f *AcceptInviteForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type AcceptInviteFormInput ¶
type ChangePasswordForm ¶
type ChangePasswordForm struct { *forms.FormBase[ChangePasswordFormInput] User *core.User }
func (*ChangePasswordForm) Save ¶
func (f *ChangePasswordForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*ChangePasswordForm) Validate ¶
func (f *ChangePasswordForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type ChangePasswordFormInput ¶
type LoginForm ¶
type LoginForm struct { *forms.FormBase[LoginFormInput] }
func (*LoginForm) Save ¶
func (f *LoginForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
type LoginFormInput ¶
type NewCommentForm ¶
type NewCommentForm struct { *forms.FormBase[NewCommentFormInput] User *core.User }
func (*NewCommentForm) Save ¶
func (f *NewCommentForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*NewCommentForm) Validate ¶
func (f *NewCommentForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type NewCommentFormInput ¶
type PostForm ¶
func (*PostForm) Save ¶
func (f *PostForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
type PostFormAction ¶
type PostFormAction string
const ( PostFormActionSavePost PostFormAction = "save_post" PostFormActionMakeDraft PostFormAction = "make_draft" PostFormActionPublish PostFormAction = "publish" PostFormActionDelete PostFormAction = "delete" )
func (PostFormAction) String ¶
func (p PostFormAction) String() string
type PostFormInput ¶
type PostFormInput struct { Subject string `form:"subject"` Body string `form:"body"` Visibility core.PostVisibility `form:"visibility"` SaveAction PostFormAction `form:"save_action"` }
type SendInviteForm ¶
type SendInviteForm struct { *forms.FormBase[SendInviteFormInput] Sender sender.Sender User *core.User }
func (*SendInviteForm) Save ¶
func (f *SendInviteForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*SendInviteForm) Validate ¶
func (f *SendInviteForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type SendInviteFormInput ¶
type SendInviteFormInput struct {
Email string `form:"email"`
}
type SettingsGeneralForm ¶
type SettingsGeneralForm struct { *forms.FormBase[SettingsGeneralFormInput] User *core.User }
func (*SettingsGeneralForm) Save ¶
func (f *SettingsGeneralForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*SettingsGeneralForm) Validate ¶
func (f *SettingsGeneralForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type SettingsGeneralFormInput ¶
type SettingsGeneralFormInput struct {
Timezone string `form:"timezone"`
}
type SignupForm ¶
type SignupForm struct { *forms.FormBase[SignupFormInput] Sender sender.Sender }
func (*SignupForm) Save ¶
func (f *SignupForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*SignupForm) Validate ¶
func (f *SignupForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type SignupFormInput ¶
type SignupWaitingListForm ¶
type SignupWaitingListForm struct { *forms.FormBase[SignupWaitingListFormInput] Sender sender.Sender }
func (*SignupWaitingListForm) Save ¶
func (f *SignupWaitingListForm) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*SignupWaitingListForm) Validate ¶
func (f *SignupWaitingListForm) Validate(c *gin.Context, db boil.ContextExecutor) error
type WhitelistConnection ¶
type WhitelistConnection struct { *forms.FormBase[WhitelistConnectionInput] User *core.User }
func (*WhitelistConnection) Save ¶
func (f *WhitelistConnection) Save(c context.Context, exec boil.ContextExecutor) (forms.FormSaveAction, error)
func (*WhitelistConnection) Validate ¶
func (f *WhitelistConnection) Validate(c *gin.Context, db boil.ContextExecutor) error
type WhitelistConnectionInput ¶
type WhitelistConnectionInput struct {
Username string `form:"username"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.