updater

package
v0.0.0-...-292cf52 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

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

func FromConfig

func FromConfig(conf *config.Config, cacher proxy.ResponseCacher, logger *logrus.Entry) (*Updater, error)

func New

func New(
	cacher proxy.ResponseCacher,
	logger *logrus.Entry,
	url, token string,
	batchSize int,
	concurrency int,
	debugHTTPRequest bool,
	debugHTTPResponse bool,
) *Updater

func (*Updater) StartCacheUpdater

func (u *Updater) StartCacheUpdater(ctx context.Context, period int)

func (*Updater) StartMethodUpdater

func (u *Updater) StartMethodUpdater(ctx context.Context, period int)

func (*Updater) StopWithTimeout

func (u *Updater) StopWithTimeout(ctx context.Context, waitFor int) bool

Jump to

Keyboard shortcuts

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