Documentation ¶
Index ¶
- Constants
- func DumpRequestResponse(req *http.Request, handler mediary.Handler) (*http.Response, error)
- func DumpRequestResponseWrappedLogger(logger *zap.SugaredLogger) func(req *http.Request, handler mediary.Handler) (*http.Response, error)
- func MustParseFloatStringFloat64(val string) float64
- type Config
- type Errors
- type HoldingOperation
- type OnHoldingNotFoundType
- type SymbolConfig
Constants ¶
View Source
const ( ZeroQuantity = "ZeroQuantity" DeleteHolding = "DeleteHolding" )
View Source
const ( AddHolding = 1 << iota RemoveHolding UpdateHolding SkipZeroQuantity SkipMinorDifferences )
Variables ¶
This section is empty.
Functions ¶
func DumpRequestResponse ¶ added in v0.2.2
func DumpRequestResponseWrappedLogger ¶ added in v0.3.0
Types ¶
type Config ¶ added in v0.2.2
type Config struct { // Debug // Prints Debug Information Debug bool `toml:"debug"` // Destination will the aggregated information will go // Supported: person capital Destination string `toml:"destination"` // PriceDataSource will fetch the currency pricing data from this // Supported: coinbase PriceDataSource string `toml:"priceDataSource"` // OnHoldingNotFound will determine the actions performed when a holding // exists in the destination but not in the source // Available values: // ZeroQuantity - This will not remove the holding, and instead just set the quantity to zero // DeleteHolding - This will remove the holding OnHoldingNotFound OnHoldingNotFoundType `toml:"onHoldingNotFound"` // DestinationCurrencyAs will fetch the converted pricing data of the concurrency in the specified format // Data Matrix: // Coinbase: USD, many others look at their api DestinationCurrencyAs string `toml:"destinationCurrencyAs"` // List of crypto currency holdings with their configurations // Supported: coinbase Holdings map[string]map[string]interface{} `toml:"holdings"` // Pricing holds a list of configuration for pricing data Pricing map[string]map[string]interface{} `toml:"pricing"` // Symbols holds a map of overrides for symbols Symbols SymbolConfig `toml:"symbols"` // List of Destinations holding their configuration // Supported: personalcapital Destinations map[string]map[string]interface{} `toml:"destinations"` }
Config holds details when syncing
func GetConfigFromTomlFile ¶ added in v0.2.2
type Errors ¶ added in v0.2.2
type Errors []error
type HoldingOperation ¶ added in v0.3.1
type HoldingOperation int
func (HoldingOperation) Has ¶ added in v0.3.1
func (ao HoldingOperation) Has(flag HoldingOperation) bool
type OnHoldingNotFoundType ¶ added in v0.2.2
type OnHoldingNotFoundType string
func (OnHoldingNotFoundType) IsValid ¶ added in v0.2.2
func (o OnHoldingNotFoundType) IsValid() bool
Click to show internal directories.
Click to hide internal directories.