Documentation
¶
Index ¶
- type Store
- func (s *Store) AddAllow(ctx context.Context, connector, number string) error
- func (s *Store) AssignRole(ctx context.Context, connector, userID, roleName string) error
- func (s *Store) AssignSoul(ctx context.Context, connector, userID, soulName string) error
- func (s *Store) Close() error
- func (s *Store) DeleteMemories(ctx context.Context, connector, userID string) error
- func (s *Store) DeleteRole(ctx context.Context, connector, userID string) error
- func (s *Store) DeleteSoul(ctx context.Context, connector, userID string) error
- func (s *Store) GetRole(ctx context.Context, connector, userID string) (string, error)
- 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
- func (s *Store) ListAllow(ctx context.Context, connector string) ([]string, error)
- func (s *Store) RemoveAllow(ctx context.Context, connector, number string) error
- func (s *Store) ResolveIdentity(ctx context.Context, connector, userID string) (string, string, error)
- func (s *Store) SaveMemory(ctx context.Context, connector, userID, fact string, embedding []float32) error
- func (s *Store) SearchMemories(ctx context.Context, connector, userID string, queryEmbedding []float32, ...) ([]string, error)
- func (s *Store) Unlink(ctx context.Context, connector, userID string) error
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 (*Store) AssignRole ¶
func (*Store) AssignSoul ¶
func (*Store) DeleteMemories ¶
func (*Store) DeleteRole ¶
func (*Store) DeleteSoul ¶
func (*Store) Link ¶
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) RemoveAllow ¶
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 (*Store) SearchMemories ¶
Click to show internal directories.
Click to hide internal directories.