api

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func E500 added in v0.0.37

func E500() error

func Events

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

Events accepts events payloads from vince client script.

func GoalE404 added in v0.0.37

func GoalE404() error

func Sites404 added in v0.0.37

func Sites404() error

func SnippetsE404 added in v0.0.37

func SnippetsE404() error

Types

type API added in v0.0.31

func (*API) ApplyCluster added in v0.0.31

func (*API) CreateGoal added in v0.0.35

func (*API) CreateSite added in v0.0.31

func (*API) CreateSnippet added in v0.0.37

func (a *API) CreateSnippet(ctx context.Context, req *snippetsv1.CreateSnippetRequest) (*snippetsv1.Snippet, error)

func (*API) DeleteGoal added in v0.0.35

func (*API) DeleteSite added in v0.0.31

func (*API) DeleteSnippet added in v0.0.37

func (a *API) DeleteSnippet(ctx context.Context, req *snippetsv1.DeleteSnippetRequest) (*emptypb.Empty, error)

func (*API) GetCluster added in v0.0.31

func (*API) GetGoal added in v0.0.35

func (a *API) GetGoal(ctx context.Context, req *goalsv1.GetGoalRequest) (*goalsv1.Goal, error)

func (*API) GetSite added in v0.0.31

func (a *API) GetSite(ctx context.Context, req *sitesv1.GetSiteRequest) (*sitesv1.Site, error)

func (*API) ListGoals added in v0.0.35

func (*API) ListSites added in v0.0.31

func (*API) ListSnippets added in v0.0.37

func (*API) Query added in v0.0.31

Query executes read only query. Assumes req has been validated.

func (*API) SendEvent added in v0.0.31

func (a *API) SendEvent(ctx context.Context, req *eventsv1.Event) (*emptypb.Empty, error)

SendEvent accepts analytics event. Assumes req has already been validated

func (*API) UpdateSnippet added in v0.0.37

func (a *API) UpdateSnippet(ctx context.Context, req *snippetsv1.UpdateSnippetRequest) (*snippetsv1.Snippet, error)

func (*API) Version added in v0.0.31

func (a *API) Version(ctx context.Context, _ *emptypb.Empty) (*v1.Build, error)

Jump to

Keyboard shortcuts

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