configs

package
v5.9.10 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configPath string) error

Types

type Configs

type Configs struct {
	SlackToken            string    `json:"slack_token"`
	SlackChannel          string    `json:"slack_channel"`
	InternalApisEndpoint  string    `json:"internal_apis_endpoint"`
	InternalApisAuthToken string    `json:"internal_apis_auth_token"`
	LbrycrdString         string    `json:"lbrycrd_string"`
	WalletS3Config        S3Configs `json:"wallet_s3_config"`
	BlockchaindbS3Config  S3Configs `json:"blockchaindb_s3_config"`
	AWSThumbnailsS3Config S3Configs `json:"aws_thumbnails_s3_config"`
	ThumbnailsS3Config    S3Configs `json:"thumbnails_s3_config"`
}
var Configuration *Configs

func (*Configs) GetHostname added in v5.8.6

func (c *Configs) GetHostname() string

type S3Configs

type S3Configs struct {
	ID       string `json:"id"`
	Secret   string `json:"secret"`
	Region   string `json:"region"`
	Bucket   string `json:"bucket"`
	Endpoint string `json:"endpoint"`
}

func (*S3Configs) GetS3AWSConfig

func (s *S3Configs) GetS3AWSConfig() *aws.Config

Jump to

Keyboard shortcuts

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