things

package
v0.0.0-...-a3ceb0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Created   int64
	Filename  string
	Hits      int64
	RemoteURL string
}

func (*File) Date

func (f *File) Date() int64

func (*File) GetType

func (f *File) GetType() string

func (*File) Name

func (f *File) Name() string

func (*File) UpdateHits

func (f *File) UpdateHits()

type FileByDate

type FileByDate []*File

func (FileByDate) Len

func (a FileByDate) Len() int

func (FileByDate) Less

func (a FileByDate) Less(i, j int) bool

func (FileByDate) Swap

func (a FileByDate) Swap(i, j int)

type Image

type Image struct {
	Created   int64
	Filename  string
	Hits      int64
	RemoteURL string
}

func (*Image) Date

func (i *Image) Date() int64

func (*Image) GetType

func (i *Image) GetType() string

func (*Image) Name

func (i *Image) Name() string

func (*Image) UpdateHits

func (i *Image) UpdateHits()

type ImageByDate

type ImageByDate []*Image

func (ImageByDate) Len

func (a ImageByDate) Len() int

func (ImageByDate) Less

func (a ImageByDate) Less(i, j int) bool

func (ImageByDate) Swap

func (a ImageByDate) Swap(i, j int)

type Paste

type Paste struct {
	Created int64
	Title   string
	Content string
	Hits    int64
}

func (*Paste) Date

func (p *Paste) Date() int64

func (*Paste) GetType

func (p *Paste) GetType() string

func (*Paste) Name

func (p *Paste) Name() string

func (*Paste) UpdateHits

func (p *Paste) UpdateHits()

type PasteByDate

type PasteByDate []*Paste

func (PasteByDate) Len

func (a PasteByDate) Len() int

func (PasteByDate) Less

func (a PasteByDate) Less(i, j int) bool

func (PasteByDate) Swap

func (a PasteByDate) Swap(i, j int)

type Screenshot

type Screenshot struct {
	Created  int64
	Filename string
	Hits     int64
}

func (*Screenshot) Date

func (s *Screenshot) Date() int64

func (*Screenshot) GetType

func (s *Screenshot) GetType() string

func (*Screenshot) Name

func (s *Screenshot) Name() string

func (*Screenshot) UpdateHits

func (s *Screenshot) UpdateHits()

type ScreenshotByDate

type ScreenshotByDate []*Screenshot

func (ScreenshotByDate) Len

func (a ScreenshotByDate) Len() int

func (ScreenshotByDate) Less

func (a ScreenshotByDate) Less(i, j int) bool

func (ScreenshotByDate) Swap

func (a ScreenshotByDate) Swap(i, j int)

type ShortByDate

type ShortByDate []*Shorturl

func (ShortByDate) Len

func (a ShortByDate) Len() int

func (ShortByDate) Less

func (a ShortByDate) Less(i, j int) bool

func (ShortByDate) Swap

func (a ShortByDate) Swap(i, j int)

type Shorturl

type Shorturl struct {
	Created int64
	Short   string
	Long    string
	Hits    int64
}

func (*Shorturl) Date

func (s *Shorturl) Date() int64

func (*Shorturl) GetType

func (s *Shorturl) GetType() string

func (*Shorturl) Name

func (s *Shorturl) Name() string

func (*Shorturl) UpdateHits

func (s *Shorturl) UpdateHits()

type Thing

type Thing interface {
	Name() string
	UpdateHits()
	Date() int64
	GetType() string
}

Thing is the interface that all applicable things should implement

type ThingByDate

type ThingByDate []Thing

Sorting functions

func (ThingByDate) Len

func (a ThingByDate) Len() int

func (ThingByDate) Less

func (a ThingByDate) Less(i, j int) bool

func (ThingByDate) Swap

func (a ThingByDate) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL