mock

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	ExportedEvents    []exporter.FeatureEvent
	Err               error
	ExpectedNumberErr int
	CurrentNumberErr  int
	Bulk              bool
	// contains filtered or unexported fields
}

func (*Exporter) Export

func (m *Exporter) Export(ctx context.Context, _ *fflog.FFLogger, events []exporter.FeatureEvent) error

func (*Exporter) GetExportedEvents

func (m *Exporter) GetExportedEvents() []exporter.FeatureEvent

func (*Exporter) IsBulk

func (m *Exporter) IsBulk() bool

type HTTP added in v0.26.0

type HTTP struct {
	Req           http.Request
	RateLimit     bool
	HasBeenCalled bool
	EndRatelimit  time.Time
}

func (*HTTP) Do added in v0.26.0

func (m *HTTP) Do(req *http.Request) (*http.Response, error)

type NotificationService added in v1.37.0

type NotificationService struct {
	NotifyCalls int
	CloseCalled bool
	// contains filtered or unexported fields
}

func (*NotificationService) Close added in v1.37.0

func (n *NotificationService) Close()

func (*NotificationService) GetNotifyCalls added in v1.37.0

func (n *NotificationService) GetNotifyCalls() int

func (*NotificationService) Notify added in v1.37.0

func (n *NotificationService) Notify(oldCache map[string]flag.Flag, newCache map[string]flag.Flag, log *fflog.FFLogger)

func (*NotificationService) WasCloseCalled added in v1.37.0

func (n *NotificationService) WasCloseCalled() bool

type Notifier added in v1.28.0

type Notifier struct {
	NotifyCalls int
	// contains filtered or unexported fields
}

func (*Notifier) GetNotifyCalls added in v1.37.0

func (n *Notifier) GetNotifyCalls() int

func (*Notifier) Notify added in v1.28.0

func (n *Notifier) Notify(cache notifier.DiffCache) error

Jump to

Keyboard shortcuts

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