context

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 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   batch.AnchorWriter
	OpQueue        cutter.OperationQueue
}

ServerContext implements batch context.

func New

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.

Directories

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

Jump to

Keyboard shortcuts

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