Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVIdentifierRepository ¶
type CSVIdentifierRepository struct {
// contains filtered or unexported fields
}
CSVIdentifierRepository represents a repository capable of storing identifiers as comma-separated values.
func NewCSVIdentifierRepository ¶
func NewCSVIdentifierRepository(file *os.File) *CSVIdentifierRepository
NewCSVIdentifierRepository creates a new CSVIdentifierRepository to store identifiers as comma-separated values on the referenced file.
func (*CSVIdentifierRepository) Add ¶
func (r *CSVIdentifierRepository) Add(ctx context.Context, project entity.Project, ident entity.Identifier) error
Add creates a new row for an identifier, using comma-separated values. The columns added are: * id * package * file * position * name * type * splits * expansions * error
func (*CSVIdentifierRepository) FindAllByProject ¶
func (r *CSVIdentifierRepository) FindAllByProject(ctx context.Context, projectRef string) ([]entity.Identifier, error)
FindAllByProject finds all the identifiers that match the given project reference. It's unimplemented on the current repository.
Click to show internal directories.
Click to hide internal directories.