partners

package
v0.0.0-...-dca2783 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartnerConfiguration

type PartnerConfiguration struct {
	HostPattern string                      `json:"host_pattern"`
	Sharing     PartnerSharingConfiguration `json:"sharing"`
}

TODO Consider embedding same JSON used by partners.ts so we can staticly link to the JS/HTML and also use server side.

func GetPartnerForRequest

func GetPartnerForRequest(ctx context.Context, req *http.Request) (*PartnerConfiguration, error)

type PartnerSharingConfiguration

type PartnerSharingConfiguration struct {
	Title string `json:"title"`
}

Jump to

Keyboard shortcuts

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