Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceTypeKey = "interactives" HealthEndpoint = "/health" EmbeddedSuffix = "/embed" ResourceIdVarKey = "resource_id" SlugVarKey = "human_readable_slug" CatchAllVarKey = "uri" )
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(_ *config.Config, r *mux.Router, hc http.HandlerFunc, interactivesHandler http.HandlerFunc, redirectHandler http.HandlerFunc)
Setup registers routes for the service
Types ¶
type Clients ¶
type Clients struct { Storage storage.Provider API InteractivesAPIClient }
Clients - struct containing all the clients for the controller
type InteractivesAPIClient ¶
type InteractivesAPIClient interface {
ListInteractives(ctx context.Context, userAuthToken, serviceAuthToken string, f *interactives.Filter) ([]interactives.Interactive, error)
}
Click to show internal directories.
Click to hide internal directories.