webapi

package
v0.5.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 30 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,
	hub *websockethub.Hub,
	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,
	publisher *publisher.Publisher,
)

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