Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContextEndpointKey contextKey = "customer-endpoint" ContextRequestKey contextKey = "customer-request" )
Variables ¶
View Source
var Endpoints = endpoints{ Save: internalHttp.NewEndpoint( internalHttp.WithMethod(internalHttp.POST), internalHttp.WithURI("service/resources/customers")), }
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Save(ctx context.Context, customer *model.Customer) error Update(ctx context.Context, customer *model.Customer) error Find(ctx context.Context, id uint32) (model.Customer, error) FindAll(ctx context.Context, filters map[string]interface{}) ([]model.Customer, error) Delete(ctx context.Context, id uint32) error Config() config.Config Request() *http.Request Response() *http.Response }
func NewService ¶
type ServiceMiddleware ¶
Click to show internal directories.
Click to hide internal directories.