toml

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 7 modules, 18 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

This section is empty.

Functions

func WriteFile

func WriteFile(filePath string, v interface{}) error

WriteFile is a helper method to write toml files

Types

type ExchangeAPIKeysToml

type ExchangeAPIKeysToml []struct {
	Key    string `valid:"-" toml:"KEY"`
	Secret string `valid:"-" toml:"SECRET"`
}

ExchangeAPIKeysToml is the toml representation of ExchangeAPIKeys

func (*ExchangeAPIKeysToml) ToExchangeAPIKeys

func (t *ExchangeAPIKeysToml) ToExchangeAPIKeys() []api.ExchangeAPIKey

ToExchangeAPIKeys converts object

type ExchangeHeadersToml

type ExchangeHeadersToml []struct {
	Header string `valid:"-" toml:"HEADER"`
	Value  string `valid:"-" toml:"VALUE"`
}

ExchangeHeadersToml is the toml representation of ExchangeHeaders

func (*ExchangeHeadersToml) ToExchangeHeaders

func (t *ExchangeHeadersToml) ToExchangeHeaders() []api.ExchangeHeader

ToExchangeHeaders converts object

type ExchangeParamsToml

type ExchangeParamsToml []struct {
	Param string      `valid:"-" toml:"PARAM"`
	Value interface{} `valid:"-" toml:"VALUE"`
}

ExchangeParamsToml is the toml representation of ExchangeParams

func (*ExchangeParamsToml) ToExchangeParams

func (t *ExchangeParamsToml) ToExchangeParams() []api.ExchangeParam

ToExchangeParams converts object

Jump to

Keyboard shortcuts

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