conf

package
v1.0.2-prerelease Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Moniker                     string           `json:"moniker"`
	Website                     string           `json:"website"`
	Description                 string           `json:"description"`
	Location                    string           `json:"location"`
	Port                        string           `json:"port"`
	SourceChain                 string           `json:"source_chain"` // base url for arceo block chain
	EventStreamHost             string           `json:"event_stream_host"`
	ClaimStoreLocation          string           `json:"claim_store_location"`           // file location where claims are stored
	ContractConfigStoreLocation string           `json:"contract_config_store_location"` // file location where contract configurations are stored
	ProviderPubKey              common.PubKey    `json:"provider_pubkey"`
	FreeTierRateLimit           int              `json:"free_tier_rate_limit"`
	TLS                         TLSConfiguration `json:"tls"`
}

func NewConfiguration

func NewConfiguration() Configuration

func (Configuration) Print

func (c Configuration) Print()

type TLSConfiguration

type TLSConfiguration struct {
	Cert string `json:"tls_certificate"`
	Key  string `json:"tls_key"`
}

func NewTLSConfiguration

func NewTLSConfiguration() TLSConfiguration

func (TLSConfiguration) HasTLS

func (c TLSConfiguration) HasTLS() bool

Jump to

Keyboard shortcuts

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