Documentation ¶
Index ¶
- type PlanEnv
- func (env *PlanEnv) CreatePlan(w http.ResponseWriter, r *http.Request)
- func (env *PlanEnv) Delete(w http.ResponseWriter, r *http.Request)
- func (env *PlanEnv) Get(w http.ResponseWriter, r *http.Request)
- func (env *PlanEnv) GetAll(w http.ResponseWriter, r *http.Request)
- func (env *PlanEnv) GetPlanNotification(w http.ResponseWriter, r *http.Request)
- func (env *PlanEnv) Update(w http.ResponseWriter, r *http.Request)
- type PlanRepository
- func (repo *PlanRepository) Create(inputPlan map[string]interface{}) (string, error)
- func (repo *PlanRepository) Delete(plan models.Plan) error
- func (repo *PlanRepository) Get(planId string) (*models.Plan, error)
- func (repo *PlanRepository) GetAll(limit string, offset string, orderby string, sort string) ([]*models.Plan, string, error)
- func (repo *PlanRepository) GetPlanNotification(limit string, offset string, orderby string, sort string) ([]*models.Notification, string, error)
- func (repo *PlanRepository) Update(inputPlan map[string]interface{}, planId string) error
- type PlanRepositoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlanEnv ¶
type PlanEnv struct { Logger goKitLog.Logger PlanRepo PlanRepositoryInterface Common lib.CommonService }
func (*PlanEnv) CreatePlan ¶
func (env *PlanEnv) CreatePlan(w http.ResponseWriter, r *http.Request)
func (*PlanEnv) GetPlanNotification ¶
func (env *PlanEnv) GetPlanNotification(w http.ResponseWriter, r *http.Request)
type PlanRepository ¶
func (*PlanRepository) Create ¶
func (repo *PlanRepository) Create(inputPlan map[string]interface{}) (string, error)
func (*PlanRepository) GetPlanNotification ¶
func (repo *PlanRepository) GetPlanNotification(limit string, offset string, orderby string, sort string) ([]*models.Notification, string, error)
type PlanRepositoryInterface ¶
type PlanRepositoryInterface interface { Create(inputPlan map[string]interface{}) (string, error) GetAll(limit string, offset string, orderby string, sort string) ([]*models.Plan, string, error) GetPlanNotification(limit string, offset string, orderby string, sort string) ([]*models.Notification, string, error) Get(planId string) (*models.Plan, error) Update(inputPlan map[string]interface{}, planId string) error Delete(plan models.Plan) error // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.