server

package
v0.0.1-beta15 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainAPIServer

type BlockchainAPIServer struct {
	BlockchainServerOpts
	// contains filtered or unexported fields
}

func (*BlockchainAPIServer) Run

func (a *BlockchainAPIServer) Run()

type BlockchainServerOpts

type BlockchainServerOpts struct {
	Address        string
	MetricsAddress string
	SDK            *fabsdk.FabricSDK
	SDKContext     context.ClientProvider
	SDKContextMap  map[string]context.ClientProvider
	GWClient       *client.Gateway

	Channel      string
	MSPClient    *clientmsp.Client
	CAConfig     *msp.CAConfig
	Organization string
	User         string
}

type MetricsRegistry

type MetricsRegistry interface {
	IncGraphqlRequest(statusCode int)
	ObserveGraphqlMutation(duration time.Duration)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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