Documentation ¶
Index ¶
- type DateTime
- type DeleteUserBadRequestBody
- type DeleteUserForbiddenBody
- type DeleteUserInternalServerErrorBody
- type DeleteUserNotAcceptableBody
- type DeleteUserNotFoundBody
- type DeleteUserOKBody
- type DeleteUserUnauthorizedBody
- type Gender
- type GetUserRequestBadRequestBody
- type GetUserRequestBody
- type GetUserRequestForbiddenBody
- type GetUserRequestInternalServerErrorBody
- type GetUserRequestNotAcceptableBody
- type GetUserRequestNotFoundBody
- type GetUserRequestOKBody
- type GetUserRequestUnauthorizedBody
- type LoginUserRequestBadRequestBody
- type LoginUserRequestBody
- type LoginUserRequestForbiddenBody
- type LoginUserRequestInternalServerErrorBody
- type LoginUserRequestNotAcceptableBody
- type LoginUserRequestNotFoundBody
- type LoginUserRequestOKBody
- type LoginUserRequestUnauthorizedBody
- type SignUpUserReqBadRequestBody
- type SignUpUserReqBody
- type SignUpUserReqForbiddenBody
- type SignUpUserReqInternalServerErrorBody
- type SignUpUserReqNotAcceptableBody
- type SignUpUserReqNotFoundBody
- type SignUpUserReqOKBody
- type SignUpUserReqUnauthorizedBody
- type Timestamp
- type UpdateSwaggerUserBody
- type UpdateSwaggerUserOKBody
- type UpdateUserBadRequestBody
- type UpdateUserBody
- type UpdateUserForbiddenBody
- type UpdateUserInternalServerErrorBody
- type UpdateUserNotAcceptableBody
- type UpdateUserNotFoundBody
- type UpdateUserOKBody
- type UpdateUserUnauthorizedBody
- type User
- type UserORM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateTime ¶
DateTime DateTime DateTime is a time but it serializes to ISO8601 format with millis It knows how to read 3 different variations of a RFC3339 date time. Most APIs we encounter want either millisecond or second precision times. This just tries to make it worry-free. swagger:model DateTime
func (*DateTime) MarshalBinary ¶
MarshalBinary interface implementation
func (DateTime) MarshalJSON ¶
MarshalJSON retrieves a DateTime value as JSON output
func (*DateTime) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON sets a DateTime value from JSON input
type DeleteUserBadRequestBody ¶
type DeleteUserBadRequestBody struct { // description of the error // Required: true Error *string `json:"error"` }
DeleteUserBadRequestBody DeleteUserBadRequestBody DeleteUserBadRequestBody DeleteUserBadRequestBody delete user bad request body swagger:model DeleteUserBadRequestBody
func (*DeleteUserBadRequestBody) MarshalBinary ¶
func (m *DeleteUserBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserBadRequestBody) UnmarshalBinary ¶
func (m *DeleteUserBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteUserForbiddenBody ¶
type DeleteUserForbiddenBody struct { // description of the error // Required: true Error *string `json:"error"` }
DeleteUserForbiddenBody DeleteUserForbiddenBody DeleteUserForbiddenBody DeleteUserForbiddenBody DeleteUserForbiddenBody delete user forbidden body swagger:model DeleteUserForbiddenBody
func (*DeleteUserForbiddenBody) MarshalBinary ¶
func (m *DeleteUserForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserForbiddenBody) UnmarshalBinary ¶
func (m *DeleteUserForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteUserInternalServerErrorBody ¶
type DeleteUserInternalServerErrorBody struct { // description of the error // Required: true Error *string `json:"error"` }
DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody delete user internal server error body swagger:model DeleteUserInternalServerErrorBody
func (*DeleteUserInternalServerErrorBody) MarshalBinary ¶
func (m *DeleteUserInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserInternalServerErrorBody) UnmarshalBinary ¶
func (m *DeleteUserInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteUserNotAcceptableBody ¶
type DeleteUserNotAcceptableBody struct { // description of the error // Required: true Error *string `json:"error"` }
DeleteUserNotAcceptableBody DeleteUserNotAcceptableBody DeleteUserNotAcceptableBody delete user not acceptable body swagger:model DeleteUserNotAcceptableBody
func (*DeleteUserNotAcceptableBody) MarshalBinary ¶
func (m *DeleteUserNotAcceptableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserNotAcceptableBody) UnmarshalBinary ¶
func (m *DeleteUserNotAcceptableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteUserNotFoundBody ¶
type DeleteUserNotFoundBody struct { // description of the error // Required: true Error *string `json:"error"` }
DeleteUserNotFoundBody DeleteUserNotFoundBody DeleteUserNotFoundBody delete user not found body swagger:model DeleteUserNotFoundBody
func (*DeleteUserNotFoundBody) MarshalBinary ¶
func (m *DeleteUserNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserNotFoundBody) UnmarshalBinary ¶
func (m *DeleteUserNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteUserOKBody ¶
type DeleteUserOKBody struct { // error // Required: true Error *string `json:"error"` }
DeleteUserOKBody DeleteUserOKBody delete user o k body swagger:model DeleteUserOKBody
func (*DeleteUserOKBody) MarshalBinary ¶
func (m *DeleteUserOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserOKBody) UnmarshalBinary ¶
func (m *DeleteUserOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteUserUnauthorizedBody ¶
type DeleteUserUnauthorizedBody struct { // Required: true Error *string `json:"error"` }
DeleteUserUnauthorizedBody DeleteUserUnauthorizedBody DeleteUserUnauthorizedBody DeleteUserUnauthorizedBody delete user unauthorized body swagger:model DeleteUserUnauthorizedBody
func (*DeleteUserUnauthorizedBody) MarshalBinary ¶
func (m *DeleteUserUnauthorizedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteUserUnauthorizedBody) UnmarshalBinary ¶
func (m *DeleteUserUnauthorizedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Gender ¶
type Gender struct { // female Female bool `json:"female,omitempty"` // gender non binary GenderNonBinary bool `json:"genderNonBinary,omitempty"` // male Male bool `json:"male,omitempty"` // transgender Transgender bool `json:"transgender,omitempty"` }
Gender Gender Gender Gender Gender Gender Gender Gender Gender gender swagger:model Gender
func (*Gender) MarshalBinary ¶
MarshalBinary interface implementation
func (*Gender) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GetUserRequestBadRequestBody ¶
type GetUserRequestBadRequestBody struct { // description of the error // Required: true Error *string `json:"error"` }
GetUserRequestBadRequestBody GetUserRequestBadRequestBody get user request bad request body swagger:model GetUserRequestBadRequestBody
func (*GetUserRequestBadRequestBody) MarshalBinary ¶
func (m *GetUserRequestBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestBadRequestBody) UnmarshalBinary ¶
func (m *GetUserRequestBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestBody ¶
type GetUserRequestBody struct { // id of the user account to get // in: query // Required: true ID *uint32 `json:"result"` }
GetUserRequestBody GetUserRequestBody get user request body swagger:model GetUserRequestBody
func (*GetUserRequestBody) MarshalBinary ¶
func (m *GetUserRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestBody) UnmarshalBinary ¶
func (m *GetUserRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestForbiddenBody ¶
type GetUserRequestForbiddenBody struct { // description of the error // Required: true Error *string `json:"error"` }
GetUserRequestForbiddenBody GetUserRequestForbiddenBody get user request forbidden body swagger:model GetUserRequestForbiddenBody
func (*GetUserRequestForbiddenBody) MarshalBinary ¶
func (m *GetUserRequestForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestForbiddenBody) UnmarshalBinary ¶
func (m *GetUserRequestForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestInternalServerErrorBody ¶
type GetUserRequestInternalServerErrorBody struct { // description of the error // Required: true Error *string `json:"error"` }
GetUserRequestInternalServerErrorBody GetUserRequestInternalServerErrorBody get user request internal server error body swagger:model GetUserRequestInternalServerErrorBody
func (*GetUserRequestInternalServerErrorBody) MarshalBinary ¶
func (m *GetUserRequestInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestInternalServerErrorBody) UnmarshalBinary ¶
func (m *GetUserRequestInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestNotAcceptableBody ¶
type GetUserRequestNotAcceptableBody struct { // description of the error // Required: true Error *string `json:"error"` }
GetUserRequestNotAcceptableBody GetUserRequestNotAcceptableBody get user request not acceptable body swagger:model GetUserRequestNotAcceptableBody
func (*GetUserRequestNotAcceptableBody) MarshalBinary ¶
func (m *GetUserRequestNotAcceptableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestNotAcceptableBody) UnmarshalBinary ¶
func (m *GetUserRequestNotAcceptableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestNotFoundBody ¶
type GetUserRequestNotFoundBody struct { // description of the error // Required: true Error *string `json:"error"` }
GetUserRequestNotFoundBody GetUserRequestNotFoundBody GetUserRequestNotFoundBody GetUserRequestNotFoundBody get user request not found body swagger:model GetUserRequestNotFoundBody
func (*GetUserRequestNotFoundBody) MarshalBinary ¶
func (m *GetUserRequestNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestNotFoundBody) UnmarshalBinary ¶
func (m *GetUserRequestNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestOKBody ¶
type GetUserRequestOKBody struct { // error // Required: true Error *string `json:"error"` // user // Required: true User *UserORM `json:"user"` }
GetUserRequestOKBody GetUserRequestOKBody GetUserRequestOKBody GetUserRequestOKBody get user request o k body swagger:model GetUserRequestOKBody
func (*GetUserRequestOKBody) MarshalBinary ¶
func (m *GetUserRequestOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestOKBody) UnmarshalBinary ¶
func (m *GetUserRequestOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserRequestUnauthorizedBody ¶
type GetUserRequestUnauthorizedBody struct { // Required: true Error *string `json:"error"` }
GetUserRequestUnauthorizedBody GetUserRequestUnauthorizedBody get user request unauthorized body swagger:model GetUserRequestUnauthorizedBody
func (*GetUserRequestUnauthorizedBody) MarshalBinary ¶
func (m *GetUserRequestUnauthorizedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserRequestUnauthorizedBody) UnmarshalBinary ¶
func (m *GetUserRequestUnauthorizedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestBadRequestBody ¶
type LoginUserRequestBadRequestBody struct { // description of the error // Required: true Error *string `json:"error"` }
LoginUserRequestBadRequestBody LoginUserRequestBadRequestBody LoginUserRequestBadRequestBody login user request bad request body swagger:model LoginUserRequestBadRequestBody
func (*LoginUserRequestBadRequestBody) MarshalBinary ¶
func (m *LoginUserRequestBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestBadRequestBody) UnmarshalBinary ¶
func (m *LoginUserRequestBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestBody ¶
type LoginUserRequestBody struct { // password // Required: true Password *string `json:"password"` // user name // Required: true Username *string `json:"username"` }
LoginUserRequestBody LoginUserRequestBody login user request body swagger:model LoginUserRequestBody
func (*LoginUserRequestBody) MarshalBinary ¶
func (m *LoginUserRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestBody) UnmarshalBinary ¶
func (m *LoginUserRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestForbiddenBody ¶
type LoginUserRequestForbiddenBody struct { // description of the error // Required: true Error *string `json:"error"` }
LoginUserRequestForbiddenBody LoginUserRequestForbiddenBody login user request forbidden body swagger:model LoginUserRequestForbiddenBody
func (*LoginUserRequestForbiddenBody) MarshalBinary ¶
func (m *LoginUserRequestForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestForbiddenBody) UnmarshalBinary ¶
func (m *LoginUserRequestForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestInternalServerErrorBody ¶
type LoginUserRequestInternalServerErrorBody struct { // description of the error // Required: true Error *string `json:"error"` }
LoginUserRequestInternalServerErrorBody LoginUserRequestInternalServerErrorBody login user request internal server error body swagger:model LoginUserRequestInternalServerErrorBody
func (*LoginUserRequestInternalServerErrorBody) MarshalBinary ¶
func (m *LoginUserRequestInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestInternalServerErrorBody) UnmarshalBinary ¶
func (m *LoginUserRequestInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestNotAcceptableBody ¶
type LoginUserRequestNotAcceptableBody struct { // description of the error // Required: true Error *string `json:"error"` }
LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody login user request not acceptable body swagger:model LoginUserRequestNotAcceptableBody
func (*LoginUserRequestNotAcceptableBody) MarshalBinary ¶
func (m *LoginUserRequestNotAcceptableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestNotAcceptableBody) UnmarshalBinary ¶
func (m *LoginUserRequestNotAcceptableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestNotFoundBody ¶
type LoginUserRequestNotFoundBody struct { // description of the error // Required: true Error *string `json:"error"` }
LoginUserRequestNotFoundBody LoginUserRequestNotFoundBody login user request not found body swagger:model LoginUserRequestNotFoundBody
func (*LoginUserRequestNotFoundBody) MarshalBinary ¶
func (m *LoginUserRequestNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestNotFoundBody) UnmarshalBinary ¶
func (m *LoginUserRequestNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestOKBody ¶
type LoginUserRequestOKBody struct { // error // Required: true Error *string `json:"error"` // Jwt Token // Required: true JwtToken *string `json:"token"` }
LoginUserRequestOKBody LoginUserRequestOKBody LoginUserRequestOKBody LoginUserRequestOKBody login user request o k body swagger:model LoginUserRequestOKBody
func (*LoginUserRequestOKBody) MarshalBinary ¶
func (m *LoginUserRequestOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestOKBody) UnmarshalBinary ¶
func (m *LoginUserRequestOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginUserRequestUnauthorizedBody ¶
type LoginUserRequestUnauthorizedBody struct { // Required: true Error *string `json:"error"` }
LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody login user request unauthorized body swagger:model LoginUserRequestUnauthorizedBody
func (*LoginUserRequestUnauthorizedBody) MarshalBinary ¶
func (m *LoginUserRequestUnauthorizedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginUserRequestUnauthorizedBody) UnmarshalBinary ¶
func (m *LoginUserRequestUnauthorizedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqBadRequestBody ¶
type SignUpUserReqBadRequestBody struct { // description of the error // Required: true Error *string `json:"error"` }
SignUpUserReqBadRequestBody SignUpUserReqBadRequestBody sign up user req bad request body swagger:model SignUpUserReqBadRequestBody
func (*SignUpUserReqBadRequestBody) MarshalBinary ¶
func (m *SignUpUserReqBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqBadRequestBody) UnmarshalBinary ¶
func (m *SignUpUserReqBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqBody ¶
type SignUpUserReqBody struct { // user email address to create // Required: true Email *string `json:"email"` // user first name // Required: true FirstName *string `json:"firstname"` // user last name // Required: true LastName *string `json:"lastname"` // user password to create // Required: true Password *string `json:"password"` // user username to create // Required: true Username *string `json:"username"` }
SignUpUserReqBody SignUpUserReqBody sign up user req body swagger:model SignUpUserReqBody
func (*SignUpUserReqBody) MarshalBinary ¶
func (m *SignUpUserReqBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqBody) UnmarshalBinary ¶
func (m *SignUpUserReqBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqForbiddenBody ¶
type SignUpUserReqForbiddenBody struct { // error // Required: true Error *string `json:"error"` }
SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody sign up user req forbidden body swagger:model SignUpUserReqForbiddenBody
func (*SignUpUserReqForbiddenBody) MarshalBinary ¶
func (m *SignUpUserReqForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqForbiddenBody) UnmarshalBinary ¶
func (m *SignUpUserReqForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqInternalServerErrorBody ¶
type SignUpUserReqInternalServerErrorBody struct { // description of the error // Required: true Error *string `json:"error"` }
SignUpUserReqInternalServerErrorBody SignUpUserReqInternalServerErrorBody SignUpUserReqInternalServerErrorBody sign up user req internal server error body swagger:model SignUpUserReqInternalServerErrorBody
func (*SignUpUserReqInternalServerErrorBody) MarshalBinary ¶
func (m *SignUpUserReqInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqInternalServerErrorBody) UnmarshalBinary ¶
func (m *SignUpUserReqInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqNotAcceptableBody ¶
type SignUpUserReqNotAcceptableBody struct { // description of the error // Required: true Error *string `json:"error"` }
SignUpUserReqNotAcceptableBody SignUpUserReqNotAcceptableBody SignUpUserReqNotAcceptableBody SignUpUserReqNotAcceptableBody sign up user req not acceptable body swagger:model SignUpUserReqNotAcceptableBody
func (*SignUpUserReqNotAcceptableBody) MarshalBinary ¶
func (m *SignUpUserReqNotAcceptableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqNotAcceptableBody) UnmarshalBinary ¶
func (m *SignUpUserReqNotAcceptableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqNotFoundBody ¶
type SignUpUserReqNotFoundBody struct { // description of the error // Required: true Error *string `json:"error"` }
SignUpUserReqNotFoundBody SignUpUserReqNotFoundBody sign up user req not found body swagger:model SignUpUserReqNotFoundBody
func (*SignUpUserReqNotFoundBody) MarshalBinary ¶
func (m *SignUpUserReqNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqNotFoundBody) UnmarshalBinary ¶
func (m *SignUpUserReqNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqOKBody ¶
type SignUpUserReqOKBody struct { // error // Required: true Error *string `json:"error"` // user account id // Required: true ID *uint32 `json:"id"` // JWT Token // Required: true JwtToken *string `json:"jwt"` }
SignUpUserReqOKBody SignUpUserReqOKBody SignUpUserReqOKBody sign up user req o k body swagger:model SignUpUserReqOKBody
func (*SignUpUserReqOKBody) MarshalBinary ¶
func (m *SignUpUserReqOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqOKBody) UnmarshalBinary ¶
func (m *SignUpUserReqOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUpUserReqUnauthorizedBody ¶
type SignUpUserReqUnauthorizedBody struct { // Required: true Error *string `json:"error"` }
SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody sign up user req unauthorized body swagger:model SignUpUserReqUnauthorizedBody
func (*SignUpUserReqUnauthorizedBody) MarshalBinary ¶
func (m *SignUpUserReqUnauthorizedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignUpUserReqUnauthorizedBody) UnmarshalBinary ¶
func (m *SignUpUserReqUnauthorizedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Timestamp ¶
type Timestamp struct { // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. Nanos int32 `json:"nanos,omitempty"` // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. Seconds int64 `json:"seconds,omitempty"` }
Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.
All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap second table is needed for interpretation, using a [24-hour linear smear](https://developers.google.com/time/smear).
The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
Examples ¶
Example 1: Compute Timestamp from POSIX `time()`.
Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
Example 2: Compute Timestamp from POSIX `gettimeofday()`.
struct timeval tv; gettimeofday(&tv, NULL);
Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
long millis = System.currentTimeMillis();
Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build();
Example 5: Compute Timestamp from current time in Python.
timestamp = Timestamp() timestamp.GetCurrentTime()
JSON Mapping ¶
In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by "Z") when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset).
For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on January 15, 2017.
In JavaScript, one can convert a Date object to this format using the standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) method. In Python, a standard `datetime.datetime` object can be converted to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a formatter capable of generating timestamps in this format. swagger:model Timestamp
func (*Timestamp) MarshalBinary ¶
MarshalBinary interface implementation
func (*Timestamp) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UpdateSwaggerUserBody ¶
type UpdateSwaggerUserBody struct { // result // Required: true Result *User `json:"result"` }
UpdateSwaggerUserBody UpdateSwaggerUserBody UpdateSwaggerUserBody update swagger user body swagger:model UpdateSwaggerUserBody
func (*UpdateSwaggerUserBody) MarshalBinary ¶
func (m *UpdateSwaggerUserBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateSwaggerUserBody) UnmarshalBinary ¶
func (m *UpdateSwaggerUserBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateSwaggerUserOKBody ¶
type UpdateSwaggerUserOKBody struct { // error // Required: true Error *string `json:"error"` }
UpdateSwaggerUserOKBody UpdateSwaggerUserOKBody update swagger user o k body swagger:model UpdateSwaggerUserOKBody
func (*UpdateSwaggerUserOKBody) MarshalBinary ¶
func (m *UpdateSwaggerUserOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateSwaggerUserOKBody) UnmarshalBinary ¶
func (m *UpdateSwaggerUserOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserBadRequestBody ¶
type UpdateUserBadRequestBody struct { // description of the error // Required: true Error *string `json:"error"` }
UpdateUserBadRequestBody UpdateUserBadRequestBody update user bad request body swagger:model UpdateUserBadRequestBody
func (*UpdateUserBadRequestBody) MarshalBinary ¶
func (m *UpdateUserBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserBadRequestBody) UnmarshalBinary ¶
func (m *UpdateUserBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserBody ¶
type UpdateUserBody struct { // result // Required: true Result *User `json:"result"` }
UpdateUserBody UpdateUserBody UpdateUserBody update user body swagger:model UpdateUserBody
func (*UpdateUserBody) MarshalBinary ¶
func (m *UpdateUserBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserBody) UnmarshalBinary ¶
func (m *UpdateUserBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserForbiddenBody ¶
type UpdateUserForbiddenBody struct { // description of the error // Required: true Error *string `json:"error"` }
UpdateUserForbiddenBody UpdateUserForbiddenBody UpdateUserForbiddenBody UpdateUserForbiddenBody update user forbidden body swagger:model UpdateUserForbiddenBody
func (*UpdateUserForbiddenBody) MarshalBinary ¶
func (m *UpdateUserForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserForbiddenBody) UnmarshalBinary ¶
func (m *UpdateUserForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserInternalServerErrorBody ¶
type UpdateUserInternalServerErrorBody struct { // description of the error // Required: true Error *string `json:"error"` }
UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody update user internal server error body swagger:model UpdateUserInternalServerErrorBody
func (*UpdateUserInternalServerErrorBody) MarshalBinary ¶
func (m *UpdateUserInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserInternalServerErrorBody) UnmarshalBinary ¶
func (m *UpdateUserInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserNotAcceptableBody ¶
type UpdateUserNotAcceptableBody struct { // description of the error // Required: true Error *string `json:"error"` }
UpdateUserNotAcceptableBody UpdateUserNotAcceptableBody UpdateUserNotAcceptableBody update user not acceptable body swagger:model UpdateUserNotAcceptableBody
func (*UpdateUserNotAcceptableBody) MarshalBinary ¶
func (m *UpdateUserNotAcceptableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserNotAcceptableBody) UnmarshalBinary ¶
func (m *UpdateUserNotAcceptableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserNotFoundBody ¶
type UpdateUserNotFoundBody struct { // description of the error // Required: true Error *string `json:"error"` }
UpdateUserNotFoundBody UpdateUserNotFoundBody update user not found body swagger:model UpdateUserNotFoundBody
func (*UpdateUserNotFoundBody) MarshalBinary ¶
func (m *UpdateUserNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserNotFoundBody) UnmarshalBinary ¶
func (m *UpdateUserNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserOKBody ¶
type UpdateUserOKBody struct { // error // Required: true Error *string `json:"error"` }
UpdateUserOKBody UpdateUserOKBody UpdateUserOKBody update user o k body swagger:model UpdateUserOKBody
func (*UpdateUserOKBody) MarshalBinary ¶
func (m *UpdateUserOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserOKBody) UnmarshalBinary ¶
func (m *UpdateUserOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserUnauthorizedBody ¶
type UpdateUserUnauthorizedBody struct { // Required: true Error *string `json:"error"` }
UpdateUserUnauthorizedBody UpdateUserUnauthorizedBody update user unauthorized body swagger:model UpdateUserUnauthorizedBody
func (*UpdateUserUnauthorizedBody) MarshalBinary ¶
func (m *UpdateUserUnauthorizedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserUnauthorizedBody) UnmarshalBinary ¶
func (m *UpdateUserUnauthorizedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type User ¶
type User struct { // authnid Authnid uint32 `json:"authnid,omitempty"` // birth date BirthDate string `json:"birthDate,omitempty"` // email Email string `json:"email,omitempty"` // first name FirstName string `json:"firstName,omitempty"` // Id ID uint32 `json:"id,omitempty"` // is active IsActive bool `json:"isActive,omitempty"` // is online IsOnline bool `json:"isOnline,omitempty"` // last name LastName string `json:"lastName,omitempty"` // password Password string `json:"password,omitempty"` // username Username string `json:"username,omitempty"` // created at CreatedAt *Timestamp `json:"created_at,omitempty"` // deleted at DeletedAt *Timestamp `json:"deleted_at,omitempty"` // gender Gender *Gender `json:"gender,omitempty"` // updated at UpdatedAt *Timestamp `json:"updated_at,omitempty"` }
User User User User User User User User User user swagger:model User
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserORM ¶
type UserORM struct { // authnid Authnid uint32 `json:"Authnid,omitempty"` // birth date BirthDate string `json:"BirthDate,omitempty"` // created at // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"` // deleted at // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time DeletedAt strfmt.DateTime `json:"DeletedAt,omitempty"` // email Email string `json:"Email,omitempty"` // first name FirstName string `json:"FirstName,omitempty"` // Id ID uint32 `json:"Id,omitempty"` // is active IsActive bool `json:"IsActive,omitempty"` // is online IsOnline bool `json:"IsOnline,omitempty"` // last name LastName string `json:"LastName,omitempty"` // password Password string `json:"Password,omitempty"` // updated at // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time // Format: date-time UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"` // username Username string `json:"Username,omitempty"` }
UserORM UserORM UserORM UserORM UserORM UserORM UserORM UserORM UserORM user o r m swagger:model UserORM
func (*UserORM) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserORM) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files ¶
- date_time.go
- delete_user_bad_request_body.go
- delete_user_forbidden_body.go
- delete_user_internal_server_error_body.go
- delete_user_not_acceptable_body.go
- delete_user_not_found_body.go
- delete_user_o_k_body.go
- delete_user_unauthorized_body.go
- gender.go
- get_user_request_bad_request_body.go
- get_user_request_body.go
- get_user_request_forbidden_body.go
- get_user_request_internal_server_error_body.go
- get_user_request_not_acceptable_body.go
- get_user_request_not_found_body.go
- get_user_request_o_k_body.go
- get_user_request_unauthorized_body.go
- login_user_request_bad_request_body.go
- login_user_request_body.go
- login_user_request_forbidden_body.go
- login_user_request_internal_server_error_body.go
- login_user_request_not_acceptable_body.go
- login_user_request_not_found_body.go
- login_user_request_o_k_body.go
- login_user_request_unauthorized_body.go
- sign_up_user_req_bad_request_body.go
- sign_up_user_req_body.go
- sign_up_user_req_forbidden_body.go
- sign_up_user_req_internal_server_error_body.go
- sign_up_user_req_not_acceptable_body.go
- sign_up_user_req_not_found_body.go
- sign_up_user_req_o_k_body.go
- sign_up_user_req_unauthorized_body.go
- timestamp.go
- update_swagger_user_body.go
- update_swagger_user_o_k_body.go
- update_user_bad_request_body.go
- update_user_body.go
- update_user_forbidden_body.go
- update_user_internal_server_error_body.go
- update_user_not_acceptable_body.go
- update_user_not_found_body.go
- update_user_o_k_body.go
- update_user_unauthorized_body.go
- user.go
- user_o_r_m.go