Documentation ¶
Index ¶
- func Module(c *di.Container)
- func NewMemory() *memory
- type CodebaseRepository
- type CodebaseUserRepository
- type Repo
- func (r *Repo) Count(ctx context.Context) (uint64, error)
- func (r *Repo) Create(entity codebase.Codebase) error
- func (r *Repo) Get(id string) (*codebase.Codebase, error)
- func (r *Repo) GetAllowArchived(id string) (*codebase.Codebase, error)
- func (r *Repo) GetByInviteCode(inviteCode string) (*codebase.Codebase, error)
- func (r *Repo) GetByShortID(shortID string) (*codebase.Codebase, error)
- func (r *Repo) ListByOrganization(ctx context.Context, organizationID string) ([]*codebase.Codebase, error)
- func (r *Repo) Update(entity *codebase.Codebase) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodebaseRepository ¶
type CodebaseRepository interface { Create(entity codebase.Codebase) error Get(id string) (*codebase.Codebase, error) GetAllowArchived(id string) (*codebase.Codebase, error) GetByInviteCode(inviteCode string) (*codebase.Codebase, error) GetByShortID(shortID string) (*codebase.Codebase, error) Update(entity *codebase.Codebase) error ListByOrganization(ctx context.Context, organizationID string) ([]*codebase.Codebase, error) Count(context.Context) (uint64, error) }
func NewRepo ¶
func NewRepo(db *sqlx.DB) CodebaseRepository
type CodebaseUserRepository ¶
type CodebaseUserRepository interface { Create(entity codebase.CodebaseUser) error GetByUser(userID string) ([]*codebase.CodebaseUser, error) GetByCodebase(codebaseID string) ([]*codebase.CodebaseUser, error) GetByUserAndCodebase(userID, codebaseID string) (*codebase.CodebaseUser, error) DeleteByID(ctx context.Context, id string) error }
func NewCodebaseUserRepo ¶
func NewCodebaseUserRepo(db *sqlx.DB) CodebaseUserRepository
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) GetAllowArchived ¶
func (*Repo) GetByInviteCode ¶
func (*Repo) ListByOrganization ¶
Click to show internal directories.
Click to hide internal directories.