routes

package
v0.0.0-...-ab02cca Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 8 Imported by: 0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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