sites

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSite

func CreateSite(w http.ResponseWriter, r *http.Request)

func DeleteGoal

func DeleteGoal(w http.ResponseWriter, r *http.Request)

func DeleteSite

func DeleteSite(w http.ResponseWriter, r *http.Request)

func FindOrCreateGoals

func FindOrCreateGoals(w http.ResponseWriter, r *http.Request)
func FindOrCreateSharedLink(w http.ResponseWriter, r *http.Request)

func GetSite

func GetSite(w http.ResponseWriter, r *http.Request)

func ListSites

func ListSites(w http.ResponseWriter, r *http.Request)

Types

type CreateSiteRequest

type CreateSiteRequest struct {
	Domain string `json:"domain"`
	Public bool   `json:"public,omitempty"`
}

type Error

type Error struct {
	Error string `json:"error"`
}

type GoalRequest

type GoalRequest struct {
	SiteID    string `json:"site_id"`
	GoalType  string `json:"goal_type"`
	PagePath  string `json:"page_path,omitempty"`
	EventName string `json:"event_name,omitempty"`
}

type SharedLinkRequest

type SharedLinkRequest struct {
	SiteID   string `json:"site_id"`
	Name     string `json:"name"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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