Documentation ¶
Overview ¶
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
! Copyright © 2022 chouette.21.00@gmail.com Released under the MIT license https://opensource.org/licenses/mit-license.php
Ver.0.0.1 ConfigのFncを削除する。
Ver.0.1.0 ApiLiveCurrentUser()の引数roomidをstringとしたことへ対応する。ApiLiveCurrentUser()実行時のroomidにRoomid[0]を渡す。 Ver.1.0.0 下位の関数で戻り値をstatusかrerrに変更したことに対応する。
Index ¶
- func CreateLogfile(dsc1, dsc2 string) (logfile *os.File)
- func CreateNewClient(cookiename string) (client *http.Client, jar *cookiejar.Jar, err error)
- func LoadConfig(filePath string, config interface{}) (err error)
- func LoginShowroom(client *http.Client, acct string, pswd string) (userid string, err error)
- func MkRoomsForStarCollec(client *http.Client, category string, aplmin int, maxnoroom int, ...) (lives *[]srapi.Live, err error)
- func TestOfApiActivefanNextlevel(filename string) (err error)
- type ExclList
- type RoomAfnl
- type RoomVisit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewClient ¶
HTTPクライアントを作り、cookiejarをセットする。
func LoadConfig ¶
設定ファイルを読み込む
以下の記事を参考にさせていただきました。 【Go初学】設定ファイル、環境変数から設定情報を取得する https://note.com/artefactnote/n/n8c22d1ac4b86
func LoginShowroom ¶
Showroomのサービスにログインし、ユーザIDを取得する。
func MkRoomsForStarCollec ¶
func MkRoomsForStarCollec( client *http.Client, category string, aplmin int, maxnoroom int, excllist *ExclList, roomvisit *map[int]time.Time, ) ( lives *[]srapi.Live, err error, )
星集め、種集めの対象とするルームの一覧を作成する。
func TestOfApiActivefanNextlevel ¶
ファンレベルの達成状況を取得する
使用しているSHOWROOMのAPI srapi.ApiLiveCurrentUser() srapi.CsrfToken() srapi.UserLogin() srapi.ApiActivefanNextlevel()
Types ¶
type RoomAfnl ¶
type RoomAfnl struct { Room_id string // 配信者のID Main_name string // 配信者の名前 Afnl srapi.ActiveFanNextLevel }
配信者のリストから、ファンレベルの達成状況を調べる。