sync

package
v0.0.0-...-44e5b1b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, triggerFunc TriggerFunc, syncFunc func())

Types

type TriggerFunc

type TriggerFunc func(context.Context, chan<- struct{}) error

func AmqpTrigger

func AmqpTrigger(amqpURL, queueName string) (TriggerFunc, error)

func PeriodicTrigger

func PeriodicTrigger(duration time.Duration) TriggerFunc

Jump to

Keyboard shortcuts

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