settings

package
v0.0.0-...-6f193cf Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppSetting = &App{}

AppSetting instance from app

View Source
var IPFSSetting = &IPFS{}

IPFSSetting instance from server

View Source
var InfluxdbSetting = &Influxdb{}

InfluxdbSetting instance from redis

View Source
var LivepeerSetting = &Livepeer{}

LivepeerSetting instance from redis

View Source
var RedisSetting = &Redis{}

RedisSetting instance from redis

View Source
var ServerSetting = &Server{}

ServerSetting instance from server

Functions

func Setup

func Setup()

Setup initialize the configuration instance

Types

type App

type App struct {
	Tag                  string
	QueueEnabled         bool
	ThumbspreviewEnabled bool
	SentryDNS            string
	HostedPowergateAddr  string
	DelayWaitingIPFS     time.Duration

	RuntimeRootPath string

	LogSavePath string
	LogSaveName string
	LogFileExt  string
	TimeFormat  string
}

App struct used to bind app

type IPFS

type IPFS struct {
	Gateway        string
	Origin         string
	ClusterGateway string
}

IPFS struct used to bind store

type Influxdb

type Influxdb struct {
	Host     string
	Password string
	User     string
	DB       string
}

Influxdb struct used to bind redis

type Livepeer

type Livepeer struct {
	Broadcaster string
	Token       string
	Remote      bool
}

Livepeer struct used to bind livepeer

type Redis

type Redis struct {
	Host                   string
	Password               string
	TranscoderBrokerURL    string
	TranscoderResultURL    string
	ThumbsPreviewBrokerURL string
	ThumbsPreviewResultURL string
	MaxIdle                int
	MaxActive              int
	IdleTimeout            time.Duration
}

Redis struct used to bind redis

type Server

type Server struct {
	RunMode     string
	BucketMount string
}

Server struct used to bind store

Jump to

Keyboard shortcuts

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