storage

package
v2.3.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package storage defines methods for storage DB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUploadResponse

type MockUploadResponse struct {
	IsSuccess bool   `json:"isSuccess"`
	Error     string `json:"error"`
}

type Storage

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

func New

func New(serverURL string, logger *zap.Logger) *Storage

func (*Storage) Download

func (s *Storage) Download(ctx context.Context, mockName string, appName string, userName string, jwtToken string) (io.Reader, error)

func (*Storage) Upload

func (s *Storage) Upload(ctx context.Context, file io.Reader, mockName string, appName string, token string) error

Jump to

Keyboard shortcuts

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