Documentation
¶
Index ¶
- type AppHandler
- type AppMapper
- type DeleteCustomerDataHandler
- type DeleteCustomerDataParams
- type DeleteCustomerDataRequest
- type DeleteCustomerDataResponse
- type GetAppHandler
- type GetAppRequest
- type GetAppResponse
- type GetMarketplaceListingHandler
- type GetMarketplaceListingRequest
- type GetMarketplaceListingResponse
- type Handler
- type ListAppsHandler
- type ListAppsParams
- type ListAppsRequest
- type ListAppsResponse
- type ListCustomerDataHandler
- type ListCustomerDataParams
- type ListCustomerDataRequest
- type ListCustomerDataResponse
- type ListMarketplaceListingsHandler
- type ListMarketplaceListingsParams
- type ListMarketplaceListingsRequest
- type ListMarketplaceListingsResponse
- type MarketplaceAppAPIKeyInstallHandler
- type MarketplaceAppAPIKeyInstallRequest
- type MarketplaceAppAPIKeyInstallResponse
- type UninstallAppHandler
- type UninstallAppRequest
- type UninstallAppResponse
- type UpdateAppHandler
- type UpdateAppRequest
- type UpdateAppResponse
- type UpsertCustomerDataHandler
- type UpsertCustomerDataParams
- type UpsertCustomerDataRequest
- type UpsertCustomerDataResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppHandler ¶
type AppHandler interface { // App handlers ListApps() ListAppsHandler GetApp() GetAppHandler UninstallApp() UninstallAppHandler UpdateApp() UpdateAppHandler // Customer Data handlers ListCustomerData() ListCustomerDataHandler UpsertCustomerData() UpsertCustomerDataHandler DeleteCustomerData() DeleteCustomerDataHandler // Marketplace handlers ListMarketplaceListings() ListMarketplaceListingsHandler GetMarketplaceListing() GetMarketplaceListingHandler MarketplaceAppAPIKeyInstall() MarketplaceAppAPIKeyInstallHandler }
type AppMapper ¶
type AppMapper struct {
// contains filtered or unexported fields
}
AppMapper maps app models to API models
func NewAppMapper ¶
NewAppMapper creates a new app mapper
type DeleteCustomerDataHandler ¶
type DeleteCustomerDataHandler httptransport.HandlerWithArgs[DeleteCustomerDataRequest, DeleteCustomerDataResponse, DeleteCustomerDataParams]
type DeleteCustomerDataRequest ¶
type DeleteCustomerDataRequest struct { AppID app.AppID CustomerID customer.CustomerID }
type DeleteCustomerDataResponse ¶
type DeleteCustomerDataResponse = interface{}
type GetAppHandler ¶
type GetAppHandler httptransport.HandlerWithArgs[GetAppRequest, GetAppResponse, string]
GetAppHandler is a handler to get an app by id
type GetAppRequest ¶
type GetAppRequest = app.GetAppInput
GetAppHandler is a handler to get an app by id
type GetMarketplaceListingHandler ¶
type GetMarketplaceListingHandler httptransport.HandlerWithArgs[GetMarketplaceListingRequest, GetMarketplaceListingResponse, api.AppType]
GetMarketplaceListingHandler is a handler to get a marketplace listing
type GetMarketplaceListingRequest ¶
type GetMarketplaceListingRequest = app.MarketplaceGetInput
GetMarketplaceListingHandler is a handler to get a marketplace listing
type GetMarketplaceListingResponse ¶
type GetMarketplaceListingResponse = api.MarketplaceListing
GetMarketplaceListingHandler is a handler to get a marketplace listing
type Handler ¶
type Handler interface { AppHandler }
func New ¶
func New( logger *slog.Logger, namespaceDecoder namespacedriver.NamespaceDecoder, service app.Service, billingService billing.Service, stripeAppService stripeapp.Service, options ...httptransport.HandlerOption, ) Handler
type ListAppsHandler ¶
type ListAppsHandler httptransport.HandlerWithArgs[ListAppsRequest, ListAppsResponse, ListAppsParams]
ListAppsHandler is a handler for listing apps
type ListAppsParams ¶
type ListAppsParams = api.ListAppsParams
ListAppsHandler is a handler for listing apps
type ListAppsRequest ¶
type ListAppsRequest = app.ListAppInput
ListAppsHandler is a handler for listing apps
type ListAppsResponse ¶
ListAppsHandler is a handler for listing apps
type ListCustomerDataHandler ¶
type ListCustomerDataHandler httptransport.HandlerWithArgs[ListCustomerDataRequest, ListCustomerDataResponse, ListCustomerDataParams]
type ListCustomerDataParams ¶
type ListCustomerDataParams struct { api.ListCustomerAppDataParams CustomerId string }
type ListCustomerDataRequest ¶
type ListCustomerDataRequest = app.ListCustomerInput
type ListCustomerDataResponse ¶
type ListCustomerDataResponse = api.CustomerAppDataPaginatedResponse
type ListMarketplaceListingsHandler ¶
type ListMarketplaceListingsHandler httptransport.HandlerWithArgs[ListMarketplaceListingsRequest, ListMarketplaceListingsResponse, ListMarketplaceListingsParams]
ListMarketplaceListingsHandler is a handler for listing marketplace listings
type ListMarketplaceListingsParams ¶
type ListMarketplaceListingsParams = api.ListMarketplaceListingsParams
ListMarketplaceListingsHandler is a handler for listing marketplace listings
type ListMarketplaceListingsRequest ¶
type ListMarketplaceListingsRequest = app.MarketplaceListInput
ListMarketplaceListingsHandler is a handler for listing marketplace listings
type ListMarketplaceListingsResponse ¶
type ListMarketplaceListingsResponse = api.MarketplaceListingList
ListMarketplaceListingsHandler is a handler for listing marketplace listings
type MarketplaceAppAPIKeyInstallHandler ¶
type MarketplaceAppAPIKeyInstallHandler httptransport.HandlerWithArgs[MarketplaceAppAPIKeyInstallRequest, MarketplaceAppAPIKeyInstallResponse, api.AppType]
type MarketplaceAppAPIKeyInstallRequest ¶
type MarketplaceAppAPIKeyInstallRequest = app.InstallAppWithAPIKeyInput
type MarketplaceAppAPIKeyInstallResponse ¶
type MarketplaceAppAPIKeyInstallResponse = api.MarketplaceInstallResponse
type UninstallAppHandler ¶
type UninstallAppHandler httptransport.HandlerWithArgs[UninstallAppRequest, UninstallAppResponse, string]
UninstallAppHandler is a handler to uninstalls an app by id
type UninstallAppRequest ¶
type UninstallAppRequest = app.UninstallAppInput
UninstallAppHandler is a handler to uninstalls an app by id
type UninstallAppResponse ¶
type UninstallAppResponse = interface{}
UninstallAppHandler is a handler to uninstalls an app by id
type UpdateAppHandler ¶
type UpdateAppHandler httptransport.HandlerWithArgs[UpdateAppRequest, UpdateAppResponse, string]
UpdateAppHandler is a handler to update an app
type UpdateAppRequest ¶
type UpdateAppRequest = app.UpdateAppInput
UpdateAppHandler is a handler to update an app
type UpdateAppResponse ¶
UpdateAppHandler is a handler to update an app
type UpsertCustomerDataHandler ¶
type UpsertCustomerDataHandler httptransport.HandlerWithArgs[UpsertCustomerDataRequest, UpsertCustomerDataResponse, UpsertCustomerDataParams]
type UpsertCustomerDataParams ¶
type UpsertCustomerDataParams struct {
CustomerId string
}
type UpsertCustomerDataRequest ¶
type UpsertCustomerDataRequest struct { CustomerId customer.CustomerID Data []api.CustomerAppData }
type UpsertCustomerDataResponse ¶
type UpsertCustomerDataResponse = interface{}