Documentation
¶
Index ¶
- Constants
- type RepoKeyMongoRepository
- func (store *RepoKeyMongoRepository) Create(ctx context.Context, obj data.RepoKey) error
- func (store *RepoKeyMongoRepository) Exists(ctx context.Context, repoID data.RepoID, keyID data.KeyID) (bool, error)
- func (store *RepoKeyMongoRepository) FindByKeyID(ctx context.Context, repoID data.RepoID, keyID data.KeyID) (*data.RepoKey, error)
- func (store *RepoKeyMongoRepository) FindByRepoId(ctx context.Context, repoID data.RepoID) ([]data.RepoKey, error)
Constants ¶
View Source
const ( // ErrorRepoKeyErrorDbAlreadyExist s is the error message for the error when RepoKey is already exist ErrorRepoKeyErrorDbAlreadyExist = apperrors.ErrorDbAlreadyExist + ":RepoKey" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoKeyMongoRepository ¶
type RepoKeyMongoRepository struct { db.KeyRepository // contains filtered or unexported fields }
RepoKeyMongoRepository implementations of db.KeyRepository for MongoDb repo
func NewKeyMongoRepository ¶
func NewKeyMongoRepository(logger logger.Logger, db *intMongo.Db) *RepoKeyMongoRepository
NewKeyMongoRepository creates new instance of RepoKeyMongoRepository
func (*RepoKeyMongoRepository) Exists ¶
func (store *RepoKeyMongoRepository) Exists(ctx context.Context, repoID data.RepoID, keyID data.KeyID) (bool, error)
Exists checks if data.RepoKey exists in database
func (*RepoKeyMongoRepository) FindByKeyID ¶
func (store *RepoKeyMongoRepository) FindByKeyID(ctx context.Context, repoID data.RepoID, keyID data.KeyID) (*data.RepoKey, error)
FindByKeyID returns data.RepoKey by keyID
func (*RepoKeyMongoRepository) FindByRepoId ¶
func (store *RepoKeyMongoRepository) FindByRepoId(ctx context.Context, repoID data.RepoID) ([]data.RepoKey, error)
FindByRepoId returns data.RepoKey by repoId
Click to show internal directories.
Click to hide internal directories.