meme

package
v0.0.0-...-37e2b78 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VariablePort             = "MEMED_PORT"
	VariableDatabaseURL      = "MEMED_DATABASE_URL"
	VariableCorsAllowOrigins = "MEMED_CORS_ALLOW_ORIGINS"
	VariableMemeDirectory    = "MEMED_MEME_DIRECTORY"
	VariableUserMicroservice = "MEMED_USER_MICROSERVICE"
	VariableUserEndpoint     = "MEMED_USER_ENDPOINT"
	VariableAccessSecretKey  = "MEMED_ACCESS_SECRET_KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port             int    `json:"port,omitempty"`
	DatabaseURL      string `json:"databaseURL,omitempty"`
	CorsAllowOrigins string `json:"allowOrigins,omitempty"`
	MemeDirectory    string `json:"memeDirectory,omitempty"`
	UserMicroservice string `json:"userMicroservice,omitempty"`
	UserEndpoint     string `json:"userEndpoint,omitempty"`
	AccessSecretKey  string `json:"accessSecretKey,omitempty"`
}

func ParseFromEnvironmentalVariables

func ParseFromEnvironmentalVariables() (Config, error)

Jump to

Keyboard shortcuts

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