toml

package
v0.0.0-...-9578ce4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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 string `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