gcs

package
v1.4.22 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 17 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 *config.Storage) (*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, cs *config.Storage, ct *config.Time) (*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