coreapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Component *app.Component
)
View Source
var ParamsProtocol = &ParametersProtocol{}
View Source
var ParamsRestAPI = &ParametersRestAPI{}

Functions

This section is empty.

Types

type ParametersProtocol

type ParametersProtocol struct {
	// NetworkID defines the network ID this app operates on
	NetworkID string `default:"chrysalis-mainnet" name:"networkID" usage:"the network ID on which this app operates on"`
	// Bech32HRP defines the HRP which should be used for Bech32 addresses
	Bech32HRP string `default:"iota" name:"bech32HRP" usage:"the HRP which should be used for Bech32 addresses"`
}

ParametersProtocol contains the definition of the parameters used by the protocol.

type ParametersRestAPI

type ParametersRestAPI struct {
	// BindAddress defines the bind address on which the chrysalis API HTTP server listens.
	BindAddress string `default:"localhost:9094" usage:"the bind address on which the chrysalis API HTTP server listens"`

	// AdvertiseAddress defines the address of the chrysalis API HTTP server which is advertised to the INX Server (optional).
	AdvertiseAddress string `default:"" usage:"the address of the chrysalis API HTTP server which is advertised to the INX Server (optional)"`

	Limits struct {
		// the maximum number of characters that the body of an API call may contain
		MaxBodyLength string `default:"1M" usage:"the maximum number of characters that the body of an API call may contain"`
		// the maximum number of results that may be returned by an endpoint
		MaxResults int `default:"1000" usage:"the maximum number of results that may be returned by an endpoint (0 for disabled)"`
	}

	Caches struct {
		// the maximum number of entries in the transaction history LRU cache
		TransactionHistorySize int `default:"10000" usage:"the maximum number of entries in the transaction history LRU cache"`
	}

	// SwaggerEnabled defines whether to provide swagger API documentation under endpoint "/swagger"
	SwaggerEnabled bool `default:"false" usage:"whether to provide swagger API documentation under endpoint \"/swagger\""`

	// DebugRequestLoggerEnabled defines whether the debug logging for requests should be enabled
	DebugRequestLoggerEnabled bool `default:"false" usage:"whether the debug logging for requests should be enabled"`
}

ParametersRestAPI contains the definition of the parameters used by the chrysalis API HTTP server.

Jump to

Keyboard shortcuts

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