Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Client custom http client Client *http.Client HttpURL string `` /* 133-byte string literal not displayed */ HTTPTimeout time.Duration `` /* 133-byte string literal not displayed */ AppKey string `` /* 127-byte string literal not displayed */ AppSecret string `` /* 145-byte string literal not displayed */ AccessToken string `` /* 157-byte string literal not displayed */ TradeUrl string `` /* 139-byte string literal not displayed */ QuoteUrl string `` /* 139-byte string literal not displayed */ LogLevel string `` /* 139-byte string literal not displayed */ // longbridge protocol config AuthTimeout time.Duration `` /* 157-byte string literal not displayed */ Timeout time.Duration `` /* 127-byte string literal not displayed */ WriteQueueSize int `` /* 181-byte string literal not displayed */ ReadQueueSize int `` /* 175-byte string literal not displayed */ ReadBufferSize int `` /* 181-byte string literal not displayed */ MinGzipSize int `` /* 163-byte string literal not displayed */ Region Region `env:"LONGPORT_REGION" yaml:"LONGPORT_REGION" toml:"LONGPORT_REGION"` // contains filtered or unexported fields }
Config store Longbridge config
func NewFormEnv
deprecated
type ConfigType ¶
type ConfigType string
const ( ConfigTypeEnv ConfigType = ".env" ConfigTypeYAML ConfigType = ".yaml" ConfigTypeTOML ConfigType = ".toml" )
type Option ¶
type Option func(*Options)
func WithConfigKey ¶ added in v0.9.2
WithConfigKey config appKey, appSecret, accessToken
type TOMLConfig ¶
type TOMLConfig struct { }
type YAMLConfig ¶
type YAMLConfig struct { }
Click to show internal directories.
Click to hide internal directories.