8 type UpstreamAnnounceGater interface {
9 Start(ctx context.Context, tracker string, infoHash InfoHash,
10 // How long the announce block remains before discarding it.
11 timeout time.Duration,
14 ctx context.Context, tracker string, infoHash InfoHash,
15 // Num of seconds reported by tracker, or some suitable value the caller has chosen.