repository

package
v0.6.0 Latest Latest
Warning

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

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

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

func (*PostgresSettingsRepository) Get

func (*PostgresSettingsRepository) Save

Jump to

Keyboard shortcuts

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