Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotSupported = errors.New("not supported")
)
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter interface {
SupportedExtensions() []string
Convert(ctx context.Context, filename string, r io.Reader) (io.ReadCloser, error)
}
Converter converts a given file to its markdown equivalent.
type RateLimited ¶
type RateLimited struct {
// contains filtered or unexported fields
}
func NewRateLimited ¶
func NewRateLimited(fileConverter Converter, interval time.Duration, maxBurst int) *RateLimited
func (*RateLimited) Convert ¶
func (c *RateLimited) Convert(ctx context.Context, filename string, r io.Reader) (io.ReadCloser, error)
Convert implements Converter.
func (*RateLimited) SupportedExtensions ¶
func (c *RateLimited) SupportedExtensions() []string
SupportedExtensions implements Converter.
type Retry ¶
type Retry struct {
// contains filtered or unexported fields
}
func (*Retry) SupportedExtensions ¶
SupportedExtensions implements Converter.
Click to show internal directories.
Click to hide internal directories.