server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 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 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
	ConfigBackend core.ConfigProvider
}

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