Documentation
¶
Index ¶
- func DefaultAddr() string
- func NewHandler(cfg config.Config, st *store.Store) (http.Handler, error)
- func NewHandlerWithOptions(cfg config.Config, st *store.Store, opts HandlerOptions) (http.Handler, error)
- func Serve(ctx context.Context, cfg config.Config, addr string) error
- func ServeWithOptions(ctx context.Context, cfg config.Config, addr string, opts ServeOptions) error
- func ValidatePublicAuthConfig(ctx context.Context, cfg config.Config) error
- type AppInfo
- type AuthInfo
- type AuthUserInfo
- type BootstrapResponse
- type ChatTranscriptSaveRequest
- type ChatTranscriptSaveResponse
- type ChatTranscriptTurn
- type FullDiskAccessResponse
- type GetResponse
- type HandlerOptions
- type ItemResponse
- type LinkAddRequest
- type MediaRefResponse
- type ResearchRequest
- type ResearchSynthesisRequest
- type SchedulerSyncAllResponse
- type SearchResponse
- type ServeOptions
- type SourceResponse
- type TagRequest
- type WebVersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAddr ¶
func DefaultAddr() string
func NewHandlerWithOptions ¶ added in v0.1.6
func ServeWithOptions ¶
Types ¶
type AppInfo ¶
type AppInfo struct {
Name string `json:"name"`
HasFTS bool `json:"has_fts"`
Version WebVersionInfo `json:"version"`
}
type AuthInfo ¶ added in v0.2.5
type AuthInfo struct {
Enabled bool `json:"enabled"`
Provider string `json:"provider,omitempty"`
User *AuthUserInfo `json:"user,omitempty"`
}
type AuthUserInfo ¶ added in v0.2.5
type BootstrapResponse ¶
type BootstrapResponse struct {
App AppInfo `json:"app"`
Auth AuthInfo `json:"auth"`
Backlog store.BacklogStats `json:"backlog"`
Activity store.ActivityStats `json:"activity"`
SourceActivity store.SourceActivityFeed `json:"source_activity"`
}
type ChatTranscriptSaveRequest ¶
type ChatTranscriptSaveRequest struct {
Turns []ChatTranscriptTurn `json:"turns"`
PinnedEvidenceKeys []string `json:"pinned_evidence_keys"`
SelectedLookup string `json:"selected_lookup"`
}
type ChatTranscriptTurn ¶
type ChatTranscriptTurn struct {
ID string `json:"id"`
Question string `json:"question"`
RetrievalQuestion string `json:"retrieval_question"`
Status string `json:"status"`
Answer string `json:"answer"`
ResearchPack brainresearch.Pack `json:"research_pack"`
Citations []brainresearch.Citation `json:"citations"`
Error string `json:"error"`
CreatedAt string `json:"created_at"`
}
type FullDiskAccessResponse ¶ added in v0.2.3
type GetResponse ¶
type GetResponse struct {
Lookup string `json:"lookup"`
Kind string `json:"kind"`
Item *ItemResponse `json:"item,omitempty"`
Source *SourceResponse `json:"source,omitempty"`
LinkedSources []model.ItemSourceRef `json:"linked_sources,omitempty"`
Backlinks []model.SourceBacklink `json:"backlinks,omitempty"`
QuotedPosts []ItemResponse `json:"quoted_posts,omitempty"`
NoteContent string `json:"note_content,omitempty"`
NoteError string `json:"note_error,omitempty"`
}
type HandlerOptions ¶ added in v0.1.6
type HandlerOptions struct {
SchedulerStatus func() schedulerstate.SyncAllStatus
FullDiskAccessPath string
Context context.Context
LogOutput io.Writer
}
type ItemResponse ¶
type ItemResponse struct {
ID int64 `json:"id"`
SourceKey string `json:"source_key"`
SourceType string `json:"source_type"`
ExternalID string `json:"external_id"`
CanonicalURL string `json:"canonical_url"`
Title string `json:"title"`
AuthorHandle string `json:"author_handle"`
AuthorName string `json:"author_name"`
PublishedAt string `json:"published_at"`
SavedAt string `json:"saved_at"`
SyncedAt string `json:"synced_at"`
Language string `json:"language"`
Text string `json:"text"`
ArticleTitle string `json:"article_title"`
ArticleText string `json:"article_text"`
PrimaryCategory string `json:"primary_category"`
PrimaryDomain string `json:"primary_domain"`
LinksJSON string `json:"links_json"`
Categories string `json:"categories"`
Domains string `json:"domains"`
GitHubURLs string `json:"github_urls"`
FolderNames string `json:"folder_names"`
LikeCount int `json:"like_count"`
RepostCount int `json:"repost_count"`
ReplyCount int `json:"reply_count"`
QuoteCount int `json:"quote_count"`
BookmarkCount int `json:"bookmark_count"`
NotePath string `json:"note_path"`
ImportedAt time.Time `json:"imported_at"`
UpdatedAt time.Time `json:"updated_at"`
LastSeenAt time.Time `json:"last_seen_at"`
XPostText string `json:"x_post_text"`
XPostLang string `json:"x_post_lang"`
XPostFetchedAt time.Time `json:"x_post_fetched_at"`
XPostStatus string `json:"x_post_status"`
LinkExtractSyncedAt time.Time `json:"link_extract_synced_at"`
SummaryText string `json:"summary_text"`
SummaryStatus string `json:"summary_status"`
SummaryModel string `json:"summary_model"`
SummaryTool string `json:"summary_tool"`
SummarizedAt time.Time `json:"summarized_at"`
OCRText string `json:"ocr_text"`
OCRStatus string `json:"ocr_status"`
OCRModel string `json:"ocr_model"`
OCRTool string `json:"ocr_tool"`
OCRAt time.Time `json:"ocr_at"`
XMediaTranscriptStatus string `json:"x_media_transcript_status"`
XMediaTranscriptAt time.Time `json:"x_media_transcript_at"`
UserTags string `json:"user_tags"`
Media []MediaRefResponse `json:"media,omitempty"`
}
type LinkAddRequest ¶
type MediaRefResponse ¶
type MediaRefResponse struct {
MediaAssetID int64 `json:"media_asset_id"`
Ordinal int `json:"ordinal"`
ExpandedURL string `json:"expanded_url,omitempty"`
RemoteURL string `json:"remote_url,omitempty"`
MediaType string `json:"media_type"`
DownloadStatus string `json:"download_status,omitempty"`
ArchiveURL string `json:"archive_url,omitempty"`
ArchiveStatus string `json:"archive_status,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
}
type ResearchRequest ¶
type ResearchRequest struct {
Question string `json:"question"`
Topic string `json:"topic"`
Limit int `json:"limit"`
SourceTypes []string `json:"source_types"`
IncludeRelated bool `json:"include_related"`
RelatedLimit int `json:"related_limit"`
SeedLimit int `json:"seed_limit"`
IncludeTopicBrief *bool `json:"include_topic_brief"`
MaxCharsPerDoc int `json:"max_chars_per_doc"`
PlannerModel string `json:"planner_model"`
UseModelPlanner bool `json:"use_model_planner"`
DisablePlanner bool `json:"disable_planner"`
}
type ResearchSynthesisRequest ¶
type ResearchSynthesisRequest struct {
Question string `json:"question"`
ResearchPack brainresearch.Pack `json:"research_pack"`
Model string `json:"model"`
MaxEvidenceChars int `json:"max_evidence_chars"`
}
type SchedulerSyncAllResponse ¶ added in v0.1.6
type SchedulerSyncAllResponse struct {
SyncAll schedulerstate.SyncAllStatus `json:"sync_all"`
}
type SearchResponse ¶
type SearchResponse struct {
Query string `json:"query"`
Limit int `json:"limit"`
Results []model.SearchResult `json:"results"`
}
type ServeOptions ¶
type ServeOptions struct {
StoreOpenOptions store.OpenOptions
}
type SourceResponse ¶
type SourceResponse struct {
ID int64 `json:"id"`
SourceKey string `json:"source_key"`
CanonicalURL string `json:"canonical_url"`
NormalizedURL string `json:"normalized_url"`
SourceType string `json:"source_type"`
Domain string `json:"domain"`
Title string `json:"title"`
Description string `json:"description"`
SiteName string `json:"site_name"`
ExtractedText string `json:"extracted_text"`
ExtractStatus string `json:"extract_status"`
ExtractedAt time.Time `json:"extracted_at"`
ExtractTool string `json:"extract_tool"`
SummaryText string `json:"summary_text"`
SummaryStatus string `json:"summary_status"`
SummaryModel string `json:"summary_model"`
SummaryTool string `json:"summary_tool"`
SummarizedAt time.Time `json:"summarized_at"`
NotePath string `json:"note_path"`
UserTags string `json:"user_tags"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type TagRequest ¶
Source Files
¶
- access_log.go
- api_types.go
- archive_media.go
- archive_media_asset.go
- archive_media_http.go
- archive_media_proxy.go
- auth.go
- auth_config.go
- auth_session.go
- chat_transcript_evidence.go
- chat_transcript_pack.go
- chat_transcript_render.go
- chat_transcript_util.go
- chat_transcripts.go
- http_util.go
- mutation_handlers.go
- read_handlers.go
- research_handlers.go
- server.go
- static.go
- stats_handlers.go
Click to show internal directories.
Click to hide internal directories.