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 batch.AnchorWriter OpQueue cutter.OperationQueue }
ServerContext implements batch context.
func New ¶
func New(pc protocol.Client, aw batch.AnchorWriter, opQueue cutter.OperationQueue) *ServerContext
New returns a new server context.
func (*ServerContext) Anchor ¶
func (m *ServerContext) Anchor() batch.AnchorWriter
Anchor returns the anchor writer.
func (*ServerContext) OperationQueue ¶
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.
Click to show internal directories.
Click to hide internal directories.