Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Categories ¶ added in v0.4.0
type Categories []*Category
type LGTM ¶
type LGTM struct { ID string `json:"id" dynamodbav:"id" validate:"required"` Status LGTMStatus `json:"-" dynamodbav:"status" ` CreatedAt time.Time `json:"-" dynamodbav:"created_at" ` }
type LGTMStatus ¶
type LGTMStatus string
const ( LGTMStatusOK LGTMStatus = "ok" LGTMStatusPending LGTMStatus = "pending" )
type Rate ¶
type Rate struct { IP string `json:"ip" dynamodbav:"ip"` Tier string `json:"tier" dynamodbav:"tier"` Count int `json:"count" dynamodbav:"count"` ResetAt time.Time `json:"reset_at" dynamodbav:"reset_at"` }
func (*Rate) LimitReached ¶
type ReportType ¶
type ReportType string
const ( ReportTypeIllegal ReportType = "illegal" ReportTypeInappropriate ReportType = "inappropriate" ReportTypeOther ReportType = "other" )
func (ReportType) Valid ¶
func (t ReportType) Valid() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.