cityheaven

package module
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 11 Imported by: 0

README

cityheaven

cli for cityheaven.

install

$ go install github.com/bonnou-shounen/cityheaven/cmd/cityheaven@latest

usage

$ export CITYHEAVEN_LOGIN=xxxx
$ export CITYHEAVEN_PASSWORD=xxxx

$ cityheaven dump fav casts > casts.txt
$ vim casts.txt  # edit order
$ cityheaven restore fav casts < casts.txt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cast

type Cast struct {
	ID       int
	Name     string
	ShopID   int
	ShopName string
}

type Client

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

func NewClient

func NewClient() *Client

func (*Client) AddFavoriteCast

func (c *Client) AddFavoriteCast(ctx context.Context, cast *Cast) error

func (*Client) AddFavoriteCasts

func (c *Client) AddFavoriteCasts(ctx context.Context, casts []*Cast) error

func (*Client) DeleteFavoriteCast

func (c *Client) DeleteFavoriteCast(ctx context.Context, cast *Cast) error

func (*Client) DeleteFavoriteCasts

func (c *Client) DeleteFavoriteCasts(ctx context.Context, casts []*Cast) error

func (*Client) GetFavoriteCasts

func (c *Client) GetFavoriteCasts(ctx context.Context) ([]*Cast, error)

func (*Client) GetFavoriteCount

func (c *Client) GetFavoriteCount(ctx context.Context, cast *Cast) (int, error)

func (*Client) GetShopCasts

func (c *Client) GetShopCasts(ctx context.Context, strURL string) ([]*Cast, error)

func (*Client) GetShopURL

func (c *Client) GetShopURL(ctx context.Context, area, shop string) (string, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, id, password string) error

func (*Client) SortFavoriteCasts

func (c *Client) SortFavoriteCasts(ctx context.Context, casts []*Cast) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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