Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetToken functions.TokenFunc = func(info *functions.Info) (token string, err error) { fmt.Println("Getting token.............") entity := http.HttpRequestEntity{ Url: fmt.Sprintf("%s/oauth/token?grant_type=client_credentials", info.Uaaurl), Username: info.Clientid, Password: info.Secret, } httpGateway := NewGateway() request := httpGateway.Post(entity, nil) response, err := request() if err != nil { return } return parse(response) }
View Source
var NewGateway = func() http.HttpGateway { return http.NewHttpGateway() }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.