Documentation ¶
Index ¶
- Variables
- type DefaultProductsService
- type DefaultUserService
- func (s *DefaultUserService) CreateSession(c context.Context, username, password string) (token string, err error)
- func (s *DefaultUserService) CreateUser(c context.Context, username, password, email string) (*models.User, error)
- func (d DefaultUserService) Update(c context.Context, ID uint64) error
- type ProductsService
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewProductService, NewUserService)
Functions ¶
This section is empty.
Types ¶
type DefaultProductsService ¶
type DefaultProductsService struct {
// contains filtered or unexported fields
}
type DefaultUserService ¶
type DefaultUserService struct {
// contains filtered or unexported fields
}
func (*DefaultUserService) CreateSession ¶
func (*DefaultUserService) CreateUser ¶
type ProductsService ¶
func CreateProductsService ¶
func CreateProductsService(cf string, usersClients protobuf_spec.UsersClient) (ProductsService, error)
func NewProductService ¶
func NewProductService(logger *zap.Logger, usersSrv proto.UsersClient) ProductsService
type UserService ¶
type UserService interface { CreateUser(c context.Context, username, password, email string) (*models.User, error) Update(c context.Context, ID uint64) error CreateSession(c context.Context, username, password string) (token string, err error) }
func NewUserService ¶
func NewUserService(logger *zap.Logger, usersSrv proto.UsersClient) UserService
Click to show internal directories.
Click to hide internal directories.