gcs

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Set provides a wire set.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context) (*Client, error)

type ImageStore

type ImageStore struct {
	*Client
	// contains filtered or unexported fields
}

func NewImageStore

func NewImageStore(cli *Client, conf repository.Config) (*ImageStore, error)

func (*ImageStore) Fetch

func (w *ImageStore) Fetch(ctx context.Context, key string) (io.ReadCloser, int, error)

type WeatherImageStore

type WeatherImageStore struct {
	*Client
	// contains filtered or unexported fields
}

func NewWeatherImageStore

func NewWeatherImageStore(cli *Client, conf repository.Config) (*WeatherImageStore, error)

func (*WeatherImageStore) Get

func (*WeatherImageStore) Save

func (w *WeatherImageStore) Save(ctx context.Context, r io.Reader, t time.Time) (string, error)

Jump to

Keyboard shortcuts

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