Documentation ¶
Index ¶
- func Permission(ctx context.Context) map[string]storage.ResAct
- type CoreRecipe
- type Svc
- func (s *Svc) CreateRecipe(ctx context.Context, req *recG.CreateRecipeRequest) (*recG.CreateRecipeResponse, error)
- func (s *Svc) DeleteRecipe(ctx context.Context, req *recG.DeleteRecipeRequest) (*emptypb.Empty, error)
- func (s *Svc) GetRecipe(ctx context.Context, req *recG.GetRecipeRequest) (*recG.GetRecipeResponse, error)
- func (s *Svc) ListRecipe(ctx context.Context, req *recG.ListRecipeRequest) (*recG.ListRecipeResponse, error)
- func (h *Svc) RegisterSvc(srv *grpc.Server) error
- func (s *Svc) UpdateRecipe(ctx context.Context, req *recG.UpdateRecipeRequest) (*recG.UpdateRecipeResponse, error)
- func (s *Svc) ValidateRequestedData(ctx context.Context, req storage.Recipe, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoreRecipe ¶
type CoreRecipe interface { CreateRecipe(context.Context, storage.Recipe) (string, error) GetRecipeByID(context.Context, string) (*storage.Recipe, error) UpdateRecipe(context.Context, storage.Recipe) (*storage.Recipe, error) ListRecipe(context.Context, storage.ListRecipeFilter) ([]storage.Recipe, error) DeleteRecipe(context.Context, string, string) error }
type Svc ¶
type Svc struct { recG.UnimplementedRecipeServiceServer // contains filtered or unexported fields }
func (*Svc) CreateRecipe ¶
func (s *Svc) CreateRecipe(ctx context.Context, req *recG.CreateRecipeRequest) (*recG.CreateRecipeResponse, error)
func (*Svc) DeleteRecipe ¶
func (*Svc) GetRecipe ¶
func (s *Svc) GetRecipe(ctx context.Context, req *recG.GetRecipeRequest) (*recG.GetRecipeResponse, error)
func (*Svc) ListRecipe ¶
func (s *Svc) ListRecipe(ctx context.Context, req *recG.ListRecipeRequest) (*recG.ListRecipeResponse, error)
func (*Svc) RegisterSvc ¶
// RegisterService with grpc server.
func (*Svc) UpdateRecipe ¶
func (s *Svc) UpdateRecipe(ctx context.Context, req *recG.UpdateRecipeRequest) (*recG.UpdateRecipeResponse, error)
Click to show internal directories.
Click to hide internal directories.