storage

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRequest

type GetRequest struct {
	Key string
}

type GetResponse

type GetResponse struct {
	Body io.Reader
}

type PutRequest

type PutRequest struct {
	Key  string
	Body io.Reader
}

type PutResponse

type PutResponse struct {
	Location string
}

type Service

type Service interface {
	Put(req PutRequest) (*PutResponse, error)
	Get(req GetRequest) (*GetResponse, error)
}

func NewStorageService

func NewStorageService(cfg *config.StorageConfig, logger *zap.Logger) (Service, error)

Jump to

Keyboard shortcuts

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