configs

package
v0.0.0-...-f23b7a0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	Phase                 Phase
	BaseURI               string
	MongoURI              string
	MongoDBName           string
	MongoTTL              time.Duration
	YoutubeAPIKey         string
	StorageCollectionName string
	MongoCacheTTL         time.Duration
}

Config is myply' configuration instance, singleton

func NewConfig

func NewConfig() (*Config, error)

type Phase

type Phase int64

Phase is myply server phase type

const (
	// Test phase
	Test Phase = iota + 1
	// Local phase
	Local
	// Production phase
	Production
)

func (Phase) String

func (p Phase) String() string

String converts phase to string

Jump to

Keyboard shortcuts

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