Documentation ¶
Overview ¶
Package sales represent the encore application.
Index ¶
- type Service
- func (s *Service) DelegateHandler(ctx context.Context, data delegate.Data) error
- func (s *Service) Fallback(w http.ResponseWriter, r *http.Request)
- func (s *Service) HomeCreate(ctx context.Context, app homeapp.NewHome) (homeapp.Home, error)
- func (s *Service) HomeDelete(ctx context.Context, homeID string) error
- func (s *Service) HomeQuery(ctx context.Context, qp homeapp.QueryParams) (query.Result[homeapp.Home], error)
- func (s *Service) HomeQueryByID(ctx context.Context, productID string) (homeapp.Home, error)
- func (s *Service) HomeUpdate(ctx context.Context, homeID string, app homeapp.UpdateHome) (homeapp.Home, error)
- func (s *Service) ProductCreate(ctx context.Context, app productapp.NewProduct) (productapp.Product, error)
- func (s *Service) ProductDelete(ctx context.Context, productID string) error
- func (s *Service) ProductQuery(ctx context.Context, qp productapp.QueryParams) (query.Result[productapp.Product], error)
- func (s *Service) ProductQueryByID(ctx context.Context, productID string) (productapp.Product, error)
- func (s *Service) ProductUpdate(ctx context.Context, productID string, app productapp.UpdateProduct) (productapp.Product, error)
- func (s *Service) Shutdown(force context.Context)
- func (s *Service) TranCreate(ctx context.Context, app tranapp.NewTran) (tranapp.Product, error)
- func (s *Service) UserCreate(ctx context.Context, app userapp.NewUser) (userapp.User, error)
- func (s *Service) UserDelete(ctx context.Context, userID string) error
- func (s *Service) UserQuery(ctx context.Context, qp userapp.QueryParams) (query.Result[userapp.User], error)
- func (s *Service) UserQueryByID(ctx context.Context, userID string) (userapp.User, error)
- func (s *Service) UserUpdate(ctx context.Context, userID string, app userapp.UpdateUser) (userapp.User, error)
- func (s *Service) UserUpdateRole(ctx context.Context, userID string, app userapp.UpdateUserRole) (userapp.User, error)
- func (s *Service) VProductQuery(ctx context.Context, qp vproductapp.QueryParams) (query.Result[vproductapp.Product], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the encore service application.
func NewService ¶
NewService is called to create a new encore Service.
func (*Service) DelegateHandler ¶
DelegateHandler receives a message from the pubsub system and passes it into the delegate system.
func (*Service) Fallback ¶
func (s *Service) Fallback(w http.ResponseWriter, r *http.Request)
Fallback is called for the debug enpoints.
func (*Service) HomeCreate ¶
func (*Service) HomeQueryByID ¶
func (*Service) HomeUpdate ¶
func (*Service) ProductCreate ¶
func (s *Service) ProductCreate(ctx context.Context, app productapp.NewProduct) (productapp.Product, error)
func (*Service) ProductDelete ¶
func (*Service) ProductQuery ¶
func (s *Service) ProductQuery(ctx context.Context, qp productapp.QueryParams) (query.Result[productapp.Product], error)
func (*Service) ProductQueryByID ¶
func (*Service) ProductUpdate ¶
func (s *Service) ProductUpdate(ctx context.Context, productID string, app productapp.UpdateProduct) (productapp.Product, error)
func (*Service) Shutdown ¶
Shutdown implements a function that will be called by encore when the service is signaled to shutdown.
func (*Service) TranCreate ¶
func (*Service) UserCreate ¶
func (*Service) UserQueryByID ¶
func (*Service) UserUpdate ¶
func (*Service) UserUpdateRole ¶
func (*Service) VProductQuery ¶
func (s *Service) VProductQuery(ctx context.Context, qp vproductapp.QueryParams) (query.Result[vproductapp.Product], error)
Click to show internal directories.
Click to hide internal directories.