httpdriver

package
v1.0.0-beta.190 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

func NewAppMapper(
	logger *slog.Logger,
	stripeAppService appstripe.Service,
) *AppMapper

NewAppMapper creates a new app mapper

func (*AppMapper) MapAppToAPI

func (a *AppMapper) MapAppToAPI(item app.App) (api.App, error)

MapAppToAPI maps an app to an API app

type DeleteCustomerDataParams

type DeleteCustomerDataParams struct {
	CustomerId string
	AppId      string
}

type DeleteCustomerDataRequest

type DeleteCustomerDataRequest struct {
	AppID      app.AppID
	CustomerID customer.CustomerID
}

type DeleteCustomerDataResponse

type DeleteCustomerDataResponse = interface{}

type GetAppHandler

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 GetAppResponse

type GetAppResponse = api.App

GetAppHandler is a handler to get an app by id

type GetMarketplaceListingHandler

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

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

type ListAppsResponse = api.AppList

ListAppsHandler is a handler for listing apps

type ListCustomerDataParams

type ListCustomerDataParams struct {
	api.ListCustomerAppDataParams
	CustomerId string
}

type ListCustomerDataRequest

type ListCustomerDataRequest = app.ListCustomerInput

type ListCustomerDataResponse

type ListCustomerDataResponse = api.CustomerAppDataPaginatedResponse

type ListMarketplaceListingsHandler

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 MarketplaceAppAPIKeyInstallRequest

type MarketplaceAppAPIKeyInstallRequest = app.InstallAppWithAPIKeyInput

type MarketplaceAppAPIKeyInstallResponse

type MarketplaceAppAPIKeyInstallResponse = api.MarketplaceInstallResponse

type UninstallAppHandler

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

UpdateAppHandler is a handler to update an app

type UpdateAppRequest

type UpdateAppRequest = app.UpdateAppInput

UpdateAppHandler is a handler to update an app

type UpdateAppResponse

type UpdateAppResponse = api.App

UpdateAppHandler is a handler to update an app

type UpsertCustomerDataParams

type UpsertCustomerDataParams struct {
	CustomerId string
}

type UpsertCustomerDataRequest

type UpsertCustomerDataRequest struct {
	CustomerId customer.CustomerID
	Data       []api.CustomerAppData
}

type UpsertCustomerDataResponse

type UpsertCustomerDataResponse = interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL