api

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptedEvents = prometheus.NewCounter(prometheus.CounterOpts{
	Namespace: "vince",
	Name:      "events_accepted_total",
	Help:      "Total number of analytics events accepted",
})
View Source
var RejectedEvents = prometheus.NewCounter(prometheus.CounterOpts{
	Namespace: "vince",
	Name:      "events_rejected_total",
	Help:      "Total number of analytics events rejected",
})

Functions

func Apply added in v0.0.30

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

func Cluster added in v0.0.30

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

func Create added in v0.0.19

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

func Delete added in v0.0.25

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

func Events

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

Events accepts events payloads from vince client script.

func Health

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

func ListSites added in v0.0.19

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

func Query added in v0.0.26

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

func Token added in v0.0.23

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

func Version

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

Types

type API added in v0.0.31

type API struct {
	v1.UnsafeVinceServer
}

func (*API) ApplyCluster added in v0.0.31

func (*API) CreateSite added in v0.0.31

func (*API) CreateToken added in v0.0.31

func (*API) DeleteSite added in v0.0.31

func (*API) GetCluster added in v0.0.31

func (*API) GetSite added in v0.0.31

func (*API) ListSites added in v0.0.31

func (*API) Query added in v0.0.31

func (a *API) Query(ctx context.Context, req *apiv1.QueryRequest) (*apiv1.QueryResponse, error)

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 *apiv1.Event) (*emptypb.Empty, error)

SendEvent accepts analytics event. Assumes req has already been validated

func (*API) Version added in v0.0.31

func (a *API) Version(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