daily

package
v0.0.0-...-adab437 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package daily encapsulates work with daily images

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daily

type Daily struct {
	// contains filtered or unexported fields
}

Daily fetch daily images

func NewDailyGetter

func NewDailyGetter(dg DailyGetter, cachePath string) *Daily

NewDailyGetter creates new daily getter instance

func (*Daily) GetImage

func (d *Daily) GetImage() (string, error)

GetImage ImageGetter implementation

type DailyGetter

type DailyGetter interface {
	GetDailyImageRaw(ctx context.Context, countryCode string) ([]byte, error)
}

DailyGetter daily getter interface

Jump to

Keyboard shortcuts

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