sidetreesvc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements a Sidetree services provider which is responsible for managing Sidetree services for all channels that a peer has joined.

func NewProvider

func NewProvider(providers *providers, sidetreeConfigProvider sidetreeConfigProvider) *Provider

NewProvider returns a new Sidetree services provider

func (*Provider) ChannelJoined

func (p *Provider) ChannelJoined(channelID string)

ChannelJoined is invoked when a peer joins a channel. A new channel manager is created to manage the Sidetree resources for the channel.

func (*Provider) Close

func (p *Provider) Close()

Close closes all Sidetree resources

func (*Provider) RestartRESTService

func (p *Provider) RestartRESTService()

RestartRESTService restarts the REST server

Jump to

Keyboard shortcuts

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