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 PostImage
- type PurgePostModel
- type PurgeThreadModel
- type Series
- type StatisticsModel
- type StatisticsType
- type StickyModel
- type ThreadImages
- 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
func (*BanFileModel) IsValid ¶ added in v1.1.0
func (c *BanFileModel) IsValid() bool
check struct validity
func (*BanFileModel) Post ¶ added in v1.1.0
func (i *BanFileModel) Post() (err error)
Toggle will add the ip to the ban list
func (*BanFileModel) Status ¶ added in v1.1.0
func (i *BanFileModel) Status() (err error)
Status will return info
type BanIpModel ¶ added in v1.1.0
func (*BanIpModel) IsValid ¶ added in v1.1.0
func (c *BanIpModel) IsValid() bool
check struct validity
func (*BanIpModel) Post ¶ added in v1.1.0
func (i *BanIpModel) Post() (err error)
Toggle will add the ip to the ban list
func (*BanIpModel) Status ¶ added in v1.1.0
func (i *BanIpModel) Status() (err error)
Status will return info
type BoardLogModel ¶ added in v1.1.0
type BoardLogModel struct { Ib uint Page uint Result BoardLogType }
NewModel holds the parameters from the request and also the key for the cache
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"`
}
type CloseModel ¶
func (*CloseModel) Toggle ¶
func (i *CloseModel) Toggle() (err error)
Toggle will change the thread status
type DeleteImageTagModel ¶
func (*DeleteImageTagModel) Delete ¶
func (i *DeleteImageTagModel) Delete() (err error)
Delete will remove the entry
func (*DeleteImageTagModel) IsValid ¶
func (d *DeleteImageTagModel) IsValid() bool
check struct validity
func (*DeleteImageTagModel) Status ¶
func (i *DeleteImageTagModel) Status() (err error)
Status will return info
type DeletePostModel ¶
func (*DeletePostModel) Delete ¶
func (i *DeletePostModel) Delete() (err error)
Delete will remove the entry
func (*DeletePostModel) Status ¶
func (i *DeletePostModel) Status() (err error)
Status will return info
type DeleteTagModel ¶
func (*DeleteTagModel) Delete ¶
func (i *DeleteTagModel) Delete() (err error)
Delete will remove the entry
func (*DeleteTagModel) Status ¶
func (i *DeleteTagModel) Status() (err error)
Status will return info
type DeleteThreadModel ¶
func (*DeleteThreadModel) Delete ¶
func (i *DeleteThreadModel) Delete() (err error)
Delete will remove the entry
func (*DeleteThreadModel) IsValid ¶
func (d *DeleteThreadModel) IsValid() bool
check struct validity
func (*DeleteThreadModel) Status ¶
func (i *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"` }
format for audit log entries
type ModLogModel ¶ added in v1.1.0
type ModLogModel struct { Ib uint Page uint Result ModLogType }
NewModel holds the parameters from the request and also the key for the cache
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"`
}
type PurgePostModel ¶
func (*PurgePostModel) Delete ¶
func (i *PurgePostModel) Delete() (err error)
Delete will remove the entry
func (*PurgePostModel) Status ¶
func (i *PurgePostModel) Status() (err error)
Status will return info
type PurgeThreadModel ¶
func (*PurgeThreadModel) Delete ¶
func (i *PurgeThreadModel) Delete() (err error)
Delete will remove the entry
func (*PurgeThreadModel) Status ¶
func (i *PurgeThreadModel) Status() (err error)
Status will return info
type StatisticsModel ¶
type StatisticsModel struct { Ib uint Result StatisticsType }
NewModel holds the parameters from the request and also the key for the cache
func (*StatisticsModel) Get ¶
func (i *StatisticsModel) Get() (err error)
Get will gather the information from the database and return it as JSON serialized data
type StatisticsType ¶
type StickyModel ¶
func (*StickyModel) Toggle ¶
func (i *StickyModel) Toggle() (err error)
Toggle will change the thread status
type ThreadImages ¶
type UpdateTagModel ¶
func (*UpdateTagModel) Status ¶
func (i *UpdateTagModel) Status() (err error)
Status will return info
func (*UpdateTagModel) Update ¶
func (i *UpdateTagModel) Update() (err error)
Update will update the entry
func (*UpdateTagModel) ValidateInput ¶
func (i *UpdateTagModel) ValidateInput() (err error)