Versions in this module Expand all Collapse all v1 v1.5.0 May 15, 2023 Changes in this version + const CatCollection + const DbName + const ExerCollection + var MissingChildConfigErr = fmt.Errorf("error! there should be at the least a child in an instance") + var MissingExerciseDynamicFieldsErr = fmt.Errorf("error! not all the required dynamic fields in a child are present") + var MissingExerciseFieldsErr = fmt.Errorf("error! not all the required fields in a child are present") + var MissingExerciseStaticFieldsErr = fmt.Errorf("error! not all the required static fields in a child are present") + var MissingImageErr = fmt.Errorf("error! instance image empty") + var MissingInstanceErr = fmt.Errorf("error! there should be at the least an instance") + var MissingTagNameErr = fmt.Errorf("error! tag or exercise name is missing") + type Store interface + AddCategory func(string) error + AddExercise func(string) error + DeleteCategory func(string) error + DeleteExercisesByTags func([]string) error + GetCategories func() []model.Category + GetCategoryID func(primitive.ObjectID) string + GetExercises func() []model.Exercise + GetExercisesByCategory func(string) ([]model.Exercise, error) + GetExercisesByTags func([]string) ([]model.Exercise, error) + UpdateCache func() error + UpdateCategory func(string) error + UpdateExercise func(string) error + func NewStore(host string, certPath string) (Store, error)