webapi

package
v0.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompatibilityHTTPErrorHandler

func CompatibilityHTTPErrorHandler(logger *logger.Logger) func(error, echo.Context)

CompatibilityHTTPErrorHandler differentiates V1/V2 error types and uses their respective handler functions.

func Init

func Init(
	logger *loggerpkg.Logger,
	server echoswagger.ApiRoot,
	waspVersion string,
	config *configuration.Configuration,
	networkProvider peering.NetworkProvider,
	trustedNetworkManager peering.TrustedNetworkManager,
	userManager *userspkg.UserManager,
	chainRecordRegistryProvider registry.ChainRecordRegistryProvider,
	dkShareRegistryProvider registry.DKShareRegistryProvider,
	nodeIdentityProvider registry.NodeIdentityProvider,
	chainsProvider chains.Provider,
	dkgNodeProvider dkg.NodeProvider,
	shutdownHandler *shutdown.ShutdownHandler,
	nodeConnectionMetrics nodeconnmetrics.NodeConnectionMetrics,
	authConfig authentication.AuthConfiguration,
	nodeOwnerAddresses []string,
	requestCacheTTL time.Duration,
)

Types

type Mocker added in v1.0.3

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

func NewMocker added in v1.0.3

func NewMocker() *Mocker

func (*Mocker) Get added in v1.0.3

func (m *Mocker) Get(i interface{}) interface{}

func (*Mocker) LoadMockFiles added in v1.0.3

func (m *Mocker) LoadMockFiles()

Directories

Path Synopsis
controllers

Jump to

Keyboard shortcuts

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