...

Package schedule

import "github.com/google/certificate-transparency-go/schedule"
Overview
Index

Overview ▾

Package schedule provides support for periodically running a function.

func Every

func Every(ctx context.Context, period time.Duration, f func(context.Context))

Every will call f periodically. The first call will be made immediately. Calls are made synchronously, so f will not be executed concurrently.