context

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelProvider

func GetChannelProvider(cfg *viper.Viper) (context.ChannelProvider, error)

GetChannelProvider creates new channel provider

Types

type SidetreeContext

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

SidetreeContext implements 'Fabric' version of Sidetree node context

func New

func New(cfg *viper.Viper, channelProvider context.ChannelProvider) (*SidetreeContext, error)

New creates new Sidetree context

func (*SidetreeContext) Blockchain

func (m *SidetreeContext) Blockchain() batch.BlockchainClient

Blockchain returns blockchain client

func (*SidetreeContext) CAS

func (m *SidetreeContext) CAS() batch.CASClient

CAS returns content addressable storage client

func (*SidetreeContext) Protocol

func (m *SidetreeContext) Protocol() protocolApi.Client

Protocol returns protocol client

Directories

Path Synopsis
cas

Jump to

Keyboard shortcuts

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