예제 #1
0
func SetProperty(prop string, value interface{}) error {
	switch prop {
	case awsSecretKey, awsAccessKey:
		{
			db.SetSecret(prop, value.(string))
		}
	default:
		return unknownPropertyError
	}
	return nil
}
예제 #2
0
func createSecret() {
	secret = uuid.NewV4().String()
	db.SetSecret(jwtSecret, secret)
}