Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDSNRequired = errors.New("dsn required") ErrDBRequired = errors.New("db required") )
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(mode string) (Repository, error)
func (Repository) Close ¶
func (r Repository) Close() error
func (Repository) Projects ¶
func (r Repository) Projects(ctx context.Context, topic string) ([]*josegpt.Project, error)
func (Repository) UpsertProjects ¶
func (r Repository) UpsertProjects(ctx context.Context, pp []*josegpt.ProjectUpsert) error
Click to show internal directories.
Click to hide internal directories.