gcspersist

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadWriter

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

func NewReadWriter

func NewReadWriter(settings func() StorageSettings, now func() time.Time) *ReadWriter

func (*ReadWriter) Name

func (this *ReadWriter) Name() string

func (*ReadWriter) Read

func (this *ReadWriter) Read(document projector.Document) error

func (*ReadWriter) ReadPanic

func (this *ReadWriter) ReadPanic(document projector.Document)

func (*ReadWriter) Write

func (this *ReadWriter) Write(document projector.Document) error

type StorageSettings

type StorageSettings struct {
	HTTPClient  persist.HTTPClient
	BucketName  string
	PathPrefix  string
	Context     context.Context
	Credentials gcs.Credentials
}

Jump to

Keyboard shortcuts

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