plan

package
v0.0.0-...-179f7ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Delete

func (env *PlanEnv) Delete(w http.ResponseWriter, r *http.Request)

func (*PlanEnv) Get

func (env *PlanEnv) Get(w http.ResponseWriter, r *http.Request)

func (*PlanEnv) GetAll

func (env *PlanEnv) GetAll(w http.ResponseWriter, r *http.Request)

func (*PlanEnv) GetPlanNotification

func (env *PlanEnv) GetPlanNotification(w http.ResponseWriter, r *http.Request)

func (*PlanEnv) Update

func (env *PlanEnv) Update(w http.ResponseWriter, r *http.Request)

type PlanRepository

type PlanRepository struct {
	Db        *gorm.DB
	Logger    log.Logger
	ChPlanJob chan string
}

func (*PlanRepository) Create

func (repo *PlanRepository) Create(inputPlan map[string]interface{}) (string, error)

func (*PlanRepository) Delete

func (repo *PlanRepository) Delete(plan models.Plan) error

func (*PlanRepository) Get

func (repo *PlanRepository) Get(planId string) (*models.Plan, error)

func (*PlanRepository) GetAll

func (repo *PlanRepository) GetAll(limit string, offset string, orderby string, sort string) ([]*models.Plan, string, error)

func (*PlanRepository) GetPlanNotification

func (repo *PlanRepository) GetPlanNotification(limit string, offset string, orderby string, sort string) ([]*models.Notification, string, error)

func (*PlanRepository) Update

func (repo *PlanRepository) Update(inputPlan map[string]interface{}, planId 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL