Versions in this module Expand all Collapse all v0 v0.5.0 Sep 28, 2026 Changes in this version + const AcceptAllowlist + const AcceptAny + const CapAdmin + const CapExec + const CapFSRead + const CapFSWrite + const CapIntroduce + const MimeExecResult + const MimeFSReadResult + const MimeFSWriteResult + const PresenceStaleAfter + func NewThreadID() string + type Config struct + About string + Advertise string + AllowPlaintext bool + BlobLimit int64 + DetectedHarness string + DialGrace time.Duration + HandshakeTimeout time.Duration + Harness string + Home string + Listen []string + Logf func(format string, args ...any) + MaxBackoff time.Duration + Model string + Name string + OutboxTTL time.Duration + PingInterval time.Duration + Policy Policy + Presence bool + ShareWith []string + TailcatLogf func(format string, args ...any) + Trace bool + type Conn struct + func (c *Conn) Close(reason string) + func (c *Conn) RTT() time.Duration + type ConnInfo struct + Outbound bool + RTT time.Duration + Since time.Time + Via string + type ExecRequest struct + Cmd json.RawMessage + Cwd string + Env map[string]string + Stdin string + Timeout float64 + type FSReadRequest struct + Length int64 + Offset int64 + Path string + type FSWriteRequest struct + Append bool + Content string + Encoding string + Mkdir bool + Path string + type Node struct + func Open(cfg Config) (*Node, error) + func (n *Node) Activity() (last time.Time, waiting bool) + func (n *Node) Addresses() []string + func (n *Node) Bye(peer, reason string) error + func (n *Node) Caps(peer string) []string + func (n *Node) Changed() <-chan struct{} + func (n *Node) Close() error + func (n *Node) ConnInfo(key string) *ConnInfo + func (n *Node) Connect(ctx context.Context, addr string) (string, error) + func (n *Node) Connected(key string) bool + func (n *Node) Dialing(key string) (bool, string) + func (n *Node) Grant(sub string, caps []string, ttl time.Duration) (*store.GrantRow, error) + func (n *Node) Harness() string + func (n *Node) Home() string + func (n *Node) Introduce(to, intro string, caps []string, ttl time.Duration, th string) (*SendResult, error) + func (n *Node) Key() string + func (n *Node) LocalPresence() (*wire.Presence, error) + func (n *Node) MakePrivate(peer, th string) error + func (n *Node) Model() string + func (n *Node) Name() string + func (n *Node) ResolvePeer(s string) (string, error) + func (n *Node) ResolveThread(th string) (string, error) + func (n *Node) Revoke(hash string) (int64, error) + func (n *Node) Send(req SendRequest) (*SendResult, error) + func (n *Node) SetModel(m string) (bool, error) + func (n *Node) SetShareWith(keys []string) error + func (n *Node) SetState(peer, th, state, note string) (*SendResult, error) + func (n *Node) ShareWith() []string + func (n *Node) SharesPresence() bool + func (n *Node) Start() error + func (n *Node) Store() *store.Store + func (n *Node) TailcatAddress() (addr, errMsg string) + func (n *Node) Touch() + func (n *Node) Waiting() (done func()) + type Policy struct + Accept string + Allow []string + Root string + Serve []string + Trust []string + type Request struct + Allowed bool + Cap string + Mime string + Part int + Served bool + type SendRequest struct + Files []string + Parts []wire.Part + Peer string + Re string + Subject string + Th string + type SendResult struct + Connected bool + ID string + NewThread bool + Peer string + Th string