Documentation
¶
Index ¶
- Variables
- func E500() error
- func Events(w http.ResponseWriter, r *http.Request)
- func GoalE404() error
- func Sites404() error
- type API
- func (a *API) ApplyCluster(context.Context, *clusterv1.ApplyClusterRequest) (*clusterv1.ApplyClusterResponse, error)
- func (a *API) CreateGoal(ctx context.Context, req *goalsv1.CreateGoalRequest) (*goalsv1.CreateGoalResponse, error)
- func (a *API) CreateSite(ctx context.Context, req *sitesv1.CreateSiteRequest) (*sitesv1.CreateSiteResponse, error)
- func (a *API) CreateSnippet(ctx context.Context, req *snippetsv1.CreateSnippetRequest) (*snippetsv1.CreateSnippetResponse, error)
- func (a *API) DeleteGoal(ctx context.Context, req *goalsv1.DeleteGoalRequest) (*goalsv1.DeleteGoalResponse, error)
- func (a *API) DeleteSite(ctx context.Context, req *sitesv1.DeleteSiteRequest) (*sitesv1.DeleteSiteResponse, error)
- func (a *API) DeleteSnippet(ctx context.Context, req *snippetsv1.DeleteSnippetRequest) (*emptypb.Empty, error)
- func (a *API) GetCluster(context.Context, *clusterv1.GetClusterRequest) (*clusterv1.GetClusterResponse, error)
- func (a *API) GetGoal(ctx context.Context, req *goalsv1.GetGoalRequest) (*goalsv1.Goal, error)
- func (a *API) GetSite(ctx context.Context, req *sitesv1.GetSiteRequest) (*sitesv1.Site, error)
- func (API) Import(ctx context.Context, req *v1.ImportRequest) (*v1.ImportResponse, error)
- func (a *API) ListGoals(ctx context.Context, req *goalsv1.ListGoalsRequest) (*goalsv1.ListGoalsResponse, error)
- func (a *API) ListSites(ctx context.Context, req *sitesv1.ListSitesRequest) (*sitesv1.ListSitesResponse, error)
- func (a *API) ListSnippets(ctx context.Context, req *snippetsv1.ListSnippetsRequest) (*snippetsv1.ListSnippetsResponse, error)
- func (a *API) Query(ctx context.Context, req *queryv1.QueryRequest) (*queryv1.QueryResponse, error)
- func (a *API) SendEvent(ctx context.Context, req *eventsv1.Event) (*emptypb.Empty, error)
- func (a *API) UpdateSnippet(ctx context.Context, req *snippetsv1.UpdateSnippetRequest) (*snippetsv1.UpdateSnippetResposnes, error)
- func (a *API) Version(ctx context.Context, _ *emptypb.Empty) (*v1.Build, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSnippetNotFound = status.Error(codes.NotFound, "snippet does not exists")
Functions ¶
Types ¶
type API ¶ added in v0.0.31
type API struct { v1.UnsafeVinceServer sitesv1.UnsafeSitesServer queryv1.UnsafeQueryServer goalsv1.UnsafeGoalsServer snippetsv1.UnsafeSnippetsServer clusterv1.UnsafeClusterServer eventsv1.UnsafeEventsServer importv1.UnsafeImportServer }
func (*API) ApplyCluster ¶ added in v0.0.31
func (a *API) ApplyCluster(context.Context, *clusterv1.ApplyClusterRequest) (*clusterv1.ApplyClusterResponse, error)
func (*API) CreateGoal ¶ added in v0.0.35
func (a *API) CreateGoal(ctx context.Context, req *goalsv1.CreateGoalRequest) (*goalsv1.CreateGoalResponse, error)
func (*API) CreateSite ¶ added in v0.0.31
func (a *API) CreateSite(ctx context.Context, req *sitesv1.CreateSiteRequest) (*sitesv1.CreateSiteResponse, error)
func (*API) CreateSnippet ¶ added in v0.0.37
func (a *API) CreateSnippet(ctx context.Context, req *snippetsv1.CreateSnippetRequest) (*snippetsv1.CreateSnippetResponse, error)
func (*API) DeleteGoal ¶ added in v0.0.35
func (a *API) DeleteGoal(ctx context.Context, req *goalsv1.DeleteGoalRequest) (*goalsv1.DeleteGoalResponse, error)
func (*API) DeleteSite ¶ added in v0.0.31
func (a *API) DeleteSite(ctx context.Context, req *sitesv1.DeleteSiteRequest) (*sitesv1.DeleteSiteResponse, error)
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 (a *API) GetCluster(context.Context, *clusterv1.GetClusterRequest) (*clusterv1.GetClusterResponse, error)
func (API) Import ¶ added in v0.0.44
func (API) Import(ctx context.Context, req *v1.ImportRequest) (*v1.ImportResponse, error)
Import implements v1.ImportServer . Accepts a schema together with a csv file. This will try to read the csv file using the provided schema into an arrow.Record which is stored uncompressed.
Imports are stored globally, they are not namespaced by user.
func (*API) ListGoals ¶ added in v0.0.35
func (a *API) ListGoals(ctx context.Context, req *goalsv1.ListGoalsRequest) (*goalsv1.ListGoalsResponse, error)
func (*API) ListSites ¶ added in v0.0.31
func (a *API) ListSites(ctx context.Context, req *sitesv1.ListSitesRequest) (*sitesv1.ListSitesResponse, error)
func (*API) ListSnippets ¶ added in v0.0.37
func (a *API) ListSnippets(ctx context.Context, req *snippetsv1.ListSnippetsRequest) (*snippetsv1.ListSnippetsResponse, error)
func (*API) Query ¶ added in v0.0.31
func (a *API) Query(ctx context.Context, req *queryv1.QueryRequest) (*queryv1.QueryResponse, error)
Query executes read only query. Assumes req has been validated.
func (*API) SendEvent ¶ added in v0.0.31
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.UpdateSnippetResposnes, error)
Click to show internal directories.
Click to hide internal directories.