Documentation
¶
Overview ¶
Package config defines the Cloudinary configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { UploadPrefix string `default:"https://api.cloudinary.com"` Timeout int64 `default:"60"` // seconds UploadTimeout int64 ChunkSize int64 `default:"20000000"` //bytes }
API defines the configuration for making requests to the Cloudinary API.
type Cloud ¶
Cloud defines the cloud configuration required to connect your application to Cloudinary.
type Configuration ¶
Configuration is the main configuration struct.
func New ¶
func New() (*Configuration, error)
New returns a new Configuration instance from the environment variable
func NewFromParams ¶
func NewFromParams(cloud string, key string, secret string) (*Configuration, error)
NewFromParams returns a new Configuration instance from the provided parameters.
func NewFromURL ¶
func NewFromURL(cldURLStr string) (*Configuration, error)
NewFromURL returns a new Configuration instance from a cloudinary url.
Click to show internal directories.
Click to hide internal directories.