mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
26 lines
400 B
Go
26 lines
400 B
Go
|
package youtube
|
||
|
|
||
|
import (
|
||
|
"github.com/danielmiessler/fabric/common"
|
||
|
)
|
||
|
|
||
|
func NewYouTube() (ret *YouTube) {
|
||
|
|
||
|
label := "YouTube"
|
||
|
ret = &YouTube{}
|
||
|
|
||
|
ret.Configurable = &common.Configurable{
|
||
|
Label: label,
|
||
|
EnvNamePrefix: common.BuildEnvVariablePrefix(label),
|
||
|
}
|
||
|
|
||
|
ret.ApiKey = ret.AddSetting("ApiKey", false)
|
||
|
|
||
|
return
|
||
|
}
|
||
|
|
||
|
type YouTube struct {
|
||
|
*common.Configurable
|
||
|
ApiKey *common.Setting
|
||
|
}
|