blob: f7d526cf925fb1e7d0e48746a3b7a80dd753d852 [file] [log] [blame]
Jamie Hannaford4baa1232014-09-23 15:23:04 +02001package gophercloud
Jamie Hannafordb3120f52014-09-23 15:17:57 +02002
3// CommonResult acts as a base struct that other results can embed. It contains
Jamie Hannaford4baa1232014-09-23 15:23:04 +02004// the deserialized JSON structure returned from the server (Resp), and any
Jamie Hannafordb3120f52014-09-23 15:17:57 +02005// errors that might have occurred during transport or deserialization.
6type CommonResult struct {
7 Resp map[string]interface{}
8 Err error
9}
Ash Wilsona6b08312014-10-02 15:27:45 -040010
11// RFC3339Milli describes a time format used by API responses.
12const RFC3339Milli = "2006-01-02T15:04:05.999999Z"