sites

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: AGPL-3.0 Imports: 10 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)

func Role

func Role(ctx context.Context, userId uint64, siteId uint64) (role string)

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