Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface {
Create(context.Context, *suggestions.Suggestion) error
Update(context.Context, *suggestions.Suggestion) error
GetByID(context.Context, suggestions.ID) (*suggestions.Suggestion, error)
GetByWorkspaceID(context.Context, string) (*suggestions.Suggestion, error)
ListForWorkspaceID(context.Context, string) ([]*suggestions.Suggestion, error)
ListBySnapshotID(context.Context, string) ([]*suggestions.Suggestion, error)
}
func New ¶
func New(d *sqlx.DB) Repository
Click to show internal directories.
Click to hide internal directories.