mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
perf(model): save 16 bytes in the FeedCreationRequest struct
before: ``` // feed.go:154 | Size: 240 (Optimal: 224) type FeedCreationRequest struct { FeedURL string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ CategoryID int64 ■ ■ ■ ■ ■ ■ ■ ■ UserAgent string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Cookie string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Username string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Password string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Crawler bool ■ Disabled bool ■ NoMediaPlayer bool ■ IgnoreHTTPCache bool ■ AllowSelfSignedCertificates bool ■ FetchViaProxy bool ■ □ □ UrlRewriteRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ DisableHTTP2 bool ■ □ □ □ □ □ □ □ ScraperRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ RewriteRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ BlocklistRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ KeeplistRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ BlockFilterEntryRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ KeepFilterEntryRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ HideGlobally bool ■ □ □ □ □ □ □ □ ProxyURL string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ } ``` after: ``` // feed.go:154 | Size: 224 type FeedCreationRequest struct { FeedURL string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ CategoryID int64 ■ ■ ■ ■ ■ ■ ■ ■ UserAgent string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Cookie string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Username string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Password string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Crawler bool ■ Disabled bool ■ NoMediaPlayer bool ■ IgnoreHTTPCache bool ■ AllowSelfSignedCertificates bool ■ FetchViaProxy bool ■ HideGlobally bool ■ DisableHTTP2 bool ■ ScraperRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ RewriteRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ BlocklistRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ KeeplistRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ BlockFilterEntryRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ KeepFilterEntryRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ UrlRewriteRules string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ProxyURL string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ } ```
This commit is contained in:
parent
4e1f836266
commit
9f7ecdb75a
1 changed files with 2 additions and 2 deletions
|
@ -164,15 +164,15 @@ type FeedCreationRequest struct {
|
||||||
IgnoreHTTPCache bool `json:"ignore_http_cache"`
|
IgnoreHTTPCache bool `json:"ignore_http_cache"`
|
||||||
AllowSelfSignedCertificates bool `json:"allow_self_signed_certificates"`
|
AllowSelfSignedCertificates bool `json:"allow_self_signed_certificates"`
|
||||||
FetchViaProxy bool `json:"fetch_via_proxy"`
|
FetchViaProxy bool `json:"fetch_via_proxy"`
|
||||||
|
HideGlobally bool `json:"hide_globally"`
|
||||||
|
DisableHTTP2 bool `json:"disable_http2"`
|
||||||
ScraperRules string `json:"scraper_rules"`
|
ScraperRules string `json:"scraper_rules"`
|
||||||
RewriteRules string `json:"rewrite_rules"`
|
RewriteRules string `json:"rewrite_rules"`
|
||||||
BlocklistRules string `json:"blocklist_rules"`
|
BlocklistRules string `json:"blocklist_rules"`
|
||||||
KeeplistRules string `json:"keeplist_rules"`
|
KeeplistRules string `json:"keeplist_rules"`
|
||||||
BlockFilterEntryRules string `json:"block_filter_entry_rules"`
|
BlockFilterEntryRules string `json:"block_filter_entry_rules"`
|
||||||
KeepFilterEntryRules string `json:"keep_filter_entry_rules"`
|
KeepFilterEntryRules string `json:"keep_filter_entry_rules"`
|
||||||
HideGlobally bool `json:"hide_globally"`
|
|
||||||
UrlRewriteRules string `json:"urlrewrite_rules"`
|
UrlRewriteRules string `json:"urlrewrite_rules"`
|
||||||
DisableHTTP2 bool `json:"disable_http2"`
|
|
||||||
ProxyURL string `json:"proxy_url"`
|
ProxyURL string `json:"proxy_url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue