gondole.go
changeset 99 6ec2a44a1bd1
parent 89 8a7a33bec6e1
child 101 16d7500c19dd
equal deleted inserted replaced
98:5d803adfc57e 99:6ec2a44a1bd1
    17 
    17 
    18 	// NoRedirect is the URI for no redirection in the App registration
    18 	// NoRedirect is the URI for no redirection in the App registration
    19 	NoRedirect = "urn:ietf:wg:oauth:2.0:oob"
    19 	NoRedirect = "urn:ietf:wg:oauth:2.0:oob"
    20 )
    20 )
    21 
    21 
       
    22 // Error codes
    22 var (
    23 var (
    23 	ErrAlreadyRegistered = errors.New("App already registered")
    24 	ErrAlreadyRegistered = errors.New("app already registered")
       
    25 	ErrEntityNotFound    = errors.New("entity not found")
    24 )
    26 )
    25 
    27 
    26 // prepareRequest insert all pre-defined stuff
    28 // prepareRequest insert all pre-defined stuff
    27 func (g *Client) prepareRequest(what string) (req rest.Request) {
    29 func (g *Client) prepareRequest(what string) (req rest.Request) {
    28 	var endPoint string
    30 	var endPoint string