Documentation ¶
Index ¶
- func Load(file multipart.File) (*image.Image, string, error)
- func SaveAll(tiles []*Tile)
- type CreateResponse
- type DeleteResponse
- type ReadAllResponse
- type ReadResponse
- type SlapchopEntry
- func (s *SlapchopEntry) Grid(tiles []*TileEntry) [][40]string
- func (s *SlapchopEntry) LoadFiles(UploadDir string) ([]os.FileInfo, error)
- func (s *SlapchopEntry) LoadTiles(host string, files []os.FileInfo) []*TileEntry
- func (s *SlapchopEntry) ShuffleGrid(grid [][40]string) [][40]string
- func (s *SlapchopEntry) UploadPoint(UploadDir string) string
- type Tile
- type TileEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateResponse ¶
type DeleteResponse ¶
type ReadAllResponse ¶
type ReadAllResponse struct { User string `json:"user"` Slapchops []*SlapchopEntry `json:"slapchops"` }
type ReadResponse ¶
type SlapchopEntry ¶
type SlapchopEntry struct { Id string `json:"id"` User string `json:"user"` Href string `json:"href"` }
func NewSlapchop ¶
func NewSlapchop(host_str, username, id string) *SlapchopEntry
func (*SlapchopEntry) Grid ¶
func (s *SlapchopEntry) Grid(tiles []*TileEntry) [][40]string
func (*SlapchopEntry) LoadFiles ¶
func (s *SlapchopEntry) LoadFiles(UploadDir string) ([]os.FileInfo, error)
func (*SlapchopEntry) LoadTiles ¶
func (s *SlapchopEntry) LoadTiles(host string, files []os.FileInfo) []*TileEntry
func (*SlapchopEntry) ShuffleGrid ¶
func (s *SlapchopEntry) ShuffleGrid(grid [][40]string) [][40]string
func (*SlapchopEntry) UploadPoint ¶
func (s *SlapchopEntry) UploadPoint(UploadDir string) string
Click to show internal directories.
Click to hide internal directories.