Documentation
¶
Overview ¶
Package repository 는 어시스턴트 설정의 Postgres 저장소다. API 키는 ENCRYPTION_KEY 로 암호화한다.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEncryptionKeyMissing = fmt.Errorf("%w: ENCRYPTION_KEY 가 없어 API 키를 저장할 수 없습니다", domain.ErrKeyStorageUnavailable)
ErrEncryptionKeyMissing 은 ENCRYPTION_KEY 가 없어 API 키를 암호화할 수 없다는 뜻이다 — 평문으로 남기지 않는다.
Functions ¶
This section is empty.
Types ¶
type PostgresSettingsRepository ¶
type PostgresSettingsRepository struct {
// contains filtered or unexported fields
}
func NewPostgresSettingsRepository ¶
func NewPostgresSettingsRepository(pool *pgxpool.Pool, encryptionKey []byte) *PostgresSettingsRepository
func (*PostgresSettingsRepository) Delete ¶
func (r *PostgresSettingsRepository) Delete(ctx context.Context, orgID string) error
Click to show internal directories.
Click to hide internal directories.