lib

package
v0.0.0-...-f26ed72 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltCache

type BoltCache struct {
	Cache
	// contains filtered or unexported fields
}

func NewBoltCache

func NewBoltCache(path string) (BoltCache, error)

func (BoltCache) Del

func (c BoltCache) Del(ns, k string)

func (BoltCache) Get

func (c BoltCache) Get(ns, k string) ([]byte, bool)

func (BoltCache) Items

func (c BoltCache) Items(ns string, ks chan<- string)

func (BoltCache) Set

func (c BoltCache) Set(ns, k string, v []byte)

type Cache

type Cache interface {
	Set(ns, k string, v []byte)
	Get(ns, k string) ([]byte, bool)
	Del(ns, k string)
	Items(ns string, ks chan<- string)
	Close()
}

type Progress

type Progress struct {
	Current uint
	Total   uint
}

Progress represents a simple "done xxx out of yyy"-style progress report.

type RateLimit

type RateLimit struct {
	Period       time.Duration
	Rate         uint
	BackoffLimit uint
	BackoffStart time.Duration
	// contains filtered or unexported fields
}

func (*RateLimit) DoWithBackoff

func (r *RateLimit) DoWithBackoff(f func() (err error, fatal bool)) error

func (*RateLimit) Get

func (r *RateLimit) Get()

func (*RateLimit) Start

func (r *RateLimit) Start()

func (*RateLimit) Stop

func (r *RateLimit) Stop()

func (*RateLimit) TryGet

func (r *RateLimit) TryGet() bool

Directories

Path Synopsis
Package maildir implements reading and writing maildir directories as specified in http://cr.yp.to/proto/maildir.html.
Package maildir implements reading and writing maildir directories as specified in http://cr.yp.to/proto/maildir.html.
Package oauth implements a convenience function for doing the Oauth exchange.
Package oauth implements a convenience function for doing the Oauth exchange.

Jump to

Keyboard shortcuts

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