puzzle

package
v0.0.0-...-fbf8389 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Puzzle

type Puzzle struct {
	Title       string `json:"title"`
	URL         string `json:"url"`
	PublishTime int    `json:"publish_time"`
	FEN         string `json:"fen"`
	PGN         string `json:"pgn"`
	Image       string `json:"image"`
}

Puzzle represents a chess.com puzzle

func (Puzzle) Post

func (p Puzzle) Post(channelID, botUserID string, api plugin.API) error

func (Puzzle) ToPost

func (p Puzzle) ToPost(channelID, userID string) *model.Post

ToPost prepapres a Mattermost post for the puzzle object

Jump to

Keyboard shortcuts

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