models

package
v0.0.0-...-f266d21 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMovie

func CreateMovie(movie Movie)

func GetAllMovies

func GetAllMovies(movie Movie)

func GetMovies

func GetMovies() string

Types

type BotCommand

type BotCommand struct {
	Usage       string
	Description string
	Example     string
	Handler     func(botCtx slacker.BotContext, request slacker.Request, response slacker.ResponseWriter)
}

type BotCommands

type BotCommands []*BotCommand

type Director

type Director struct {
	FirstName string `json:"firstname"`
	LastName  string `json:"lastname"`
}

type Movie

type Movie struct {
	ID       string    `json:"id"`
	Isbn     string    `json:"isbn"`
	Title    string    `json:"title"`
	Director *Director `json:"director"`
}

func (Movie) ToString

func (m Movie) ToString() string

type MoviesType

type MoviesType []*Movie
var Movies MoviesType

func (MoviesType) Init

func (m MoviesType) Init()

func (MoviesType) ToString

func (m MoviesType) ToString() string

Jump to

Keyboard shortcuts

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