Documentation ¶
Index ¶
- func Permission(ctx context.Context) map[string]storage.ResAct
- type CoreBrand
- type Svc
- func (s *Svc) CreateBrand(ctx context.Context, req *braG.CreateBrandRequest) (*braG.CreateBrandResponse, error)
- func (s *Svc) DeleteBrand(ctx context.Context, req *braG.DeleteBrandRequest) (*emptypb.Empty, error)
- func (s *Svc) GetBrand(ctx context.Context, req *braG.GetBrandRequest) (*braG.GetBrandResponse, error)
- func (s *Svc) ListBrand(ctx context.Context, req *braG.ListBrandRequest) (*braG.ListBrandResponse, error)
- func (h *Svc) RegisterSvc(srv *grpc.Server) error
- func (s *Svc) UpdateBrand(ctx context.Context, req *braG.UpdateBrandRequest) (*braG.UpdateBrandResponse, error)
- func (s *Svc) ValidateRequestedData(ctx context.Context, req storage.Brand, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoreBrand ¶
type CoreBrand interface { CreateBrand(context.Context, storage.Brand) (string, error) GetBrandByID(context.Context, string) (*storage.Brand, error) UpdateBrand(context.Context, storage.Brand) (*storage.Brand, error) ListBrand(context.Context, storage.ListBrandFilter) ([]storage.Brand, error) DeleteBrand(context.Context, string, string) error }
type Svc ¶
type Svc struct { braG.UnimplementedBrandServiceServer // contains filtered or unexported fields }
func (*Svc) CreateBrand ¶
func (s *Svc) CreateBrand(ctx context.Context, req *braG.CreateBrandRequest) (*braG.CreateBrandResponse, error)
func (*Svc) DeleteBrand ¶
func (*Svc) GetBrand ¶
func (s *Svc) GetBrand(ctx context.Context, req *braG.GetBrandRequest) (*braG.GetBrandResponse, error)
func (*Svc) ListBrand ¶
func (s *Svc) ListBrand(ctx context.Context, req *braG.ListBrandRequest) (*braG.ListBrandResponse, error)
func (*Svc) RegisterSvc ¶
// RegisterService with grpc server.
func (*Svc) UpdateBrand ¶
func (s *Svc) UpdateBrand(ctx context.Context, req *braG.UpdateBrandRequest) (*braG.UpdateBrandResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.