shashokuru

package
v0.0.0-...-33c08d8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL                    = "https://shashokuru.jp"
	LOGIN_PATH             = "/login"
	PRODUCT_PATH           = "/product"
	CART_PATH              = "/cart"
	CART_CONFIRMATION_PATH = CART_PATH + "/confirmation"
)
View Source
const URL_DATE_FORMAT = "20060102"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bento

type Bento struct {
	Title      string `json:"name"`
	Price      string `json:"price"`
	Store      string `json:"store"`
	ImageUrl   string `json:"image_url"`
	ReserveUrl string `json:"reserve_url"`
}

type BentoService

type BentoService struct {
	// contains filtered or unexported fields
}

func NewBentoService

func NewBentoService(client *http.Client) *BentoService

func (*BentoService) GetListOnDate

func (this *BentoService) GetListOnDate(date time.Time) ([]Bento, error)

func (*BentoService) Reserve

func (this *BentoService) Reserve(bento Bento, quantity int) error

type Shashokuru

type Shashokuru struct {
	Bento *BentoService
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Shashokuru

func (*Shashokuru) Login

func (this *Shashokuru) Login(email string, password string) error

Jump to

Keyboard shortcuts

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