awsdocstore

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsDocStore

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

func New

func New(opts ...AwsDocStoreOption) *AwsDocStore

func (*AwsDocStore) GetDoc

func (ds *AwsDocStore) GetDoc(docId string) (rev docstore.Revision, err error)

func (*AwsDocStore) GetRevision

func (ds *AwsDocStore) GetRevision(docId string, revisionId int) (rev docstore.Revision, err error)

func (*AwsDocStore) ListDocs

func (ds *AwsDocStore) ListDocs(token string) (page docstore.DocPage, err error)

func (*AwsDocStore) ListRevisions

func (ds *AwsDocStore) ListRevisions(docId string, token string) (page docstore.RevisionPage, err error)

func (*AwsDocStore) PutRevision

func (ds *AwsDocStore) PutRevision(docId string, body io.Reader) (rev docstore.Revision, err error)

type AwsDocStoreOption

type AwsDocStoreOption func(*AwsDocStore)

func WithDocTable

func WithDocTable(s string) AwsDocStoreOption

func WithRevisionTable

func WithRevisionTable(s string) AwsDocStoreOption

type AwsRevision

type AwsRevision struct {
	DocId     string
	Id        int
	Timestamp time.Time
	Body      []byte
	// contains filtered or unexported fields
}

func (*AwsRevision) Metadata

func (r *AwsRevision) Metadata() docstore.RevisionMetadata

func (*AwsRevision) Read

func (r *AwsRevision) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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