web

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigHandler

func ConfigHandler(
	cfg *config.Config,
	a *algolia.Client,
	log hclog.Logger,
) http.Handler

ConfigHandler returns runtime configuration for the Hermes frontend.

func Handler

func Handler() http.Handler

Types

type ConfigResponse

type ConfigResponse struct {
	AlgoliaDocsIndexName     string          `json:"algolia_docs_index_name"`
	AlgoliaDraftsIndexName   string          `json:"algolia_drafts_index_name"`
	AlgoliaInternalIndexName string          `json:"algolia_internal_index_name"`
	CreateDocsAsUser         bool            `json:"create_docs_as_user"`
	FeatureFlags             map[string]bool `json:"feature_flags"`
	GoogleAnalyticsTagID     string          `json:"google_analytics_tag_id"`
	GoogleOAuth2ClientID     string          `json:"google_oauth2_client_id"`
	GoogleOAuth2HD           string          `json:"google_oauth2_hd"`
	JiraURL                  string          `json:"jira_url"`
	ShortLinkBaseURL         string          `json:"short_link_base_url"`
	SkipGoogleAuth           bool            `json:"skip_google_auth"`
	SupportLinkURL           string          `json:"support_link_url"`
	ShortRevision            string          `json:"short_revision"`
	Version                  string          `json:"version"`
}

Jump to

Keyboard shortcuts

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