2019-12-21 11:13:21 +00:00
|
|
|
package model
|
|
|
|
|
2020-01-28 17:51:00 +00:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
2020-02-01 11:31:44 +00:00
|
|
|
"bloat/mastodon"
|
2020-01-28 17:51:00 +00:00
|
|
|
)
|
2019-12-21 11:13:21 +00:00
|
|
|
|
2020-05-24 04:38:34 +00:00
|
|
|
type ClientCtx struct {
|
|
|
|
SessionID string
|
|
|
|
CSRFToken string
|
|
|
|
}
|
|
|
|
|
2019-12-21 11:13:21 +00:00
|
|
|
type Client struct {
|
|
|
|
*mastodon.Client
|
2020-01-28 17:51:00 +00:00
|
|
|
Writer io.Writer
|
2020-05-24 04:38:34 +00:00
|
|
|
Ctx ClientCtx
|
2019-12-21 11:13:21 +00:00
|
|
|
Session Session
|
|
|
|
}
|