Documentation ¶
Index ¶
- Constants
- func Create(ctx context.Context, projectInput *mongoTypes.MongoProject) (*mongoTypes.MongoProject, error)
- func Delete(ctx context.Context, id string) (bool, *mongoTypes.MongoProject, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]mongoTypes.MongoProject, int, error)
- func GetById(ctx context.Context, projectId string) (*mongoTypes.MongoProject, error)
- func Update(ctx context.Context, updatedObject mongoTypes.MongoProject, projectId string) (*mongoTypes.MongoProject, *mongoTypes.MongoProject, error)
Constants ¶
View Source
const (
CollectionName = "projects"
)
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, projectInput *mongoTypes.MongoProject) (*mongoTypes.MongoProject, error)
func Delete ¶
func Delete(ctx context.Context, id string) (bool, *mongoTypes.MongoProject, error)
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]mongoTypes.MongoProject, int, error)
func GetById ¶
func GetById(ctx context.Context, projectId string) (*mongoTypes.MongoProject, error)
func Update ¶
func Update(ctx context.Context, updatedObject mongoTypes.MongoProject, projectId string) (*mongoTypes.MongoProject, *mongoTypes.MongoProject, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.