validator

package
v0.0.0-testrgm6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeUsageStatsValidator

type FakeUsageStatsValidator struct{}

func (*FakeUsageStatsValidator) ShouldBeReported

func (uss *FakeUsageStatsValidator) ShouldBeReported(ctx context.Context, s string) bool

type Service

type Service interface {
	ShouldBeReported(context.Context, string) bool
}

func ProvideService

func ProvideService(pluginStore plugins.Store) (Service, error)

type UsageStatsValidator

type UsageStatsValidator struct {
	// contains filtered or unexported fields
}

func (*UsageStatsValidator) ShouldBeReported

func (uss *UsageStatsValidator) ShouldBeReported(ctx context.Context, dsType string) bool

Jump to

Keyboard shortcuts

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