Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyTaken = errors.New("is already taken")
)
Functions ¶
This section is empty.
Types ¶
type AdminUser ¶
type AdminUser struct { ID int64 Name nulls.String `db:"name"` Email nulls.String `db:"email"` PasswordHash nulls.String `db:"password_hash"` InsertedAt time.Time `db:"inserted_at"` UpdatedAt time.Time `db:"updated_at"` Password string `db:"-"` Errors map[string]string `db:"-"` }
func GetAdminByEmail ¶
func GetAdminUser ¶
func NewAdminUser ¶
type Page ¶
type Page struct { ID int64 Title nulls.String `db:"title"` PageTitle nulls.String `db:"page_title"` MetaDescription nulls.String `db:"meta_description"` Content nulls.String `db:"content"` Slug nulls.String `db:"slug"` Layout nulls.String `db:"layout"` InsertedAt time.Time `db:"inserted_at"` UpdatedAt time.Time `db:"updated_at"` Errors map[string]string `db:"-"` }
func GetPageBySlug ¶
func ListAllPages ¶
type SupportMessage ¶
type SupportMessage struct { ID int64 Name nulls.String `db:"name"` Email nulls.String `db:"email"` Subject nulls.String `db:"subject"` Content nulls.String `db:"content"` InsertedAt time.Time `db:"inserted_at"` UpdatedAt time.Time `db:"updated_at"` Errors map[string]string `db:"-"` }
func ListMessages ¶
func ListMessages(offset, limit int) ([]*SupportMessage, int, error)
func (*SupportMessage) Create ¶
func (m *SupportMessage) Create() error
func (*SupportMessage) Delete ¶
func (b *SupportMessage) Delete() error
func (*SupportMessage) Validate ¶
func (m *SupportMessage) Validate() bool
Click to show internal directories.
Click to hide internal directories.