config

package
v0.0.0-...-8f68ad8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Count   int `json:"count" flag:"c"`
	Service struct {
		Name string `json:"name"`
	} `json:"service"`
	Zap struct {
		//debug, info, warn, error, fatal, panic
		Level string `json:"level" default:"info"`
		//console, json
		Encoding string `json:"encoding" default:"console"`
		//disable, short, full
		Caller string `json:"caller" default:"disable"`
	} `json:"zap"`
	Binance struct {
		//Name   string `json:"name" default:"binance"`
		//Debug  bool   `json:"debug" default:"false"`
		Key    string `json:"-"`
		Secret string `json:"-"`
	} `json:"binance"`
	Ftx struct {
		Username string `json:"username"`
		//WsHost string `default:"wss://ftx.com/ws/"`
		Key    string `json:"-"`
		Secret string `json:"-"`
	} `json:"ftx"`
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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