postgres

package
v0.0.0-...-0b7ba76 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, url string) (*Store, error)

func (*Store) AddAllow

func (s *Store) AddAllow(ctx context.Context, connector, number string) error

func (*Store) AssignRole

func (s *Store) AssignRole(ctx context.Context, connector, userID, roleName string) error

func (*Store) AssignSoul

func (s *Store) AssignSoul(ctx context.Context, connector, userID, soulName string) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) DeleteMemories

func (s *Store) DeleteMemories(ctx context.Context, connector, userID string) error

func (*Store) DeleteRole

func (s *Store) DeleteRole(ctx context.Context, connector, userID string) error

func (*Store) DeleteSoul

func (s *Store) DeleteSoul(ctx context.Context, connector, userID string) error

func (*Store) GetRole

func (s *Store) GetRole(ctx context.Context, connector, userID string) (string, error)

func (*Store) GetSoul

func (s *Store) GetSoul(ctx context.Context, connector, userID string) (string, error)
func (s *Store) Link(ctx context.Context, satConnector, satUserID, hubConnector, hubUserID string) error

Link points the satellite identity at the hub's canonical account. See the IdentityStore docs for the merge semantics and the rejected cases.

func (*Store) ListAllow

func (s *Store) ListAllow(ctx context.Context, connector string) ([]string, error)

func (*Store) RemoveAllow

func (s *Store) RemoveAllow(ctx context.Context, connector, number string) error

func (*Store) ResolveIdentity

func (s *Store) ResolveIdentity(ctx context.Context, connector, userID string) (string, string, error)

ResolveIdentity returns the canonical (hub) identity for (connector, userID), or the identity itself when it is not linked.

func (*Store) SaveMemory

func (s *Store) SaveMemory(ctx context.Context, connector, userID, fact string, embedding []float32) error

func (*Store) SearchMemories

func (s *Store) SearchMemories(ctx context.Context, connector, userID string, queryEmbedding []float32, limit int) ([]string, error)
func (s *Store) Unlink(ctx context.Context, connector, userID string) error

Unlink detaches the identity from its hub (no-op if not linked).

Jump to

Keyboard shortcuts

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