Documentation ¶
Index ¶
- type AnalyticsOpter
- type NullOpter
- type TiltAnalytics
- func (ta *TiltAnalytics) Count(name string, tags map[string]string, n int)
- func (ta *TiltAnalytics) Flush(timeout time.Duration)
- func (ta *TiltAnalytics) Incr(name string, tags map[string]string)
- func (ta *TiltAnalytics) IncrAnonymous(name string, tags map[string]string)
- func (ta *TiltAnalytics) IncrIfUnopted(name string)
- func (ta *TiltAnalytics) OnChange(ctx context.Context, st store.RStore)
- func (ta *TiltAnalytics) SetOpt(opt analytics.Opt) error
- func (ta *TiltAnalytics) Timer(name string, dur time.Duration, tags map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsOpter ¶
An AnalyticsOpter can record a user's choice (opt-in or opt-out) in re: Tilt recording analytics.
type TiltAnalytics ¶
type TiltAnalytics struct {
// contains filtered or unexported fields
}
An Analytics that:
- Has `IncrIfUnopted` to report anonymous metrics only for users who have not opted in/out (or the choice that they did opt in/out).
- Ignores all other calls from users who have not opted in.
- Allows opting in/out at runtime.
func NewMemoryTiltAnalytics ¶
func NewMemoryTiltAnalytics(opter AnalyticsOpter) (*analytics.MemoryAnalytics, *TiltAnalytics)
func NewTiltAnalytics ¶
func NewTiltAnalytics(opt analytics.Opt, opter AnalyticsOpter, analytics analytics.Analytics) *TiltAnalytics
func (*TiltAnalytics) Count ¶
func (ta *TiltAnalytics) Count(name string, tags map[string]string, n int)
func (*TiltAnalytics) Flush ¶
func (ta *TiltAnalytics) Flush(timeout time.Duration)
func (*TiltAnalytics) IncrAnonymous ¶
func (ta *TiltAnalytics) IncrAnonymous(name string, tags map[string]string)
func (*TiltAnalytics) IncrIfUnopted ¶
func (ta *TiltAnalytics) IncrIfUnopted(name string)
Click to show internal directories.
Click to hide internal directories.