store

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements client for accessing document operations

func NewClient added in v0.1.3

func NewClient(channelID, namespace string, s store) *Client

NewClient returns a new operation store client

func (*Client) Get

func (c *Client) Get(uniqueSuffix string) ([]*operation.AnchoredOperation, error)

Get retrieves all document operations for specified document ID

func (*Client) Put

func (c *Client) Put(ops []*operation.AnchoredOperation) error

Put stores an operation

type Provider added in v0.1.3

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

Provider manages an operation store client for each namespace

func NewProvider added in v0.1.3

func NewProvider(channelID string, cfgServiceProvider config.SidetreeService, offLedgerProvider common.OffLedgerClientProvider) *Provider

NewProvider returns a new operation store client provider

func (*Provider) ForNamespace added in v0.1.3

func (p *Provider) ForNamespace(namespace string) (common.OperationStore, error)

ForNamespace returns the operation store client for the given namespace

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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