mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-04 10:58:48 +00:00
Refactor things
- Remove separate auth/logging and merge them into transport.go - Add helper function for http handlers
This commit is contained in:
parent
37b1c75045
commit
fa27d9c6eb
11 changed files with 547 additions and 1664 deletions
|
@ -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
|
||||
}
|
|
@ -10,7 +10,6 @@ type PostContext struct {
|
|||
DefaultFormat string
|
||||
ReplyContext *ReplyContext
|
||||
Formats []PostFormat
|
||||
DarkMode bool
|
||||
}
|
||||
|
||||
type ReplyContext struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue