context

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerContext

type ServerContext struct {
	ProtocolClient protocol.Client
	AnchorWriter   *mocks.MockAnchorWriter
	OpQueue        *opqueue.MemQueue
}

ServerContext implements batch context

func New

func New(pc protocol.Client) *ServerContext

New returns a new server context

func (*ServerContext) Anchor added in v0.6.0

func (m *ServerContext) Anchor() batch.AnchorWriter

Anchor returns anchor writer

func (*ServerContext) OperationQueue added in v0.1.3

func (m *ServerContext) OperationQueue() cutter.OperationQueue

OperationQueue returns the queue containing the pending operations

func (*ServerContext) Protocol

func (m *ServerContext) Protocol() protocol.Client

Protocol returns the ProtocolClient

Jump to

Keyboard shortcuts

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