Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base64Decoder ¶
type Base64Decoder struct{}
Base64Decoder is a simple base64 decoder
func (Base64Decoder) Decode ¶
func (d Base64Decoder) Decode(hash string) (usecases.ImageDescription, error)
Decode decodes the given hash and returns an imageDescription, error otherwise
type CappedMemoryStorage ¶
type CappedMemoryStorage struct {
// contains filtered or unexported fields
}
CappedMemoryStorage is a simple in memory storage for images
func NewCappedMemoryStorage ¶
func NewCappedMemoryStorage(capacity int) *CappedMemoryStorage
NewCappedMemoryStorage returns a new initialized CappedMemoryStorage with initial capacity
type ConsoleLogger ¶
type ConsoleLogger struct{}
ConsoleLogger simply logs to the console
func (ConsoleLogger) Log ¶
func (l ConsoleLogger) Log(format string, args ...interface{})
Log logs the given msg
type ImageFetcher ¶
type ImageFetcher struct{}
ImageFetcher implements the ImageFetcher usecases interface
Click to show internal directories.
Click to hide internal directories.