api

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiveEvent

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

Types

type API

type API struct {
	v1.UnsafeStaplesServer
	v1.UnsafeStatsServer
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, o *v1.Config) (*API, error)

func (*API) Aggregate

func (a *API) Aggregate(ctx context.Context, req *v1.Aggregate_Request) (*v1.Aggregate_Response, error)

func (*API) BreakDown

func (a *API) BreakDown(ctx context.Context, req *v1.BreakDown_Request) (*v1.BreakDown_Response, error)

func (*API) GetDomains

func (a *API) GetDomains(_ context.Context, _ *v1.GetDomainRequest) (*v1.GetDomainResponse, error)

func (*API) GetVersion

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

func (*API) RealtimeVisitors

func (a *API) RealtimeVisitors(ctx context.Context, req *v1.Realtime_Request) (*v1.Realtime_Response, error)

func (*API) SendEvent

func (a *API) SendEvent(ctx context.Context, req *v1.Event) (*v1.SendEventResponse, error)

func (*API) ServeHTTP

func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*API) Timeseries

func (a *API) Timeseries(ctx context.Context, req *v1.Timeseries_Request) (*v1.Timeseries_Response, error)

Jump to

Keyboard shortcuts

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