Documentation ¶
Index ¶
- type BanFileModel
- type BanIPModel
- type BoardLogModel
- type BoardLogType
- type CloseModel
- type DeleteImageTagModel
- type DeletePostModel
- type DeleteTagModel
- type DeleteThreadModel
- type Log
- type ModLogModel
- type ModLogType
- type PurgePostModel
- type PurgeThreadModel
- type Series
- type StatisticsModel
- type StatisticsType
- type StickyModel
- type UpdateTagModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BanFileModel ¶ added in v1.1.0
BanFileModel holds request input
func (*BanFileModel) IsValid ¶ added in v1.1.0
func (m *BanFileModel) IsValid() bool
IsValid will check struct validity
func (*BanFileModel) Post ¶ added in v1.1.0
func (m *BanFileModel) Post() (err error)
Post will add the file to the table
func (*BanFileModel) Status ¶ added in v1.1.0
func (m *BanFileModel) Status() (err error)
Status will return info
type BanIPModel ¶ added in v1.2.0
BanIPModel holds request input
func (*BanIPModel) IsValid ¶ added in v1.2.0
func (m *BanIPModel) IsValid() bool
IsValid will check struct validity
func (*BanIPModel) Post ¶ added in v1.2.0
func (m *BanIPModel) Post() (err error)
Post will add the ip to the table
func (*BanIPModel) Status ¶ added in v1.2.0
func (m *BanIPModel) Status() (err error)
Status will return info
type BoardLogModel ¶ added in v1.1.0
type BoardLogModel struct { Ib uint Page uint Result BoardLogType }
BoardLogModel holds request input
func (*BoardLogModel) Get ¶ added in v1.1.0
func (i *BoardLogModel) Get() (err error)
Get will gather the information from the database and return it as JSON serialized data
type BoardLogType ¶ added in v1.1.0
type BoardLogType struct {
Body u.PagedResponse `json:"boardlog"`
}
BoardLogType is the container for the JSON response
type CloseModel ¶
CloseModel holds request input
func (*CloseModel) Toggle ¶
func (m *CloseModel) Toggle() (err error)
Toggle will change the thread status
type DeleteImageTagModel ¶
DeleteImageTagModel holds request input
func (*DeleteImageTagModel) Delete ¶
func (m *DeleteImageTagModel) Delete() (err error)
Delete will remove the entry
func (*DeleteImageTagModel) IsValid ¶
func (m *DeleteImageTagModel) IsValid() bool
IsValid will check struct validity
func (*DeleteImageTagModel) Status ¶
func (m *DeleteImageTagModel) Status() (err error)
Status will return info
type DeletePostModel ¶
DeletePostModel holds request input
func (*DeletePostModel) Delete ¶
func (m *DeletePostModel) Delete() (err error)
Delete will remove the entry
func (*DeletePostModel) IsValid ¶
func (m *DeletePostModel) IsValid() bool
IsValid will check struct validity
func (*DeletePostModel) Status ¶
func (m *DeletePostModel) Status() (err error)
Status will return info
type DeleteTagModel ¶
DeleteTagModel holds request input
func (*DeleteTagModel) Delete ¶
func (m *DeleteTagModel) Delete() (err error)
Delete will remove the entry
func (*DeleteTagModel) IsValid ¶
func (m *DeleteTagModel) IsValid() bool
IsValid will check struct validity
func (*DeleteTagModel) Status ¶
func (m *DeleteTagModel) Status() (err error)
Status will return info
type DeleteThreadModel ¶
DeleteThreadModel holds request input
func (*DeleteThreadModel) Delete ¶
func (m *DeleteThreadModel) Delete() (err error)
Delete will remove the entry
func (*DeleteThreadModel) IsValid ¶
func (m *DeleteThreadModel) IsValid() bool
IsValid will check struct validity
func (*DeleteThreadModel) Status ¶
func (m *DeleteThreadModel) Status() (err error)
Status will return info
type Log ¶ added in v1.1.0
type Log struct { UID uint `json:"user_id"` Name string `json:"user_name"` Group uint `json:"user_group"` Time *time.Time `json:"log_time"` Action string `json:"log_action"` Meta string `json:"log_meta"` }
Log format for audit log entries
type ModLogModel ¶ added in v1.1.0
type ModLogModel struct { Ib uint Page uint Result ModLogType }
ModLogModel holds request input
func (*ModLogModel) Get ¶ added in v1.1.0
func (i *ModLogModel) Get() (err error)
Get will gather the information from the database and return it as JSON serialized data
type ModLogType ¶ added in v1.1.0
type ModLogType struct {
Body u.PagedResponse `json:"modlog"`
}
ModLogType is container for JSON response
type PurgePostModel ¶
PurgePostModel holds request input
func (*PurgePostModel) Delete ¶
func (m *PurgePostModel) Delete() (err error)
Delete will remove the entry
func (*PurgePostModel) IsValid ¶
func (m *PurgePostModel) IsValid() bool
IsValid will check struct validity
func (*PurgePostModel) Status ¶
func (m *PurgePostModel) Status() (err error)
Status will return info
type PurgeThreadModel ¶
PurgeThreadModel holds request input
func (*PurgeThreadModel) Delete ¶
func (m *PurgeThreadModel) Delete() (err error)
Delete will remove the entry
func (*PurgeThreadModel) IsValid ¶
func (m *PurgeThreadModel) IsValid() bool
IsValid will check struct validity
func (*PurgeThreadModel) Status ¶
func (m *PurgeThreadModel) Status() (err error)
Status will return info
type StatisticsModel ¶
type StatisticsModel struct { Ib uint Result StatisticsType }
StatisticsModel holds request input
func (*StatisticsModel) Get ¶
func (m *StatisticsModel) Get() (err error)
Get will gather the information from the database and return it as JSON serialized data
type StatisticsType ¶
type StatisticsType struct { Visitors uint `json:"visitors"` Hits uint `json:"hits"` Threads uint `json:"threads"` Posts uint `json:"posts"` Images uint `json:"images"` Labels []time.Time `json:"labels"` Series []Series `json:"series"` }
StatisticsType holds the analytics metadata
type StickyModel ¶
StickyModel holds request input
func (*StickyModel) IsValid ¶
func (m *StickyModel) IsValid() bool
IsValid will check struct validity
func (*StickyModel) Toggle ¶
func (m *StickyModel) Toggle() (err error)
Toggle will change the thread status
type UpdateTagModel ¶
UpdateTagModel holds request input
func (*UpdateTagModel) IsValid ¶
func (m *UpdateTagModel) IsValid() bool
IsValid will check struct validity
func (*UpdateTagModel) Status ¶
func (m *UpdateTagModel) Status() (err error)
Status will return info
func (*UpdateTagModel) Update ¶
func (m *UpdateTagModel) Update() (err error)
Update will update the entry
func (*UpdateTagModel) ValidateInput ¶
func (m *UpdateTagModel) ValidateInput() (err error)
ValidateInput checks the data input for correctness