Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WriteKey string DataPlaneURL string )
Functions ¶
func Report ¶
func Report(event *telemetryv1.Event) bool
Types ¶
type Conf ¶
type Conf struct { // StateDir is used to persist state to avoid repeatedly sending the data over and over again. StateDir string `yaml:"stateDir" conf:",example=${HOME}/.config/cerbos"` // Disabled sets whether telemetry collection is disabled or not. Disabled bool `yaml:"disabled" conf:",example=false"` // ReportInterval is the interval between telemetry pings. ReportInterval time.Duration `yaml:"reportInterval" conf:",example=1h"` }
Conf for telemetry reporting.
func (*Conf) SetDefaults ¶ added in v0.17.0
func (c *Conf) SetDefaults()
type Interceptors ¶ added in v0.17.0
type Interceptors interface { UnaryServerInterceptor() grpc.UnaryServerInterceptor StreamServerInterceptor() grpc.StreamServerInterceptor }
func Intercept ¶ added in v0.17.0
func Intercept() Interceptors
type Reporter ¶ added in v0.17.0
type Reporter interface { Report(*telemetryv1.Event) bool Intercept() Interceptors Stop() error }
Click to show internal directories.
Click to hide internal directories.