Documentation ¶
Index ¶
- func NewContext(c *gin.Context, obj any, err error) any
- func RegisterFlags(f []cli.Flag) []cli.Flag
- type AssetHashes
- type Context
- type Helper
- func (s *Helper) Asset(in string) template.HTML
- func (s *Helper) Base64(in []byte) string
- func (s *Helper) BitsForHumans(b int64) string
- func (s *Helper) CheckProb(probability float64) bool
- func (s *Helper) DemoMagnet() template.URL
- func (s *Helper) DemoTorrent() template.URL
- func (s *Helper) Dev() bool
- func (s *Helper) DevAsset(in string) template.HTML
- func (s *Helper) Domain() string
- func (s *Helper) Has(obj any, fieldName string) bool
- func (s *Helper) HasAds(c *claims.Data) bool
- func (s *Helper) IsDemoMagnet(m string) bool
- func (s *Helper) Json(in any) template.JS
- func (s *Helper) Log(err error) error
- func (s *Helper) MakeJobLogURL(j *job.Job) string
- func (s *Helper) Now() time.Time
- func (s *Helper) Obfuscate(in string) string
- func (s *Helper) Pwd(in string) string
- func (s *Helper) ShortErr(err error) string
- func (s *Helper) TierName(c *claims.Data) string
- func (s *Helper) TimeBetween(from string, to string) bool
- func (s *Helper) UseAbuseStore() bool
- func (s *Helper) UseAuth() bool
- type Web
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetHashes ¶
func NewAssetHashes ¶
func NewAssetHashes(path string) *AssetHashes
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
func (*Helper) BitsForHumans ¶
func (*Helper) DemoMagnet ¶
func (*Helper) DemoTorrent ¶
func (*Helper) IsDemoMagnet ¶
func (*Helper) UseAbuseStore ¶
Click to show internal directories.
Click to hide internal directories.