github.com/franciscocpg/up@v0.1.10/config/lambda.go (about) 1 package config 2 3 // Lambda configuration. 4 type Lambda struct { 5 Role string `json:"role"` 6 7 // Memory of the function. 8 Memory int `json:"memory"` 9 10 // Timeout of the function. 11 Timeout int `json:"timeout"` 12 } 13 14 // Default implementation. 15 func (l *Lambda) Default() error { 16 if l.Memory == 0 { 17 l.Memory = 512 18 } 19 20 if l.Timeout == 0 { 21 l.Timeout = 15 22 } 23 24 return nil 25 }