utils

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Sha1hash string
View Source
var Version string = "dev"

Functions

func AppendIntIfMissing

func AppendIntIfMissing(slice []int, i int) []int

func AppendStringIfMissing

func AppendStringIfMissing(slice []string, i string) []string

func ParseConfig

func ParseConfig(data []byte) (err error)

Types

type Security

type Security struct {
	Exchange int
	Symbol   string
}

type SlaitConfig

type SlaitConfig struct {
	ListenPort string     `yaml:"listen_port"`
	LogLevel   string     `yaml:"log_level"`
	DataDir    string     `yaml:"data_dir"`
	TrimConfig []TrimPlan `yaml:"trim_config"`
}
var GlobalConfig SlaitConfig

type TrimPlan

type TrimPlan struct {
	TopicMatch string `yaml:"topic"`
	Duration   string `yaml:"duration"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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