remoteapi

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAuthFileName = "auth.json"
	DefaultStoreName    = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	SchemaVersion int            `json:"schema_version"`
	DefaultRemote string         `json:"default_remote,omitempty"`
	Remotes       []RemoteConfig `json:"remotes"`
}

type EmbedRequest

type EmbedRequest struct {
	ID     string `json:"id"`
	All    bool   `json:"all"`
	Status bool   `json:"status"`
}

type Envelope

type Envelope struct {
	Result   any      `json:"result,omitempty"`
	Text     string   `json:"text,omitempty"`
	Warnings []string `json:"warnings,omitempty"`
	Error    string   `json:"error,omitempty"`
}

type ForgetRequest

type ForgetRequest struct {
	ID string `json:"id"`
}

type GCRequest

type GCRequest struct {
	Threshold float64 `json:"threshold"`
	Limit     int     `json:"limit"`
	KeepID    string  `json:"keep_id"`
}

type ImportRequest

type ImportRequest struct {
	Draft  []byte `json:"draft"`
	NoDiff bool   `json:"no_diff"`
	DryRun bool   `json:"dry_run"`
}

type Invite

type Invite struct {
	SchemaVersion int    `json:"schema_version"`
	Name          string `json:"name,omitempty"`
	Server        string `json:"server"`
	Principal     string `json:"principal"`
	Token         string `json:"token"`
	CAPEM         string `json:"ca_pem,omitempty"`
	ServerName    string `json:"server_name,omitempty"`
	Workspace     string `json:"workspace,omitempty"`
	Role          string `json:"role,omitempty"`
}

type LinkRequest

type LinkRequest struct {
	SourceID string  `json:"source_id"`
	TargetID string  `json:"target_id"`
	Type     string  `json:"type"`
	Weight   float64 `json:"weight"`
	MetaJSON string  `json:"meta_json"`
}

type LogRequest

type LogRequest struct {
	Limit int `json:"limit"`
}

type RecallRequest

type RecallRequest struct {
	Query    string `json:"query"`
	Category string `json:"category"`
	Limit    int    `json:"limit"`
	Source   string `json:"source"`
	Basic    bool   `json:"basic"`
	Intent   string `json:"intent"`
	Verbose  bool   `json:"verbose"`
}

type ReceiptRequest

type ReceiptRequest struct {
	Limit int `json:"limit"`
}

type RelatedRequest

type RelatedRequest struct {
	ID       string `json:"id"`
	EdgeType string `json:"edge_type"`
	Depth    int    `json:"depth"`
}

type RememberRequest

type RememberRequest struct {
	Content    string `json:"content"`
	Category   string `json:"category"`
	Importance int    `json:"importance"`
	Tags       string `json:"tags"`
	Source     string `json:"source"`
	Entities   string `json:"entities"`
	EntityMode string `json:"entity_mode"`
	NoDiff     bool   `json:"no_diff"`
}

type RemoteConfig

type RemoteConfig struct {
	Name        string `json:"name"`
	Server      string `json:"server"`
	Principal   string `json:"principal"`
	TokenFile   string `json:"token_file"`
	CAFile      string `json:"ca_file,omitempty"`
	ServerName  string `json:"server_name,omitempty"`
	Workspace   string `json:"workspace,omitempty"`
	Auth        string `json:"auth,omitempty"`
	Issuer      string `json:"issuer,omitempty"`
	ClientID    string `json:"client_id,omitempty"`
	RefreshFile string `json:"refresh_file,omitempty"`
}

type Response

type Response struct {
	JSON     []byte
	Text     string
	Warnings []string
}

type SearchRequest

type SearchRequest struct {
	Query string `json:"query"`
	Limit int    `json:"limit"`
}

type VizRequest

type VizRequest struct {
	Format string `json:"format"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL