Update github.com/kurin/blazer to 0.5.1

This adds support for B2 application keys.
This commit is contained in:
Alexander Neumann 2018-07-31 20:51:36 +02:00
parent 57873502f8
commit 2437f11af7
10 changed files with 276 additions and 24 deletions

View file

@ -154,6 +154,7 @@ type beKeyInterface interface {
name() string
expires() time.Time
secret() string
id() string
}
type beKey struct {
@ -711,6 +712,7 @@ func (b *beKey) caps() []string { return b.k.caps() }
func (b *beKey) name() string { return b.k.name() }
func (b *beKey) expires() time.Time { return b.k.expires() }
func (b *beKey) secret() string { return b.k.secret() }
func (b *beKey) id() string { return b.k.id() }
func jitter(d time.Duration) time.Duration {
f := float64(d)