app.go
changeset 21 555716349f64
child 27 15abafa6cd90
equal deleted inserted replaced
20:3379b2ff8f4c 21:555716349f64
       
     1 package gondole
       
     2 
       
     3 import (
       
     4 
       
     5 )
       
     6 
       
     7 // NewApp registers a new instance
       
     8 func NewApp(name, redirectURI string) (g *Gondole, err error) {
       
     9 	// Load configuration, will register if none is found
       
    10 
       
    11 	g = &Gondole{
       
    12 		Name:   name,
       
    13 		ID:     config.ID,
       
    14 		Secret: config.BearerToken,
       
    15 	}
       
    16 	return
       
    17 }
       
    18