config

package
v0.0.0-...-7e0fa43 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfiguration

func LoadConfiguration(file string, config *Config) error

Types

type Config

type Config struct {
	TelegramToken          string   `json:"telegram_token"`
	TelegramBotName        string   `json:"telegram_bot_name"`
	Account                string   `json:"account"`
	PostingKey             string   `json:"posting_key"`
	ActiveKey              string   `json:"active_key"`
	TextRuToken            string   `json:"text_ru_token"`
	ReferralFee            float32  `json:"referral_fee"`
	RequiredVotes          int      `json:"required_votes"`
	InitialUserRating      int      `json:"initial_user_rating"`
	MaximumOpenedVotes     int      `json:"maximum_opened_votes"`
	MaximumUserVotesPerDay int      `json:"maximum_user_votes_per_day"`
	MinimumPostLength      int      `json:"minimum_post_length"`
	Developer              string   `json:"developer"`
	GroupID                int64    `json:"group_id"`
	GroupLink              string   `json:"group_link"`
	DatabasePath           string   `json:"database_path"`
	Domains                []string `json:"domains"`
	Chain                  string   `json:"chain"`
	Rpc                    []string `json:"rpc"`
	Tester                 int      `json:"tester"`
	Repository             string   `json:"repository"`
	IgnoreVP               bool     `json:"ignore_vp"`
	BannedTags             []string `json:"banned_tags"`
	Censorship             bool     `json:"censorship"`
}

Jump to

Keyboard shortcuts

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