Documentation
¶
Overview ¶
Package handler — JSON API helpers. JSON API 用のヘルパー関数群。
Package handler provides the root HTTP handler and route registration for murlog. murlog のルート HTTP ハンドラとルーティング登録を提供するパッケージ。
Package handler — JSON-RPC 2.0 dispatcher. JSON-RPC 2.0 ディスパッチャー。
Index ¶
Constants ¶
const ( SettingDomain = "domain" SettingProtocol = "protocol" SettingPasswordHash = "password_hash" SettingSetupComplete = "setup_complete" SettingLastPasswordReset = "last_password_reset_at" SettingWorkerSecret = "worker_secret" SettingTOTPSecret = "totp_secret" SettingRobotsNoIndex = "robots_noindex" // "true" = noindex / クローラーインデックス拒否 SettingRobotsNoAI = "robots_noai" // "true" = noai / AI学習拒否 )
DB settings keys used by handler. handler が使用する DB settings のキー。
const MaxBioLength = 3000
MaxBioLength is the maximum character count for profile bios/summaries. プロフィール bio/summary の最大文字数。
const MaxDisplayNameLength = 100
MaxDisplayNameLength is the maximum character count for display names. 表示名の最大文字数。
const MaxPostContentLength = 3000
MaxPostContentLength is the maximum character count for post content (Misskey-compatible). 投稿本文の最大文字数 (Misskey 準拠)。
Variables ¶
This section is empty.
Functions ¶
func SanitizeContentHTML ¶
SanitizeContentHTML sanitizes untrusted HTML content (posts, bios). Used at Inbox receive time (store) and SSR output time (defense in depth). 信頼できない HTML コンテンツ (投稿, bio) をサニタイズする。 Inbox 受信時 (保存) と SSR 出力時 (多層防御) の両方で使用。
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
type SetupPhase ¶
type SetupPhase int
SetupPhase represents the current state of the setup wizard. セットアップウィザードの現在のフェーズ。
const ( SetupDone SetupPhase = iota // Setup complete / セットアップ完了 SetupStep1 // murlog.ini not found / murlog.ini 未作成 SetupStep2 // toml exists, DB not initialized / toml あり、DB 未初期化 )
Source Files
¶
- account_json.go
- activitypub.go
- api.go
- api_mur_actors.go
- api_mur_auth.go
- api_mur_blocks.go
- api_mur_domains.go
- api_mur_follows.go
- api_mur_interactions.go
- api_mur_links.go
- api_mur_media.go
- api_mur_notifications.go
- api_mur_personas.go
- api_mur_posts.go
- api_mur_queue.go
- api_mur_site.go
- api_mur_timeline.go
- api_mur_totp.go
- auth.go
- backup.go
- handler.go
- nodeinfo.go
- reset.go
- robots.go
- rpc.go
- setup.go
- ssr.go
- tags.go
- webfinger.go
- worker_tick.go