Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, cfg *GCSConfig, options ...option.ClientOption) (storage.EventStore, error)
Types ¶
type GCSConfig ¶
func (*GCSConfig) NewContextWithTimeout ¶
func (c *GCSConfig) NewContextWithTimeout( parent context.Context, operation Operation) (context.Context, context.CancelFunc)
NewContextWithTimeout generates a new context.Context with timeout from the parent context. If neither operation-specific timeout nor default timeout is found, return parent context without any operation.
func (*GCSConfig) WithFolder ¶
func (*GCSConfig) WithTimeout ¶
type GCSEventStore ¶
type GCSEventStore struct {
// contains filtered or unexported fields
}
GCSEventStore persists the contents in GCS, which requires consistent connections to Google Cloud.
func (*GCSEventStore) LookUp ¶
LookUp returns a single message by looking up the path `folder/key/source`.
func (*GCSEventStore) LookUpByKey ¶
LookUpByKey returns a list of messages by looking up the prefix `folder/key/`.
type Operation ¶
type Operation string
const ( ListContents Operation = "ListContents" // operation that lists all content associated with a given key ReadContent Operation = "ReadContent" // operation that reads content associated with a key-source pair WriteContent Operation = "WriteContent" //operation to writes content associated with a key-source pair )
Click to show internal directories.
Click to hide internal directories.