Refactor things

- Remove separate auth/logging and merge them into transport.go
- Add helper function for http handlers
This commit is contained in:
r 2020-11-22 17:29:58 +00:00
parent 37b1c75045
commit fa27d9c6eb
11 changed files with 547 additions and 1664 deletions

View file

@ -1,19 +0,0 @@
package model
import (
"io"
"bloat/mastodon"
)
type ClientCtx struct {
SessionID string
CSRFToken string
}
type Client struct {
*mastodon.Client
Writer io.Writer
Ctx ClientCtx
Session Session
}

View file

@ -10,7 +10,6 @@ type PostContext struct {
DefaultFormat string
ReplyContext *ReplyContext
Formats []PostFormat
DarkMode bool
}
type ReplyContext struct {