storage

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetGCEClient = func() (Storage, error) {
	if gceClient != nil {
		return gceClient, nil
	}
	ctx := context.Background()
	cli, err := storage.NewClient(ctx, option.WithCredentialsFile(config.GetGCEServiceKeyFilepath()))
	if err != nil {
		return nil, fmt.Errorf("cannot create gce storage client: %w", err)
	}
	gceClient = &gceClientImpl{cli: cli}
	return gceClient, nil
}

GetGCEClient ...

View Source
var GetGCETestClient = func() (Storage, error) {
	return &testGCEClient{}, nil
}

GetGCETestClient ...

Functions

func SaveOrderBookLog

func SaveOrderBookLog(fpath string) error

SaveOrderBookLog ...

Types

type Storage

type Storage interface {
	SaveObject(string, string) error
}

Storage ...

Jump to

Keyboard shortcuts

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