Update of swagger definition, related updates, new character method to print the char info
This commit is contained in:
parent
4bdd6ac706
commit
673d28166d
48 changed files with 2131 additions and 1226 deletions
|
@ -147,6 +147,26 @@ func (o *GetAlliancesAllianceIDIconsInternalServerError) readResponse(response r
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetAlliancesAllianceIDIconsOKBody get_alliances_alliance_id_icons_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetAlliancesAllianceIDIconsOKBody
|
||||
*/
|
||||
type GetAlliancesAllianceIDIconsOKBody struct {
|
||||
|
||||
// get_alliances_alliance_id_icons_px128x128
|
||||
//
|
||||
// px128x128 string
|
||||
// Required: true
|
||||
Px128x128 *string `json:"px128x128"`
|
||||
|
||||
// get_alliances_alliance_id_icons_px64x64
|
||||
//
|
||||
// px64x64 string
|
||||
// Required: true
|
||||
Px64x64 *string `json:"px64x64"`
|
||||
}
|
||||
|
||||
/*GetAlliancesAllianceIDIconsNotFoundBody get_alliances_alliance_id_icons_not_found
|
||||
//
|
||||
// No image server for this datasource
|
||||
|
@ -174,23 +194,3 @@ type GetAlliancesAllianceIDIconsInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetAlliancesAllianceIDIconsOKBody get_alliances_alliance_id_icons_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetAlliancesAllianceIDIconsOKBody
|
||||
*/
|
||||
type GetAlliancesAllianceIDIconsOKBody struct {
|
||||
|
||||
// get_alliances_alliance_id_icons_px128x128
|
||||
//
|
||||
// px128x128 string
|
||||
// Required: true
|
||||
Px128x128 *string `json:"px128x128"`
|
||||
|
||||
// get_alliances_alliance_id_icons_px64x64
|
||||
//
|
||||
// px64x64 string
|
||||
// Required: true
|
||||
Px64x64 *string `json:"px64x64"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,20 @@ func (o *GetAlliancesAllianceIDInternalServerError) readResponse(response runtim
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetAlliancesAllianceIDInternalServerErrorBody get_alliances_alliance_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetAlliancesAllianceIDInternalServerErrorBody
|
||||
*/
|
||||
type GetAlliancesAllianceIDInternalServerErrorBody struct {
|
||||
|
||||
// get_alliances_alliance_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetAlliancesAllianceIDOKBody get_alliances_alliance_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -192,17 +206,3 @@ type GetAlliancesAllianceIDNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetAlliancesAllianceIDInternalServerErrorBody get_alliances_alliance_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetAlliancesAllianceIDInternalServerErrorBody
|
||||
*/
|
||||
type GetAlliancesAllianceIDInternalServerErrorBody struct {
|
||||
|
||||
// get_alliances_alliance_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,80 @@ func (o *GetCharactersCharacterIDBookmarksInternalServerError) readResponse(resp
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksOKBodyItems0Target get_characters_character_id_bookmarks_target
|
||||
//
|
||||
// target object
|
||||
swagger:model GetCharactersCharacterIDBookmarksOKBodyItems0Target
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksOKBodyItems0Target struct {
|
||||
|
||||
// coordinates
|
||||
Coordinates *GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates `json:"coordinates,omitempty"`
|
||||
|
||||
// item
|
||||
Item *GetCharactersCharacterIDBookmarksOKBodyItems0TargetItem `json:"item,omitempty"`
|
||||
|
||||
// get_characters_character_id_bookmarks_location_id
|
||||
//
|
||||
// location_id integer
|
||||
// Required: true
|
||||
LocationID *int64 `json:"location_id"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksForbiddenBody get_characters_character_id_bookmarks_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDBookmarksForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_bookmarks_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksInternalServerErrorBody get_characters_character_id_bookmarks_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDBookmarksInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_bookmarks_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates get_characters_character_id_bookmarks_coordinates
|
||||
//
|
||||
// coordinates object
|
||||
swagger:model GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates struct {
|
||||
|
||||
// get_characters_character_id_bookmarks_x
|
||||
//
|
||||
// x number
|
||||
// Required: true
|
||||
X *float64 `json:"x"`
|
||||
|
||||
// get_characters_character_id_bookmarks_y
|
||||
//
|
||||
// y number
|
||||
// Required: true
|
||||
Y *float64 `json:"y"`
|
||||
|
||||
// get_characters_character_id_bookmarks_z
|
||||
//
|
||||
// z number
|
||||
// Required: true
|
||||
Z *float64 `json:"z"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksOKBodyItems0 get_characters_character_id_bookmarks_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -200,32 +274,6 @@ type GetCharactersCharacterIDBookmarksOKBodyItems0 struct {
|
|||
Target *GetCharactersCharacterIDBookmarksOKBodyItems0Target `json:"target"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates get_characters_character_id_bookmarks_coordinates
|
||||
//
|
||||
// coordinates object
|
||||
swagger:model GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates struct {
|
||||
|
||||
// get_characters_character_id_bookmarks_x
|
||||
//
|
||||
// x number
|
||||
// Required: true
|
||||
X *float64 `json:"x"`
|
||||
|
||||
// get_characters_character_id_bookmarks_y
|
||||
//
|
||||
// y number
|
||||
// Required: true
|
||||
Y *float64 `json:"y"`
|
||||
|
||||
// get_characters_character_id_bookmarks_z
|
||||
//
|
||||
// z number
|
||||
// Required: true
|
||||
Z *float64 `json:"z"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksOKBodyItems0TargetItem get_characters_character_id_bookmarks_item
|
||||
//
|
||||
// item object
|
||||
|
@ -245,51 +293,3 @@ type GetCharactersCharacterIDBookmarksOKBodyItems0TargetItem struct {
|
|||
// Required: true
|
||||
TypeID *int32 `json:"type_id"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksOKBodyItems0Target get_characters_character_id_bookmarks_target
|
||||
//
|
||||
// target object
|
||||
swagger:model GetCharactersCharacterIDBookmarksOKBodyItems0Target
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksOKBodyItems0Target struct {
|
||||
|
||||
// coordinates
|
||||
Coordinates *GetCharactersCharacterIDBookmarksOKBodyItems0TargetCoordinates `json:"coordinates,omitempty"`
|
||||
|
||||
// item
|
||||
Item *GetCharactersCharacterIDBookmarksOKBodyItems0TargetItem `json:"item,omitempty"`
|
||||
|
||||
// get_characters_character_id_bookmarks_location_id
|
||||
//
|
||||
// location_id integer
|
||||
// Required: true
|
||||
LocationID *int64 `json:"location_id"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksForbiddenBody get_characters_character_id_bookmarks_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDBookmarksForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_bookmarks_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDBookmarksInternalServerErrorBody get_characters_character_id_bookmarks_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDBookmarksInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDBookmarksInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_bookmarks_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -29,9 +29,9 @@ Public information about a character
|
|||
|
||||
---
|
||||
|
||||
Alternate route: `/v3/characters/{character_id}/`
|
||||
Alternate route: `/v4/characters/{character_id}/`
|
||||
|
||||
Alternate route: `/legacy/characters/{character_id}/`
|
||||
Alternate route: `/dev/characters/{character_id}/`
|
||||
|
||||
|
||||
---
|
||||
|
|
|
@ -113,20 +113,6 @@ func (o *GetCharactersCharacterIDCorporationhistoryInternalServerError) readResp
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDCorporationhistoryInternalServerErrorBody get_characters_character_id_corporationhistory_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDCorporationhistoryInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDCorporationhistoryInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_corporationhistory_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDCorporationhistoryOKBodyItems0 get_characters_character_id_corporationhistory_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -154,3 +140,17 @@ type GetCharactersCharacterIDCorporationhistoryOKBodyItems0 struct {
|
|||
// start_date string
|
||||
StartDate strfmt.DateTime `json:"start_date,omitempty"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDCorporationhistoryInternalServerErrorBody get_characters_character_id_corporationhistory_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDCorporationhistoryInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDCorporationhistoryInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_corporationhistory_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -28,8 +28,8 @@ func (o *GetCharactersCharacterIDReader) ReadResponse(response runtime.ClientRes
|
|||
}
|
||||
return result, nil
|
||||
|
||||
case 422:
|
||||
result := NewGetCharactersCharacterIDUnprocessableEntity()
|
||||
case 404:
|
||||
result := NewGetCharactersCharacterIDNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -93,24 +93,24 @@ func (o *GetCharactersCharacterIDOK) readResponse(response runtime.ClientRespons
|
|||
return nil
|
||||
}
|
||||
|
||||
// NewGetCharactersCharacterIDUnprocessableEntity creates a GetCharactersCharacterIDUnprocessableEntity with default headers values
|
||||
func NewGetCharactersCharacterIDUnprocessableEntity() *GetCharactersCharacterIDUnprocessableEntity {
|
||||
return &GetCharactersCharacterIDUnprocessableEntity{}
|
||||
// NewGetCharactersCharacterIDNotFound creates a GetCharactersCharacterIDNotFound with default headers values
|
||||
func NewGetCharactersCharacterIDNotFound() *GetCharactersCharacterIDNotFound {
|
||||
return &GetCharactersCharacterIDNotFound{}
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDUnprocessableEntity handles this case with default header values.
|
||||
/*GetCharactersCharacterIDNotFound handles this case with default header values.
|
||||
|
||||
Is not a character ID
|
||||
Character not found
|
||||
*/
|
||||
type GetCharactersCharacterIDUnprocessableEntity struct {
|
||||
Payload GetCharactersCharacterIDUnprocessableEntityBody
|
||||
type GetCharactersCharacterIDNotFound struct {
|
||||
Payload GetCharactersCharacterIDNotFoundBody
|
||||
}
|
||||
|
||||
func (o *GetCharactersCharacterIDUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /characters/{character_id}/][%d] getCharactersCharacterIdUnprocessableEntity %+v", 422, o.Payload)
|
||||
func (o *GetCharactersCharacterIDNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /characters/{character_id}/][%d] getCharactersCharacterIdNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetCharactersCharacterIDUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
func (o *GetCharactersCharacterIDNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
|
||||
|
@ -147,34 +147,6 @@ func (o *GetCharactersCharacterIDInternalServerError) readResponse(response runt
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDUnprocessableEntityBody get_characters_character_id_unprocessable_entity
|
||||
//
|
||||
// Is not a character ID
|
||||
swagger:model GetCharactersCharacterIDUnprocessableEntityBody
|
||||
*/
|
||||
type GetCharactersCharacterIDUnprocessableEntityBody struct {
|
||||
|
||||
// get_characters_character_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDInternalServerErrorBody get_characters_character_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDOKBody get_characters_character_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -182,6 +154,12 @@ swagger:model GetCharactersCharacterIDOKBody
|
|||
*/
|
||||
type GetCharactersCharacterIDOKBody struct {
|
||||
|
||||
// get_characters_character_id_alliance_id
|
||||
//
|
||||
// The character's alliance ID
|
||||
// Required: true
|
||||
AllianceID *int32 `json:"alliance_id"`
|
||||
|
||||
// get_characters_character_id_ancestry_id
|
||||
//
|
||||
// ancestry_id integer
|
||||
|
@ -220,7 +198,7 @@ type GetCharactersCharacterIDOKBody struct {
|
|||
|
||||
// get_characters_character_id_name
|
||||
//
|
||||
// The name of the character
|
||||
// name string
|
||||
// Required: true
|
||||
Name *string `json:"name"`
|
||||
|
||||
|
@ -238,3 +216,31 @@ type GetCharactersCharacterIDOKBody struct {
|
|||
// Minimum: -10
|
||||
SecurityStatus *float32 `json:"security_status"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDNotFoundBody get_characters_character_id_not_found
|
||||
//
|
||||
// Not found
|
||||
swagger:model GetCharactersCharacterIDNotFoundBody
|
||||
*/
|
||||
type GetCharactersCharacterIDNotFoundBody struct {
|
||||
|
||||
// get_characters_character_id_404_not_found
|
||||
//
|
||||
// Not found message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDInternalServerErrorBody get_characters_character_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -128,6 +128,34 @@ func (o *PostCharactersCharacterIDCspaInternalServerError) readResponse(response
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDCspaForbiddenBody post_characters_character_id_cspa_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostCharactersCharacterIDCspaForbiddenBody
|
||||
*/
|
||||
type PostCharactersCharacterIDCspaForbiddenBody struct {
|
||||
|
||||
// post_characters_character_id_cspa_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDCspaInternalServerErrorBody post_characters_character_id_cspa_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostCharactersCharacterIDCspaInternalServerErrorBody
|
||||
*/
|
||||
type PostCharactersCharacterIDCspaInternalServerErrorBody struct {
|
||||
|
||||
// post_characters_character_id_cspa_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDCspaBody post_characters_character_id_cspa_characters
|
||||
//
|
||||
// characters schema
|
||||
|
@ -157,31 +185,3 @@ type PostCharactersCharacterIDCspaCreatedBody struct {
|
|||
// Required: true
|
||||
Cost *int64 `json:"cost"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDCspaForbiddenBody post_characters_character_id_cspa_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostCharactersCharacterIDCspaForbiddenBody
|
||||
*/
|
||||
type PostCharactersCharacterIDCspaForbiddenBody struct {
|
||||
|
||||
// post_characters_character_id_cspa_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDCspaInternalServerErrorBody post_characters_character_id_cspa_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostCharactersCharacterIDCspaInternalServerErrorBody
|
||||
*/
|
||||
type PostCharactersCharacterIDCspaInternalServerErrorBody struct {
|
||||
|
||||
// post_characters_character_id_cspa_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,20 +147,6 @@ func (o *GetCharactersCharacterIDClonesInternalServerError) readResponse(respons
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDClonesInternalServerErrorBody get_characters_character_id_clones_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDClonesInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDClonesInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_clones_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDClonesOKBodyHomeLocation get_characters_character_id_clones_home_location
|
||||
//
|
||||
// home_location object
|
||||
|
@ -239,3 +225,17 @@ type GetCharactersCharacterIDClonesForbiddenBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDClonesInternalServerErrorBody get_characters_character_id_clones_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDClonesInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDClonesInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_clones_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,20 @@ func (o *GetCorporationsCorporationIDInternalServerError) readResponse(response
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCorporationsCorporationIDInternalServerErrorBody get_corporations_corporation_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCorporationsCorporationIDInternalServerErrorBody
|
||||
*/
|
||||
type GetCorporationsCorporationIDInternalServerErrorBody struct {
|
||||
|
||||
// get_corporations_corporation_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCorporationsCorporationIDOKBody get_corporations_corporation_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -198,17 +212,3 @@ type GetCorporationsCorporationIDNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCorporationsCorporationIDInternalServerErrorBody get_corporations_corporation_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCorporationsCorporationIDInternalServerErrorBody
|
||||
*/
|
||||
type GetCorporationsCorporationIDInternalServerErrorBody struct {
|
||||
|
||||
// get_corporations_corporation_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,34 @@ func (o *GetCharactersCharacterIDFittingsInternalServerError) readResponse(respo
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDFittingsForbiddenBody get_characters_character_id_fittings_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDFittingsForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDFittingsForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_fittings_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDFittingsInternalServerErrorBody get_characters_character_id_fittings_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDFittingsInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDFittingsInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_fittings_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDFittingsOKBodyItems0 get_characters_character_id_fittings_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -210,31 +238,3 @@ type GetCharactersCharacterIDFittingsOKBodyItems0ItemsItems0 struct {
|
|||
// Required: true
|
||||
TypeID *int32 `json:"type_id"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDFittingsForbiddenBody get_characters_character_id_fittings_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDFittingsForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDFittingsForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_fittings_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDFittingsInternalServerErrorBody get_characters_character_id_fittings_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDFittingsInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDFittingsInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_fittings_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -156,20 +156,6 @@ func (o *DeleteFleetsFleetIDSquadsSquadIDInternalServerError) readResponse(respo
|
|||
return nil
|
||||
}
|
||||
|
||||
/*DeleteFleetsFleetIDSquadsSquadIDForbiddenBody delete_fleets_fleet_id_squads_squad_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model DeleteFleetsFleetIDSquadsSquadIDForbiddenBody
|
||||
*/
|
||||
type DeleteFleetsFleetIDSquadsSquadIDForbiddenBody struct {
|
||||
|
||||
// delete_fleets_fleet_id_squads_squad_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*DeleteFleetsFleetIDSquadsSquadIDNotFoundBody delete_fleets_fleet_id_squads_squad_id_not_found
|
||||
//
|
||||
// 404 not found object
|
||||
|
@ -197,3 +183,17 @@ type DeleteFleetsFleetIDSquadsSquadIDInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*DeleteFleetsFleetIDSquadsSquadIDForbiddenBody delete_fleets_fleet_id_squads_squad_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model DeleteFleetsFleetIDSquadsSquadIDForbiddenBody
|
||||
*/
|
||||
type DeleteFleetsFleetIDSquadsSquadIDForbiddenBody struct {
|
||||
|
||||
// delete_fleets_fleet_id_squads_squad_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -190,34 +190,6 @@ func (o *PostFleetsFleetIDMembersInternalServerError) readResponse(response runt
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDMembersUnprocessableEntityBody post_fleets_fleet_id_members_unprocessable_entity
|
||||
//
|
||||
// 422 unprocessable entity object
|
||||
swagger:model PostFleetsFleetIDMembersUnprocessableEntityBody
|
||||
*/
|
||||
type PostFleetsFleetIDMembersUnprocessableEntityBody struct {
|
||||
|
||||
// post_fleets_fleet_id_members_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDMembersInternalServerErrorBody post_fleets_fleet_id_members_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostFleetsFleetIDMembersInternalServerErrorBody
|
||||
*/
|
||||
type PostFleetsFleetIDMembersInternalServerErrorBody struct {
|
||||
|
||||
// post_fleets_fleet_id_members_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDMembersBody post_fleets_fleet_id_members_invitation
|
||||
//
|
||||
// invitation object
|
||||
|
@ -280,3 +252,31 @@ type PostFleetsFleetIDMembersNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDMembersUnprocessableEntityBody post_fleets_fleet_id_members_unprocessable_entity
|
||||
//
|
||||
// 422 unprocessable entity object
|
||||
swagger:model PostFleetsFleetIDMembersUnprocessableEntityBody
|
||||
*/
|
||||
type PostFleetsFleetIDMembersUnprocessableEntityBody struct {
|
||||
|
||||
// post_fleets_fleet_id_members_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDMembersInternalServerErrorBody post_fleets_fleet_id_members_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostFleetsFleetIDMembersInternalServerErrorBody
|
||||
*/
|
||||
type PostFleetsFleetIDMembersInternalServerErrorBody struct {
|
||||
|
||||
// post_fleets_fleet_id_members_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -162,6 +162,20 @@ func (o *PostFleetsFleetIDWingsWingIDSquadsInternalServerError) readResponse(res
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDWingsWingIDSquadsInternalServerErrorBody post_fleets_fleet_id_wings_wing_id_squads_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostFleetsFleetIDWingsWingIDSquadsInternalServerErrorBody
|
||||
*/
|
||||
type PostFleetsFleetIDWingsWingIDSquadsInternalServerErrorBody struct {
|
||||
|
||||
// post_fleets_fleet_id_wings_wing_id_squads_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDWingsWingIDSquadsCreatedBody post_fleets_fleet_id_wings_wing_id_squads_created
|
||||
//
|
||||
// 201 created object
|
||||
|
@ -203,17 +217,3 @@ type PostFleetsFleetIDWingsWingIDSquadsNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostFleetsFleetIDWingsWingIDSquadsInternalServerErrorBody post_fleets_fleet_id_wings_wing_id_squads_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostFleetsFleetIDWingsWingIDSquadsInternalServerErrorBody
|
||||
*/
|
||||
type PostFleetsFleetIDWingsWingIDSquadsInternalServerErrorBody struct {
|
||||
|
||||
// post_fleets_fleet_id_wings_wing_id_squads_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -190,6 +190,48 @@ func (o *PutFleetsFleetIDMembersMemberIDInternalServerError) readResponse(respon
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDNotFoundBody put_fleets_fleet_id_members_member_id_not_found
|
||||
//
|
||||
// 404 not found object
|
||||
swagger:model PutFleetsFleetIDMembersMemberIDNotFoundBody
|
||||
*/
|
||||
type PutFleetsFleetIDMembersMemberIDNotFoundBody struct {
|
||||
|
||||
// put_fleets_fleet_id_members_member_id_error
|
||||
//
|
||||
// Error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDUnprocessableEntityBody put_fleets_fleet_id_members_member_id_unprocessable_entity
|
||||
//
|
||||
// 422 unprocessable entity object
|
||||
swagger:model PutFleetsFleetIDMembersMemberIDUnprocessableEntityBody
|
||||
*/
|
||||
type PutFleetsFleetIDMembersMemberIDUnprocessableEntityBody struct {
|
||||
|
||||
// put_fleets_fleet_id_members_member_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDInternalServerErrorBody put_fleets_fleet_id_members_member_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PutFleetsFleetIDMembersMemberIDInternalServerErrorBody
|
||||
*/
|
||||
type PutFleetsFleetIDMembersMemberIDInternalServerErrorBody struct {
|
||||
|
||||
// put_fleets_fleet_id_members_member_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDBody put_fleets_fleet_id_members_member_id_movement
|
||||
//
|
||||
// movement object
|
||||
|
@ -232,45 +274,3 @@ type PutFleetsFleetIDMembersMemberIDForbiddenBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDNotFoundBody put_fleets_fleet_id_members_member_id_not_found
|
||||
//
|
||||
// 404 not found object
|
||||
swagger:model PutFleetsFleetIDMembersMemberIDNotFoundBody
|
||||
*/
|
||||
type PutFleetsFleetIDMembersMemberIDNotFoundBody struct {
|
||||
|
||||
// put_fleets_fleet_id_members_member_id_error
|
||||
//
|
||||
// Error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDUnprocessableEntityBody put_fleets_fleet_id_members_member_id_unprocessable_entity
|
||||
//
|
||||
// 422 unprocessable entity object
|
||||
swagger:model PutFleetsFleetIDMembersMemberIDUnprocessableEntityBody
|
||||
*/
|
||||
type PutFleetsFleetIDMembersMemberIDUnprocessableEntityBody struct {
|
||||
|
||||
// put_fleets_fleet_id_members_member_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutFleetsFleetIDMembersMemberIDInternalServerErrorBody put_fleets_fleet_id_members_member_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PutFleetsFleetIDMembersMemberIDInternalServerErrorBody
|
||||
*/
|
||||
type PutFleetsFleetIDMembersMemberIDInternalServerErrorBody struct {
|
||||
|
||||
// put_fleets_fleet_id_members_member_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -119,26 +119,6 @@ func (o *GetInsurancePricesInternalServerError) readResponse(response runtime.Cl
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetInsurancePricesOKBodyItems0 get_insurance_prices_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetInsurancePricesOKBodyItems0
|
||||
*/
|
||||
type GetInsurancePricesOKBodyItems0 struct {
|
||||
|
||||
// get_insurance_prices_levels
|
||||
//
|
||||
// A list of a available insurance levels for this ship type
|
||||
// Required: true
|
||||
Levels []*GetInsurancePricesOKBodyItems0LevelsItems0 `json:"levels"`
|
||||
|
||||
// get_insurance_prices_type_id
|
||||
//
|
||||
// type_id integer
|
||||
// Required: true
|
||||
TypeID *int32 `json:"type_id"`
|
||||
}
|
||||
|
||||
/*GetInsurancePricesOKBodyItems0LevelsItems0 get_insurance_prices_level
|
||||
//
|
||||
// level object
|
||||
|
@ -165,6 +145,26 @@ type GetInsurancePricesOKBodyItems0LevelsItems0 struct {
|
|||
Payout *float32 `json:"payout"`
|
||||
}
|
||||
|
||||
/*GetInsurancePricesOKBodyItems0 get_insurance_prices_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetInsurancePricesOKBodyItems0
|
||||
*/
|
||||
type GetInsurancePricesOKBodyItems0 struct {
|
||||
|
||||
// get_insurance_prices_levels
|
||||
//
|
||||
// A list of a available insurance levels for this ship type
|
||||
// Required: true
|
||||
Levels []*GetInsurancePricesOKBodyItems0LevelsItems0 `json:"levels"`
|
||||
|
||||
// get_insurance_prices_type_id
|
||||
//
|
||||
// type_id integer
|
||||
// Required: true
|
||||
TypeID *int32 `json:"type_id"`
|
||||
}
|
||||
|
||||
/*GetInsurancePricesInternalServerErrorBody get_insurance_prices_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
|
|
|
@ -174,86 +174,6 @@ type GetKillmailsKillmailIDKillmailHashOKBodyVictimPosition struct {
|
|||
Z *float32 `json:"z"`
|
||||
}
|
||||
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0 get_killmails_killmail_id_killmail_hash_item
|
||||
//
|
||||
// item object
|
||||
swagger:model GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0
|
||||
*/
|
||||
type GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0 struct {
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_flag
|
||||
//
|
||||
// Flag for the location of the item
|
||||
//
|
||||
// Required: true
|
||||
Flag *int32 `json:"flag"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_item_type_id
|
||||
//
|
||||
// item_type_id integer
|
||||
// Required: true
|
||||
ItemTypeID *int32 `json:"item_type_id"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_items
|
||||
//
|
||||
// items array
|
||||
Items []*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0 `json:"items"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_destroyed
|
||||
//
|
||||
// How many of the item were destroyed if any
|
||||
//
|
||||
QuantityDestroyed int64 `json:"quantity_destroyed,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_dropped
|
||||
//
|
||||
// How many of the item were dropped if any
|
||||
//
|
||||
QuantityDropped int64 `json:"quantity_dropped,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_singleton
|
||||
//
|
||||
// singleton integer
|
||||
// Required: true
|
||||
Singleton *int32 `json:"singleton"`
|
||||
}
|
||||
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0 get_killmails_killmail_id_killmail_hash_item
|
||||
//
|
||||
// item object
|
||||
swagger:model GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0
|
||||
*/
|
||||
type GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0 struct {
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_flag
|
||||
//
|
||||
// flag integer
|
||||
// Required: true
|
||||
Flag *int32 `json:"flag"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_item_type_id
|
||||
//
|
||||
// item_type_id integer
|
||||
// Required: true
|
||||
ItemTypeID *int32 `json:"item_type_id"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_destroyed
|
||||
//
|
||||
// quantity_destroyed integer
|
||||
QuantityDestroyed int64 `json:"quantity_destroyed,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_dropped
|
||||
//
|
||||
// quantity_dropped integer
|
||||
QuantityDropped int64 `json:"quantity_dropped,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_singleton
|
||||
//
|
||||
// singleton integer
|
||||
// Required: true
|
||||
Singleton *int32 `json:"singleton"`
|
||||
}
|
||||
|
||||
/*AttackersItems0 get_killmails_killmail_id_killmail_hash_attacker
|
||||
//
|
||||
// attacker object
|
||||
|
@ -314,6 +234,100 @@ type AttackersItems0 struct {
|
|||
WeaponTypeID int32 `json:"weapon_type_id,omitempty"`
|
||||
}
|
||||
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBodyVictim get_killmails_killmail_id_killmail_hash_victim
|
||||
//
|
||||
// victim object
|
||||
swagger:model GetKillmailsKillmailIDKillmailHashOKBodyVictim
|
||||
*/
|
||||
type GetKillmailsKillmailIDKillmailHashOKBodyVictim struct {
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_alliance_id
|
||||
//
|
||||
// alliance_id integer
|
||||
AllianceID int32 `json:"alliance_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_character_id
|
||||
//
|
||||
// character_id integer
|
||||
CharacterID int32 `json:"character_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_corporation_id
|
||||
//
|
||||
// corporation_id integer
|
||||
CorporationID int32 `json:"corporation_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_damage_taken
|
||||
//
|
||||
// How much total damage was taken by the victim
|
||||
//
|
||||
// Required: true
|
||||
DamageTaken *int32 `json:"damage_taken"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_faction_id
|
||||
//
|
||||
// faction_id integer
|
||||
FactionID int32 `json:"faction_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_items
|
||||
//
|
||||
// items array
|
||||
Items []*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0 `json:"items"`
|
||||
|
||||
// position
|
||||
Position *GetKillmailsKillmailIDKillmailHashOKBodyVictimPosition `json:"position,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_ship_type_id
|
||||
//
|
||||
// The ship that the victim was piloting and was destroyed
|
||||
//
|
||||
// Required: true
|
||||
ShipTypeID *int32 `json:"ship_type_id"`
|
||||
}
|
||||
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0 get_killmails_killmail_id_killmail_hash_item
|
||||
//
|
||||
// item object
|
||||
swagger:model GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0
|
||||
*/
|
||||
type GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0 struct {
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_flag
|
||||
//
|
||||
// Flag for the location of the item
|
||||
//
|
||||
// Required: true
|
||||
Flag *int32 `json:"flag"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_item_type_id
|
||||
//
|
||||
// item_type_id integer
|
||||
// Required: true
|
||||
ItemTypeID *int32 `json:"item_type_id"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_items
|
||||
//
|
||||
// items array
|
||||
Items []*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0 `json:"items"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_destroyed
|
||||
//
|
||||
// How many of the item were destroyed if any
|
||||
//
|
||||
QuantityDestroyed int64 `json:"quantity_destroyed,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_dropped
|
||||
//
|
||||
// How many of the item were dropped if any
|
||||
//
|
||||
QuantityDropped int64 `json:"quantity_dropped,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_singleton
|
||||
//
|
||||
// singleton integer
|
||||
// Required: true
|
||||
Singleton *int32 `json:"singleton"`
|
||||
}
|
||||
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBody get_killmails_killmail_id_killmail_hash_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -393,52 +407,38 @@ type GetKillmailsKillmailIDKillmailHashInternalServerErrorBody struct {
|
|||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBodyVictim get_killmails_killmail_id_killmail_hash_victim
|
||||
/*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0 get_killmails_killmail_id_killmail_hash_item
|
||||
//
|
||||
// victim object
|
||||
swagger:model GetKillmailsKillmailIDKillmailHashOKBodyVictim
|
||||
// item object
|
||||
swagger:model GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0
|
||||
*/
|
||||
type GetKillmailsKillmailIDKillmailHashOKBodyVictim struct {
|
||||
type GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0ItemsItems0 struct {
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_alliance_id
|
||||
//
|
||||
// alliance_id integer
|
||||
AllianceID int32 `json:"alliance_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_character_id
|
||||
//
|
||||
// character_id integer
|
||||
CharacterID int32 `json:"character_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_corporation_id
|
||||
//
|
||||
// corporation_id integer
|
||||
CorporationID int32 `json:"corporation_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_damage_taken
|
||||
//
|
||||
// How much total damage was taken by the victim
|
||||
// get_killmails_killmail_id_killmail_hash_flag
|
||||
//
|
||||
// flag integer
|
||||
// Required: true
|
||||
DamageTaken *int32 `json:"damage_taken"`
|
||||
Flag *int32 `json:"flag"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_faction_id
|
||||
//
|
||||
// faction_id integer
|
||||
FactionID int32 `json:"faction_id,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_items
|
||||
//
|
||||
// items array
|
||||
Items []*GetKillmailsKillmailIDKillmailHashOKBodyVictimItemsItems0 `json:"items"`
|
||||
|
||||
// position
|
||||
Position *GetKillmailsKillmailIDKillmailHashOKBodyVictimPosition `json:"position,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_ship_type_id
|
||||
//
|
||||
// The ship that the victim was piloting and was destroyed
|
||||
// get_killmails_killmail_id_killmail_hash_item_type_id
|
||||
//
|
||||
// item_type_id integer
|
||||
// Required: true
|
||||
ShipTypeID *int32 `json:"ship_type_id"`
|
||||
ItemTypeID *int32 `json:"item_type_id"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_destroyed
|
||||
//
|
||||
// quantity_destroyed integer
|
||||
QuantityDestroyed int64 `json:"quantity_destroyed,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_quantity_dropped
|
||||
//
|
||||
// quantity_dropped integer
|
||||
QuantityDropped int64 `json:"quantity_dropped,omitempty"`
|
||||
|
||||
// get_killmails_killmail_id_killmail_hash_singleton
|
||||
//
|
||||
// singleton integer
|
||||
// Required: true
|
||||
Singleton *int32 `json:"singleton"`
|
||||
}
|
||||
|
|
|
@ -147,20 +147,6 @@ func (o *GetCharactersCharacterIDLocationInternalServerError) readResponse(respo
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDLocationInternalServerErrorBody get_characters_character_id_location_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDLocationInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDLocationInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_location_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDLocationOKBody get_characters_character_id_location_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -200,3 +186,17 @@ type GetCharactersCharacterIDLocationForbiddenBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDLocationInternalServerErrorBody get_characters_character_id_location_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDLocationInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDLocationInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_location_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -122,20 +122,6 @@ func (o *DeleteCharactersCharacterIDMailMailIDInternalServerError) readResponse(
|
|||
return nil
|
||||
}
|
||||
|
||||
/*DeleteCharactersCharacterIDMailMailIDForbiddenBody delete_characters_character_id_mail_mail_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model DeleteCharactersCharacterIDMailMailIDForbiddenBody
|
||||
*/
|
||||
type DeleteCharactersCharacterIDMailMailIDForbiddenBody struct {
|
||||
|
||||
// delete_characters_character_id_mail_mail_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*DeleteCharactersCharacterIDMailMailIDInternalServerErrorBody delete_characters_character_id_mail_mail_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
|
@ -149,3 +135,17 @@ type DeleteCharactersCharacterIDMailMailIDInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*DeleteCharactersCharacterIDMailMailIDForbiddenBody delete_characters_character_id_mail_mail_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model DeleteCharactersCharacterIDMailMailIDForbiddenBody
|
||||
*/
|
||||
type DeleteCharactersCharacterIDMailMailIDForbiddenBody struct {
|
||||
|
||||
// delete_characters_character_id_mail_mail_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,20 @@ func (o *GetCharactersCharacterIDMailLabelsInternalServerError) readResponse(res
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailLabelsInternalServerErrorBody get_characters_character_id_mail_labels_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDMailLabelsInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailLabelsInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_mail_labels_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*LabelsItems0 get_characters_character_id_mail_labels_label
|
||||
//
|
||||
// label object
|
||||
|
@ -212,17 +226,3 @@ type GetCharactersCharacterIDMailLabelsForbiddenBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailLabelsInternalServerErrorBody get_characters_character_id_mail_labels_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDMailLabelsInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailLabelsInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_mail_labels_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,20 +147,6 @@ func (o *GetCharactersCharacterIDMailListsInternalServerError) readResponse(resp
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailListsForbiddenBody get_characters_character_id_mail_lists_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDMailListsForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailListsForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_mail_lists_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailListsInternalServerErrorBody get_characters_character_id_mail_lists_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
|
@ -194,3 +180,17 @@ type GetCharactersCharacterIDMailListsOKBodyItems0 struct {
|
|||
// Required: true
|
||||
Name *string `json:"name"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailListsForbiddenBody get_characters_character_id_mail_lists_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDMailListsForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailListsForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_mail_lists_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -181,6 +181,20 @@ func (o *GetCharactersCharacterIDMailMailIDInternalServerError) readResponse(res
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailMailIDInternalServerErrorBody get_characters_character_id_mail_mail_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDMailMailIDInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailMailIDInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_mail_mail_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*RecipientsItems0 get_characters_character_id_mail_mail_id_recipient
|
||||
//
|
||||
// recipient object
|
||||
|
@ -281,17 +295,3 @@ type GetCharactersCharacterIDMailMailIDNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailMailIDInternalServerErrorBody get_characters_character_id_mail_mail_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDMailMailIDInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailMailIDInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_mail_mail_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,34 @@ func (o *GetCharactersCharacterIDMailInternalServerError) readResponse(response
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailForbiddenBody get_characters_character_id_mail_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDMailForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_mail_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailInternalServerErrorBody get_characters_character_id_mail_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDMailInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_mail_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailOKBodyItems0 get_characters_character_id_mail_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -215,31 +243,3 @@ type GetCharactersCharacterIDMailOKBodyItems0RecipientsItems0 struct {
|
|||
// Required: true
|
||||
RecipientType *string `json:"recipient_type"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailForbiddenBody get_characters_character_id_mail_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDMailForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_mail_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDMailInternalServerErrorBody get_characters_character_id_mail_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDMailInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDMailInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_mail_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -164,34 +164,6 @@ func (o *PostCharactersCharacterIDMailInternalServerError) readResponse(response
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDMailForbiddenBody post_characters_character_id_mail_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostCharactersCharacterIDMailForbiddenBody
|
||||
*/
|
||||
type PostCharactersCharacterIDMailForbiddenBody struct {
|
||||
|
||||
// post_characters_character_id_mail_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDMailInternalServerErrorBody post_characters_character_id_mail_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostCharactersCharacterIDMailInternalServerErrorBody
|
||||
*/
|
||||
type PostCharactersCharacterIDMailInternalServerErrorBody struct {
|
||||
|
||||
// post_characters_character_id_mail_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDMailBody post_characters_character_id_mail_mail
|
||||
//
|
||||
// mail schema
|
||||
|
@ -241,3 +213,31 @@ type PostCharactersCharacterIDMailBadRequestBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDMailForbiddenBody post_characters_character_id_mail_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostCharactersCharacterIDMailForbiddenBody
|
||||
*/
|
||||
type PostCharactersCharacterIDMailForbiddenBody struct {
|
||||
|
||||
// post_characters_character_id_mail_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostCharactersCharacterIDMailInternalServerErrorBody post_characters_character_id_mail_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostCharactersCharacterIDMailInternalServerErrorBody
|
||||
*/
|
||||
type PostCharactersCharacterIDMailInternalServerErrorBody struct {
|
||||
|
||||
// post_characters_character_id_mail_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -156,6 +156,34 @@ func (o *PutCharactersCharacterIDMailMailIDInternalServerError) readResponse(res
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PutCharactersCharacterIDMailMailIDForbiddenBody put_characters_character_id_mail_mail_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PutCharactersCharacterIDMailMailIDForbiddenBody
|
||||
*/
|
||||
type PutCharactersCharacterIDMailMailIDForbiddenBody struct {
|
||||
|
||||
// put_characters_character_id_mail_mail_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutCharactersCharacterIDMailMailIDInternalServerErrorBody put_characters_character_id_mail_mail_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PutCharactersCharacterIDMailMailIDInternalServerErrorBody
|
||||
*/
|
||||
type PutCharactersCharacterIDMailMailIDInternalServerErrorBody struct {
|
||||
|
||||
// put_characters_character_id_mail_mail_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutCharactersCharacterIDMailMailIDBody put_characters_character_id_mail_mail_id_contents
|
||||
//
|
||||
// contents object
|
||||
|
@ -189,31 +217,3 @@ type PutCharactersCharacterIDMailMailIDBadRequestBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutCharactersCharacterIDMailMailIDForbiddenBody put_characters_character_id_mail_mail_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PutCharactersCharacterIDMailMailIDForbiddenBody
|
||||
*/
|
||||
type PutCharactersCharacterIDMailMailIDForbiddenBody struct {
|
||||
|
||||
// put_characters_character_id_mail_mail_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PutCharactersCharacterIDMailMailIDInternalServerErrorBody put_characters_character_id_mail_mail_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PutCharactersCharacterIDMailMailIDInternalServerErrorBody
|
||||
*/
|
||||
type PutCharactersCharacterIDMailMailIDInternalServerErrorBody struct {
|
||||
|
||||
// put_characters_character_id_mail_mail_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,34 +147,6 @@ func (o *GetMarketsRegionIDOrdersInternalServerError) readResponse(response runt
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetMarketsRegionIDOrdersUnprocessableEntityBody get_markets_region_id_orders_unprocessable_entity
|
||||
//
|
||||
// bad region_id
|
||||
swagger:model GetMarketsRegionIDOrdersUnprocessableEntityBody
|
||||
*/
|
||||
type GetMarketsRegionIDOrdersUnprocessableEntityBody struct {
|
||||
|
||||
// get_markets_region_id_orders_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetMarketsRegionIDOrdersInternalServerErrorBody get_markets_region_id_orders_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetMarketsRegionIDOrdersInternalServerErrorBody
|
||||
*/
|
||||
type GetMarketsRegionIDOrdersInternalServerErrorBody struct {
|
||||
|
||||
// get_markets_region_id_orders_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetMarketsRegionIDOrdersOKBodyItems0 get_markets_region_id_orders_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -248,3 +220,31 @@ type GetMarketsRegionIDOrdersOKBodyItems0 struct {
|
|||
// Required: true
|
||||
VolumeTotal *int32 `json:"volume_total"`
|
||||
}
|
||||
|
||||
/*GetMarketsRegionIDOrdersUnprocessableEntityBody get_markets_region_id_orders_unprocessable_entity
|
||||
//
|
||||
// bad region_id
|
||||
swagger:model GetMarketsRegionIDOrdersUnprocessableEntityBody
|
||||
*/
|
||||
type GetMarketsRegionIDOrdersUnprocessableEntityBody struct {
|
||||
|
||||
// get_markets_region_id_orders_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetMarketsRegionIDOrdersInternalServerErrorBody get_markets_region_id_orders_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetMarketsRegionIDOrdersInternalServerErrorBody
|
||||
*/
|
||||
type GetMarketsRegionIDOrdersInternalServerErrorBody struct {
|
||||
|
||||
// get_markets_region_id_orders_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -73,13 +73,12 @@ type GetMarketsStructuresStructureIDParams struct {
|
|||
*/
|
||||
Datasource *string
|
||||
/*Page
|
||||
Which page to query, only used for querying without type_id. Starting at 1
|
||||
|
||||
Which page to query, starting at 1
|
||||
|
||||
*/
|
||||
Page *int32
|
||||
/*StructureID
|
||||
Return orders in this region
|
||||
Return orders in this structure
|
||||
|
||||
*/
|
||||
StructureID int64
|
||||
|
|
|
@ -181,124 +181,12 @@ func (o *GetCharactersCharacterIDPlanetsPlanetIDInternalServerError) readRespons
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PinsItems0ExtractorDetails get_characters_character_id_planets_planet_id_extractor_details
|
||||
/*LinksItems0 get_characters_character_id_planets_planet_id_link
|
||||
//
|
||||
// extractor_details object
|
||||
swagger:model PinsItems0ExtractorDetails
|
||||
// link object
|
||||
swagger:model LinksItems0
|
||||
*/
|
||||
type PinsItems0ExtractorDetails struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_cycle_time
|
||||
//
|
||||
// in seconds
|
||||
// Required: true
|
||||
CycleTime *int32 `json:"cycle_time"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_head_radius
|
||||
//
|
||||
// head_radius number
|
||||
// Required: true
|
||||
HeadRadius *float32 `json:"head_radius"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_heads
|
||||
//
|
||||
// heads array
|
||||
// Required: true
|
||||
Heads []*PinsItems0ExtractorDetailsHeadsItems0 `json:"heads"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_product_type_id
|
||||
//
|
||||
// product_type_id integer
|
||||
// Required: true
|
||||
ProductTypeID *int32 `json:"product_type_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_qty_per_cycle
|
||||
//
|
||||
// qty_per_cycle integer
|
||||
// Required: true
|
||||
QtyPerCycle *int32 `json:"qty_per_cycle"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDOKBody get_characters_character_id_planets_planet_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetCharactersCharacterIDPlanetsPlanetIDOKBody
|
||||
*/
|
||||
type GetCharactersCharacterIDPlanetsPlanetIDOKBody struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_links
|
||||
//
|
||||
// links array
|
||||
// Required: true
|
||||
Links []*LinksItems0 `json:"links"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_pins
|
||||
//
|
||||
// pins array
|
||||
// Required: true
|
||||
Pins []*PinsItems0 `json:"pins"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_routes
|
||||
//
|
||||
// routes array
|
||||
// Required: true
|
||||
Routes []*RoutesItems0 `json:"routes"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDForbiddenBody get_characters_character_id_planets_planet_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDPlanetsPlanetIDForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDPlanetsPlanetIDForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDNotFoundBody get_characters_character_id_planets_planet_id_not_found
|
||||
//
|
||||
// Colony not found
|
||||
swagger:model GetCharactersCharacterIDPlanetsPlanetIDNotFoundBody
|
||||
*/
|
||||
type GetCharactersCharacterIDPlanetsPlanetIDNotFoundBody struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PinsItems0FactoryDetails get_characters_character_id_planets_planet_id_factory_details
|
||||
//
|
||||
// factory_details object
|
||||
swagger:model PinsItems0FactoryDetails
|
||||
*/
|
||||
type PinsItems0FactoryDetails struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_schematic_id
|
||||
//
|
||||
// schematic_id integer
|
||||
// Required: true
|
||||
SchematicID *int32 `json:"schematic_id"`
|
||||
}
|
||||
|
||||
/*RoutesItems0 get_characters_character_id_planets_planet_id_route
|
||||
//
|
||||
// route object
|
||||
swagger:model RoutesItems0
|
||||
*/
|
||||
type RoutesItems0 struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_content_type_id
|
||||
//
|
||||
// content_type_id integer
|
||||
// Required: true
|
||||
ContentTypeID *int32 `json:"content_type_id"`
|
||||
type LinksItems0 struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_destination_pin_id
|
||||
//
|
||||
|
@ -306,50 +194,19 @@ type RoutesItems0 struct {
|
|||
// Required: true
|
||||
DestinationPinID *int64 `json:"destination_pin_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_quantity
|
||||
// get_characters_character_id_planets_planet_id_link_level
|
||||
//
|
||||
// quantity integer
|
||||
// link_level integer
|
||||
// Required: true
|
||||
Quantity *int64 `json:"quantity"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_route_id
|
||||
//
|
||||
// route_id integer
|
||||
// Required: true
|
||||
RouteID *int64 `json:"route_id"`
|
||||
// Maximum: 10
|
||||
// Minimum: 0
|
||||
LinkLevel *int32 `json:"link_level"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_source_pin_id
|
||||
//
|
||||
// source_pin_id integer
|
||||
// Required: true
|
||||
SourcePinID *int64 `json:"source_pin_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_waypoints
|
||||
//
|
||||
// waypoints array
|
||||
Waypoints []*RoutesItems0WaypointsItems0 `json:"waypoints"`
|
||||
}
|
||||
|
||||
/*RoutesItems0WaypointsItems0 get_characters_character_id_planets_planet_id_waypoint
|
||||
//
|
||||
// waypoint object
|
||||
swagger:model RoutesItems0WaypointsItems0
|
||||
*/
|
||||
type RoutesItems0WaypointsItems0 struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_order
|
||||
//
|
||||
// order integer
|
||||
// Required: true
|
||||
// Maximum: 5
|
||||
// Minimum: 1
|
||||
Order *int32 `json:"order"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_pin_id
|
||||
//
|
||||
// pin_id integer
|
||||
// Required: true
|
||||
PinID *int64 `json:"pin_id"`
|
||||
}
|
||||
|
||||
/*PinsItems0 get_characters_character_id_planets_planet_id_pin
|
||||
|
@ -438,32 +295,18 @@ type PinsItems0ExtractorDetailsHeadsItems0 struct {
|
|||
Longitude *float32 `json:"longitude"`
|
||||
}
|
||||
|
||||
/*LinksItems0 get_characters_character_id_planets_planet_id_link
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDForbiddenBody get_characters_character_id_planets_planet_id_forbidden
|
||||
//
|
||||
// link object
|
||||
swagger:model LinksItems0
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDPlanetsPlanetIDForbiddenBody
|
||||
*/
|
||||
type LinksItems0 struct {
|
||||
type GetCharactersCharacterIDPlanetsPlanetIDForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_destination_pin_id
|
||||
// get_characters_character_id_planets_planet_id_403_forbidden
|
||||
//
|
||||
// destination_pin_id integer
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
DestinationPinID *int64 `json:"destination_pin_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_link_level
|
||||
//
|
||||
// link_level integer
|
||||
// Required: true
|
||||
// Maximum: 10
|
||||
// Minimum: 0
|
||||
LinkLevel *int32 `json:"link_level"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_source_pin_id
|
||||
//
|
||||
// source_pin_id integer
|
||||
// Required: true
|
||||
SourcePinID *int64 `json:"source_pin_id"`
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDInternalServerErrorBody get_characters_character_id_planets_planet_id_internal_server_error
|
||||
|
@ -479,3 +322,160 @@ type GetCharactersCharacterIDPlanetsPlanetIDInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDNotFoundBody get_characters_character_id_planets_planet_id_not_found
|
||||
//
|
||||
// Colony not found
|
||||
swagger:model GetCharactersCharacterIDPlanetsPlanetIDNotFoundBody
|
||||
*/
|
||||
type GetCharactersCharacterIDPlanetsPlanetIDNotFoundBody struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PinsItems0FactoryDetails get_characters_character_id_planets_planet_id_factory_details
|
||||
//
|
||||
// factory_details object
|
||||
swagger:model PinsItems0FactoryDetails
|
||||
*/
|
||||
type PinsItems0FactoryDetails struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_schematic_id
|
||||
//
|
||||
// schematic_id integer
|
||||
// Required: true
|
||||
SchematicID *int32 `json:"schematic_id"`
|
||||
}
|
||||
|
||||
/*PinsItems0ExtractorDetails get_characters_character_id_planets_planet_id_extractor_details
|
||||
//
|
||||
// extractor_details object
|
||||
swagger:model PinsItems0ExtractorDetails
|
||||
*/
|
||||
type PinsItems0ExtractorDetails struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_cycle_time
|
||||
//
|
||||
// in seconds
|
||||
// Required: true
|
||||
CycleTime *int32 `json:"cycle_time"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_head_radius
|
||||
//
|
||||
// head_radius number
|
||||
// Required: true
|
||||
HeadRadius *float32 `json:"head_radius"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_heads
|
||||
//
|
||||
// heads array
|
||||
// Required: true
|
||||
Heads []*PinsItems0ExtractorDetailsHeadsItems0 `json:"heads"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_product_type_id
|
||||
//
|
||||
// product_type_id integer
|
||||
// Required: true
|
||||
ProductTypeID *int32 `json:"product_type_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_qty_per_cycle
|
||||
//
|
||||
// qty_per_cycle integer
|
||||
// Required: true
|
||||
QtyPerCycle *int32 `json:"qty_per_cycle"`
|
||||
}
|
||||
|
||||
/*RoutesItems0 get_characters_character_id_planets_planet_id_route
|
||||
//
|
||||
// route object
|
||||
swagger:model RoutesItems0
|
||||
*/
|
||||
type RoutesItems0 struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_content_type_id
|
||||
//
|
||||
// content_type_id integer
|
||||
// Required: true
|
||||
ContentTypeID *int32 `json:"content_type_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_destination_pin_id
|
||||
//
|
||||
// destination_pin_id integer
|
||||
// Required: true
|
||||
DestinationPinID *int64 `json:"destination_pin_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_quantity
|
||||
//
|
||||
// quantity integer
|
||||
// Required: true
|
||||
Quantity *int64 `json:"quantity"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_route_id
|
||||
//
|
||||
// route_id integer
|
||||
// Required: true
|
||||
RouteID *int64 `json:"route_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_source_pin_id
|
||||
//
|
||||
// source_pin_id integer
|
||||
// Required: true
|
||||
SourcePinID *int64 `json:"source_pin_id"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_waypoints
|
||||
//
|
||||
// waypoints array
|
||||
Waypoints []*RoutesItems0WaypointsItems0 `json:"waypoints"`
|
||||
}
|
||||
|
||||
/*RoutesItems0WaypointsItems0 get_characters_character_id_planets_planet_id_waypoint
|
||||
//
|
||||
// waypoint object
|
||||
swagger:model RoutesItems0WaypointsItems0
|
||||
*/
|
||||
type RoutesItems0WaypointsItems0 struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_order
|
||||
//
|
||||
// order integer
|
||||
// Required: true
|
||||
// Maximum: 5
|
||||
// Minimum: 1
|
||||
Order *int32 `json:"order"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_pin_id
|
||||
//
|
||||
// pin_id integer
|
||||
// Required: true
|
||||
PinID *int64 `json:"pin_id"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDPlanetsPlanetIDOKBody get_characters_character_id_planets_planet_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetCharactersCharacterIDPlanetsPlanetIDOKBody
|
||||
*/
|
||||
type GetCharactersCharacterIDPlanetsPlanetIDOKBody struct {
|
||||
|
||||
// get_characters_character_id_planets_planet_id_links
|
||||
//
|
||||
// links array
|
||||
// Required: true
|
||||
Links []*LinksItems0 `json:"links"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_pins
|
||||
//
|
||||
// pins array
|
||||
// Required: true
|
||||
Pins []*PinsItems0 `json:"pins"`
|
||||
|
||||
// get_characters_character_id_planets_planet_id_routes
|
||||
//
|
||||
// routes array
|
||||
// Required: true
|
||||
Routes []*RoutesItems0 `json:"routes"`
|
||||
}
|
||||
|
|
|
@ -147,20 +147,6 @@ func (o *GetUniverseSchematicsSchematicIDInternalServerError) readResponse(respo
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseSchematicsSchematicIDInternalServerErrorBody get_universe_schematics_schematic_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseSchematicsSchematicIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseSchematicsSchematicIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_schematics_schematic_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseSchematicsSchematicIDOKBody get_universe_schematics_schematic_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -194,3 +180,17 @@ type GetUniverseSchematicsSchematicIDNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseSchematicsSchematicIDInternalServerErrorBody get_universe_schematics_schematic_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseSchematicsSchematicIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseSchematicsSchematicIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_schematics_schematic_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,34 +147,6 @@ func (o *GetCharactersCharacterIDSkillqueueInternalServerError) readResponse(res
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillqueueForbiddenBody get_characters_character_id_skillqueue_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDSkillqueueForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillqueueForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_skillqueue_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillqueueInternalServerErrorBody get_characters_character_id_skillqueue_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDSkillqueueInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillqueueInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_skillqueue_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillqueueOKBodyItems0 get_characters_character_id_skillqueue_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -227,3 +199,31 @@ type GetCharactersCharacterIDSkillqueueOKBodyItems0 struct {
|
|||
// training_start_sp integer
|
||||
TrainingStartSp int32 `json:"training_start_sp,omitempty"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillqueueForbiddenBody get_characters_character_id_skillqueue_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDSkillqueueForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillqueueForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_skillqueue_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillqueueInternalServerErrorBody get_characters_character_id_skillqueue_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDSkillqueueInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillqueueInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_skillqueue_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,34 @@ func (o *GetCharactersCharacterIDSkillsInternalServerError) readResponse(respons
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillsForbiddenBody get_characters_character_id_skills_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDSkillsForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillsForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_skills_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillsInternalServerErrorBody get_characters_character_id_skills_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDSkillsInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillsInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_skills_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*SkillsItems0 get_characters_character_id_skills_skill
|
||||
//
|
||||
// skill object
|
||||
|
@ -189,31 +217,3 @@ type GetCharactersCharacterIDSkillsOKBody struct {
|
|||
// Required: true
|
||||
TotalSp *int64 `json:"total_sp"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillsForbiddenBody get_characters_character_id_skills_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetCharactersCharacterIDSkillsForbiddenBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillsForbiddenBody struct {
|
||||
|
||||
// get_characters_character_id_skills_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDSkillsInternalServerErrorBody get_characters_character_id_skills_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetCharactersCharacterIDSkillsInternalServerErrorBody
|
||||
*/
|
||||
type GetCharactersCharacterIDSkillsInternalServerErrorBody struct {
|
||||
|
||||
// get_characters_character_id_skills_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -113,26 +113,6 @@ func (o *GetSovereigntyCampaignsInternalServerError) readResponse(response runti
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 get_sovereignty_campaigns_participant
|
||||
//
|
||||
// participant object
|
||||
swagger:model GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0
|
||||
*/
|
||||
type GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 struct {
|
||||
|
||||
// get_sovereignty_campaigns_alliance_id
|
||||
//
|
||||
// alliance_id integer
|
||||
// Required: true
|
||||
AllianceID *int32 `json:"alliance_id"`
|
||||
|
||||
// get_sovereignty_campaigns_score
|
||||
//
|
||||
// score number
|
||||
// Required: true
|
||||
Score *float32 `json:"score"`
|
||||
}
|
||||
|
||||
/*GetSovereigntyCampaignsOKBodyItems0 get_sovereignty_campaigns_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -206,6 +186,26 @@ type GetSovereigntyCampaignsOKBodyItems0 struct {
|
|||
StructureID *int64 `json:"structure_id"`
|
||||
}
|
||||
|
||||
/*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 get_sovereignty_campaigns_participant
|
||||
//
|
||||
// participant object
|
||||
swagger:model GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0
|
||||
*/
|
||||
type GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 struct {
|
||||
|
||||
// get_sovereignty_campaigns_alliance_id
|
||||
//
|
||||
// alliance_id integer
|
||||
// Required: true
|
||||
AllianceID *int32 `json:"alliance_id"`
|
||||
|
||||
// get_sovereignty_campaigns_score
|
||||
//
|
||||
// score number
|
||||
// Required: true
|
||||
Score *float32 `json:"score"`
|
||||
}
|
||||
|
||||
/*GetSovereigntyCampaignsInternalServerErrorBody get_sovereignty_campaigns_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
|
|
171
client/universe/get_universe_bloodlines_parameters.go
Normal file
171
client/universe/get_universe_bloodlines_parameters.go
Normal file
|
@ -0,0 +1,171 @@
|
|||
package universe
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
|
||||
strfmt "github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// NewGetUniverseBloodlinesParams creates a new GetUniverseBloodlinesParams object
|
||||
// with the default values initialized.
|
||||
func NewGetUniverseBloodlinesParams() *GetUniverseBloodlinesParams {
|
||||
var (
|
||||
datasourceDefault = string("tranquility")
|
||||
languageDefault = string("en-us")
|
||||
)
|
||||
return &GetUniverseBloodlinesParams{
|
||||
Datasource: &datasourceDefault,
|
||||
Language: &languageDefault,
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUniverseBloodlinesParamsWithTimeout creates a new GetUniverseBloodlinesParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
func NewGetUniverseBloodlinesParamsWithTimeout(timeout time.Duration) *GetUniverseBloodlinesParams {
|
||||
var (
|
||||
datasourceDefault = string("tranquility")
|
||||
languageDefault = string("en-us")
|
||||
)
|
||||
return &GetUniverseBloodlinesParams{
|
||||
Datasource: &datasourceDefault,
|
||||
Language: &languageDefault,
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUniverseBloodlinesParamsWithContext creates a new GetUniverseBloodlinesParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
func NewGetUniverseBloodlinesParamsWithContext(ctx context.Context) *GetUniverseBloodlinesParams {
|
||||
var (
|
||||
datasourceDefault = string("tranquility")
|
||||
languageDefault = string("en-us")
|
||||
)
|
||||
return &GetUniverseBloodlinesParams{
|
||||
Datasource: &datasourceDefault,
|
||||
Language: &languageDefault,
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
/*GetUniverseBloodlinesParams contains all the parameters to send to the API endpoint
|
||||
for the get universe bloodlines operation typically these are written to a http.Request
|
||||
*/
|
||||
type GetUniverseBloodlinesParams struct {
|
||||
|
||||
/*Datasource
|
||||
The server name you would like data from
|
||||
|
||||
*/
|
||||
Datasource *string
|
||||
/*Language
|
||||
Language to use in the response
|
||||
|
||||
*/
|
||||
Language *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) WithTimeout(timeout time.Duration) *GetUniverseBloodlinesParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) WithContext(ctx context.Context) *GetUniverseBloodlinesParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithDatasource adds the datasource to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) WithDatasource(datasource *string) *GetUniverseBloodlinesParams {
|
||||
o.SetDatasource(datasource)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDatasource adds the datasource to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) SetDatasource(datasource *string) {
|
||||
o.Datasource = datasource
|
||||
}
|
||||
|
||||
// WithLanguage adds the language to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) WithLanguage(language *string) *GetUniverseBloodlinesParams {
|
||||
o.SetLanguage(language)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetLanguage adds the language to the get universe bloodlines params
|
||||
func (o *GetUniverseBloodlinesParams) SetLanguage(language *string) {
|
||||
o.Language = language
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetUniverseBloodlinesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
r.SetTimeout(o.timeout)
|
||||
var res []error
|
||||
|
||||
if o.Datasource != nil {
|
||||
|
||||
// query param datasource
|
||||
var qrDatasource string
|
||||
if o.Datasource != nil {
|
||||
qrDatasource = *o.Datasource
|
||||
}
|
||||
qDatasource := qrDatasource
|
||||
if qDatasource != "" {
|
||||
if err := r.SetQueryParam("datasource", qDatasource); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if o.Language != nil {
|
||||
|
||||
// query param language
|
||||
var qrLanguage string
|
||||
if o.Language != nil {
|
||||
qrLanguage = *o.Language
|
||||
}
|
||||
qLanguage := qrLanguage
|
||||
if qLanguage != "" {
|
||||
if err := r.SetQueryParam("language", qLanguage); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
208
client/universe/get_universe_bloodlines_responses.go
Normal file
208
client/universe/get_universe_bloodlines_responses.go
Normal file
|
@ -0,0 +1,208 @@
|
|||
package universe
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
strfmt "github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// GetUniverseBloodlinesReader is a Reader for the GetUniverseBloodlines structure.
|
||||
type GetUniverseBloodlinesReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *GetUniverseBloodlinesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
|
||||
case 200:
|
||||
result := NewGetUniverseBloodlinesOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
|
||||
case 500:
|
||||
result := NewGetUniverseBloodlinesInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUniverseBloodlinesOK creates a GetUniverseBloodlinesOK with default headers values
|
||||
func NewGetUniverseBloodlinesOK() *GetUniverseBloodlinesOK {
|
||||
return &GetUniverseBloodlinesOK{}
|
||||
}
|
||||
|
||||
/*GetUniverseBloodlinesOK handles this case with default header values.
|
||||
|
||||
A list of bloodlines
|
||||
*/
|
||||
type GetUniverseBloodlinesOK struct {
|
||||
/*The caching mechanism used
|
||||
*/
|
||||
CacheControl string
|
||||
/*The language used in the response
|
||||
*/
|
||||
ContentLanguage string
|
||||
/*RFC7231 formatted datetime string
|
||||
*/
|
||||
Expires string
|
||||
/*RFC7231 formatted datetime string
|
||||
*/
|
||||
LastModified string
|
||||
|
||||
Payload []*GetUniverseBloodlinesOKBodyItems0
|
||||
}
|
||||
|
||||
func (o *GetUniverseBloodlinesOK) Error() string {
|
||||
return fmt.Sprintf("[GET /universe/bloodlines/][%d] getUniverseBloodlinesOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUniverseBloodlinesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// response header Cache-Control
|
||||
o.CacheControl = response.GetHeader("Cache-Control")
|
||||
|
||||
// response header Content-Language
|
||||
o.ContentLanguage = response.GetHeader("Content-Language")
|
||||
|
||||
// response header Expires
|
||||
o.Expires = response.GetHeader("Expires")
|
||||
|
||||
// response header Last-Modified
|
||||
o.LastModified = response.GetHeader("Last-Modified")
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUniverseBloodlinesInternalServerError creates a GetUniverseBloodlinesInternalServerError with default headers values
|
||||
func NewGetUniverseBloodlinesInternalServerError() *GetUniverseBloodlinesInternalServerError {
|
||||
return &GetUniverseBloodlinesInternalServerError{}
|
||||
}
|
||||
|
||||
/*GetUniverseBloodlinesInternalServerError handles this case with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
type GetUniverseBloodlinesInternalServerError struct {
|
||||
Payload GetUniverseBloodlinesInternalServerErrorBody
|
||||
}
|
||||
|
||||
func (o *GetUniverseBloodlinesInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /universe/bloodlines/][%d] getUniverseBloodlinesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUniverseBloodlinesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseBloodlinesOKBodyItems0 get_universe_bloodlines_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetUniverseBloodlinesOKBodyItems0
|
||||
*/
|
||||
type GetUniverseBloodlinesOKBodyItems0 struct {
|
||||
|
||||
// get_universe_bloodlines_bloodline_id
|
||||
//
|
||||
// bloodline_id integer
|
||||
// Required: true
|
||||
BloodlineID *int32 `json:"bloodline_id"`
|
||||
|
||||
// get_universe_bloodlines_charisma
|
||||
//
|
||||
// charisma integer
|
||||
// Required: true
|
||||
Charisma *int32 `json:"charisma"`
|
||||
|
||||
// get_universe_bloodlines_corporation_id
|
||||
//
|
||||
// corporation_id integer
|
||||
// Required: true
|
||||
CorporationID *int32 `json:"corporation_id"`
|
||||
|
||||
// get_universe_bloodlines_description
|
||||
//
|
||||
// description string
|
||||
// Required: true
|
||||
Description *string `json:"description"`
|
||||
|
||||
// get_universe_bloodlines_intelligence
|
||||
//
|
||||
// intelligence integer
|
||||
// Required: true
|
||||
Intelligence *int32 `json:"intelligence"`
|
||||
|
||||
// get_universe_bloodlines_memory
|
||||
//
|
||||
// memory integer
|
||||
// Required: true
|
||||
Memory *int32 `json:"memory"`
|
||||
|
||||
// get_universe_bloodlines_name
|
||||
//
|
||||
// name string
|
||||
// Required: true
|
||||
Name *string `json:"name"`
|
||||
|
||||
// get_universe_bloodlines_perception
|
||||
//
|
||||
// perception integer
|
||||
// Required: true
|
||||
Perception *int32 `json:"perception"`
|
||||
|
||||
// get_universe_bloodlines_race_id
|
||||
//
|
||||
// race_id integer
|
||||
// Required: true
|
||||
RaceID *int32 `json:"race_id"`
|
||||
|
||||
// get_universe_bloodlines_ship_type_id
|
||||
//
|
||||
// ship_type_id integer
|
||||
// Required: true
|
||||
ShipTypeID *int32 `json:"ship_type_id"`
|
||||
|
||||
// get_universe_bloodlines_willpower
|
||||
//
|
||||
// willpower integer
|
||||
// Required: true
|
||||
Willpower *int32 `json:"willpower"`
|
||||
}
|
||||
|
||||
/*GetUniverseBloodlinesInternalServerErrorBody get_universe_bloodlines_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseBloodlinesInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseBloodlinesInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_bloodlines_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
|
@ -153,34 +153,6 @@ func (o *GetUniverseCategoriesCategoryIDInternalServerError) readResponse(respon
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseCategoriesCategoryIDNotFoundBody get_universe_categories_category_id_not_found
|
||||
//
|
||||
// Category not found
|
||||
swagger:model GetUniverseCategoriesCategoryIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseCategoriesCategoryIDNotFoundBody struct {
|
||||
|
||||
// get_universe_categories_category_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseCategoriesCategoryIDInternalServerErrorBody get_universe_categories_category_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseCategoriesCategoryIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseCategoriesCategoryIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_categories_category_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseCategoriesCategoryIDOKBody get_universe_categories_category_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -212,3 +184,31 @@ type GetUniverseCategoriesCategoryIDOKBody struct {
|
|||
// Required: true
|
||||
Published *bool `json:"published"`
|
||||
}
|
||||
|
||||
/*GetUniverseCategoriesCategoryIDNotFoundBody get_universe_categories_category_id_not_found
|
||||
//
|
||||
// Not found
|
||||
swagger:model GetUniverseCategoriesCategoryIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseCategoriesCategoryIDNotFoundBody struct {
|
||||
|
||||
// get_universe_categories_category_id_404_not_found
|
||||
//
|
||||
// Not found message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseCategoriesCategoryIDInternalServerErrorBody get_universe_categories_category_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseCategoriesCategoryIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseCategoriesCategoryIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_categories_category_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
171
client/universe/get_universe_factions_parameters.go
Normal file
171
client/universe/get_universe_factions_parameters.go
Normal file
|
@ -0,0 +1,171 @@
|
|||
package universe
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
|
||||
strfmt "github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// NewGetUniverseFactionsParams creates a new GetUniverseFactionsParams object
|
||||
// with the default values initialized.
|
||||
func NewGetUniverseFactionsParams() *GetUniverseFactionsParams {
|
||||
var (
|
||||
datasourceDefault = string("tranquility")
|
||||
languageDefault = string("en-us")
|
||||
)
|
||||
return &GetUniverseFactionsParams{
|
||||
Datasource: &datasourceDefault,
|
||||
Language: &languageDefault,
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUniverseFactionsParamsWithTimeout creates a new GetUniverseFactionsParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
func NewGetUniverseFactionsParamsWithTimeout(timeout time.Duration) *GetUniverseFactionsParams {
|
||||
var (
|
||||
datasourceDefault = string("tranquility")
|
||||
languageDefault = string("en-us")
|
||||
)
|
||||
return &GetUniverseFactionsParams{
|
||||
Datasource: &datasourceDefault,
|
||||
Language: &languageDefault,
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUniverseFactionsParamsWithContext creates a new GetUniverseFactionsParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
func NewGetUniverseFactionsParamsWithContext(ctx context.Context) *GetUniverseFactionsParams {
|
||||
var (
|
||||
datasourceDefault = string("tranquility")
|
||||
languageDefault = string("en-us")
|
||||
)
|
||||
return &GetUniverseFactionsParams{
|
||||
Datasource: &datasourceDefault,
|
||||
Language: &languageDefault,
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
/*GetUniverseFactionsParams contains all the parameters to send to the API endpoint
|
||||
for the get universe factions operation typically these are written to a http.Request
|
||||
*/
|
||||
type GetUniverseFactionsParams struct {
|
||||
|
||||
/*Datasource
|
||||
The server name you would like data from
|
||||
|
||||
*/
|
||||
Datasource *string
|
||||
/*Language
|
||||
Language to use in the response
|
||||
|
||||
*/
|
||||
Language *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) WithTimeout(timeout time.Duration) *GetUniverseFactionsParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) WithContext(ctx context.Context) *GetUniverseFactionsParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithDatasource adds the datasource to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) WithDatasource(datasource *string) *GetUniverseFactionsParams {
|
||||
o.SetDatasource(datasource)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDatasource adds the datasource to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) SetDatasource(datasource *string) {
|
||||
o.Datasource = datasource
|
||||
}
|
||||
|
||||
// WithLanguage adds the language to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) WithLanguage(language *string) *GetUniverseFactionsParams {
|
||||
o.SetLanguage(language)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetLanguage adds the language to the get universe factions params
|
||||
func (o *GetUniverseFactionsParams) SetLanguage(language *string) {
|
||||
o.Language = language
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetUniverseFactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
r.SetTimeout(o.timeout)
|
||||
var res []error
|
||||
|
||||
if o.Datasource != nil {
|
||||
|
||||
// query param datasource
|
||||
var qrDatasource string
|
||||
if o.Datasource != nil {
|
||||
qrDatasource = *o.Datasource
|
||||
}
|
||||
qDatasource := qrDatasource
|
||||
if qDatasource != "" {
|
||||
if err := r.SetQueryParam("datasource", qDatasource); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if o.Language != nil {
|
||||
|
||||
// query param language
|
||||
var qrLanguage string
|
||||
if o.Language != nil {
|
||||
qrLanguage = *o.Language
|
||||
}
|
||||
qLanguage := qrLanguage
|
||||
if qLanguage != "" {
|
||||
if err := r.SetQueryParam("language", qLanguage); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
201
client/universe/get_universe_factions_responses.go
Normal file
201
client/universe/get_universe_factions_responses.go
Normal file
|
@ -0,0 +1,201 @@
|
|||
package universe
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
strfmt "github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// GetUniverseFactionsReader is a Reader for the GetUniverseFactions structure.
|
||||
type GetUniverseFactionsReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *GetUniverseFactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
|
||||
case 200:
|
||||
result := NewGetUniverseFactionsOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
|
||||
case 500:
|
||||
result := NewGetUniverseFactionsInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUniverseFactionsOK creates a GetUniverseFactionsOK with default headers values
|
||||
func NewGetUniverseFactionsOK() *GetUniverseFactionsOK {
|
||||
return &GetUniverseFactionsOK{}
|
||||
}
|
||||
|
||||
/*GetUniverseFactionsOK handles this case with default header values.
|
||||
|
||||
A list of factions
|
||||
*/
|
||||
type GetUniverseFactionsOK struct {
|
||||
/*The caching mechanism used
|
||||
*/
|
||||
CacheControl string
|
||||
/*The language used in the response
|
||||
*/
|
||||
ContentLanguage string
|
||||
/*RFC7231 formatted datetime string
|
||||
*/
|
||||
Expires string
|
||||
/*RFC7231 formatted datetime string
|
||||
*/
|
||||
LastModified string
|
||||
|
||||
Payload []*GetUniverseFactionsOKBodyItems0
|
||||
}
|
||||
|
||||
func (o *GetUniverseFactionsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /universe/factions/][%d] getUniverseFactionsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUniverseFactionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// response header Cache-Control
|
||||
o.CacheControl = response.GetHeader("Cache-Control")
|
||||
|
||||
// response header Content-Language
|
||||
o.ContentLanguage = response.GetHeader("Content-Language")
|
||||
|
||||
// response header Expires
|
||||
o.Expires = response.GetHeader("Expires")
|
||||
|
||||
// response header Last-Modified
|
||||
o.LastModified = response.GetHeader("Last-Modified")
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUniverseFactionsInternalServerError creates a GetUniverseFactionsInternalServerError with default headers values
|
||||
func NewGetUniverseFactionsInternalServerError() *GetUniverseFactionsInternalServerError {
|
||||
return &GetUniverseFactionsInternalServerError{}
|
||||
}
|
||||
|
||||
/*GetUniverseFactionsInternalServerError handles this case with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
type GetUniverseFactionsInternalServerError struct {
|
||||
Payload GetUniverseFactionsInternalServerErrorBody
|
||||
}
|
||||
|
||||
func (o *GetUniverseFactionsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /universe/factions/][%d] getUniverseFactionsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUniverseFactionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseFactionsOKBodyItems0 get_universe_factions_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetUniverseFactionsOKBodyItems0
|
||||
*/
|
||||
type GetUniverseFactionsOKBodyItems0 struct {
|
||||
|
||||
// get_universe_factions_corporation_id
|
||||
//
|
||||
// corporation_id integer
|
||||
// Required: true
|
||||
CorporationID *int32 `json:"corporation_id"`
|
||||
|
||||
// get_universe_factions_description
|
||||
//
|
||||
// description string
|
||||
// Required: true
|
||||
Description *string `json:"description"`
|
||||
|
||||
// get_universe_factions_faction_id
|
||||
//
|
||||
// faction_id integer
|
||||
// Required: true
|
||||
FactionID *int32 `json:"faction_id"`
|
||||
|
||||
// get_universe_factions_is_unique
|
||||
//
|
||||
// is_unique boolean
|
||||
// Required: true
|
||||
IsUnique *bool `json:"is_unique"`
|
||||
|
||||
// get_universe_factions_militia_corporation_id
|
||||
//
|
||||
// militia_corporation_id integer
|
||||
MilitiaCorporationID int32 `json:"militia_corporation_id,omitempty"`
|
||||
|
||||
// get_universe_factions_name
|
||||
//
|
||||
// name string
|
||||
// Required: true
|
||||
Name *string `json:"name"`
|
||||
|
||||
// get_universe_factions_size_factor
|
||||
//
|
||||
// size_factor number
|
||||
// Required: true
|
||||
SizeFactor *float32 `json:"size_factor"`
|
||||
|
||||
// get_universe_factions_solar_system_id
|
||||
//
|
||||
// solar_system_id integer
|
||||
// Required: true
|
||||
SolarSystemID *int32 `json:"solar_system_id"`
|
||||
|
||||
// get_universe_factions_station_count
|
||||
//
|
||||
// station_count integer
|
||||
// Required: true
|
||||
StationCount *int32 `json:"station_count"`
|
||||
|
||||
// get_universe_factions_station_system_count
|
||||
//
|
||||
// station_system_count integer
|
||||
// Required: true
|
||||
StationSystemCount *int32 `json:"station_system_count"`
|
||||
}
|
||||
|
||||
/*GetUniverseFactionsInternalServerErrorBody get_universe_factions_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseFactionsInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseFactionsInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_factions_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
|
@ -153,6 +153,34 @@ func (o *GetUniverseGroupsGroupIDInternalServerError) readResponse(response runt
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseGroupsGroupIDNotFoundBody get_universe_groups_group_id_not_found
|
||||
//
|
||||
// Not found
|
||||
swagger:model GetUniverseGroupsGroupIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseGroupsGroupIDNotFoundBody struct {
|
||||
|
||||
// get_universe_groups_group_id_404_not_found
|
||||
//
|
||||
// Not found message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseGroupsGroupIDInternalServerErrorBody get_universe_groups_group_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseGroupsGroupIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseGroupsGroupIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_groups_group_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseGroupsGroupIDOKBody get_universe_groups_group_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -190,31 +218,3 @@ type GetUniverseGroupsGroupIDOKBody struct {
|
|||
// Required: true
|
||||
Types []int32 `json:"types"`
|
||||
}
|
||||
|
||||
/*GetUniverseGroupsGroupIDNotFoundBody get_universe_groups_group_id_not_found
|
||||
//
|
||||
// Group not found
|
||||
swagger:model GetUniverseGroupsGroupIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseGroupsGroupIDNotFoundBody struct {
|
||||
|
||||
// get_universe_groups_group_id_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseGroupsGroupIDInternalServerErrorBody get_universe_groups_group_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseGroupsGroupIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseGroupsGroupIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_groups_group_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -162,48 +162,6 @@ func (o *GetUniverseStructuresStructureIDInternalServerError) readResponse(respo
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDForbiddenBody get_universe_structures_structure_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetUniverseStructuresStructureIDForbiddenBody
|
||||
*/
|
||||
type GetUniverseStructuresStructureIDForbiddenBody struct {
|
||||
|
||||
// get_universe_structures_structure_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDNotFoundBody get_universe_structures_structure_id_not_found
|
||||
//
|
||||
// Not found
|
||||
swagger:model GetUniverseStructuresStructureIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseStructuresStructureIDNotFoundBody struct {
|
||||
|
||||
// get_universe_structures_structure_id_404_not_found
|
||||
//
|
||||
// Not found message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDInternalServerErrorBody get_universe_structures_structure_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseStructuresStructureIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseStructuresStructureIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_structures_structure_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDOKBodyPosition get_universe_structures_structure_id_position
|
||||
//
|
||||
// Coordinates of the structure in Cartesian space relative to the Sun, in metres.
|
||||
|
@ -260,3 +218,45 @@ type GetUniverseStructuresStructureIDOKBody struct {
|
|||
// Required: true
|
||||
TypeID *int32 `json:"type_id"`
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDForbiddenBody get_universe_structures_structure_id_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model GetUniverseStructuresStructureIDForbiddenBody
|
||||
*/
|
||||
type GetUniverseStructuresStructureIDForbiddenBody struct {
|
||||
|
||||
// get_universe_structures_structure_id_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDNotFoundBody get_universe_structures_structure_id_not_found
|
||||
//
|
||||
// Not found
|
||||
swagger:model GetUniverseStructuresStructureIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseStructuresStructureIDNotFoundBody struct {
|
||||
|
||||
// get_universe_structures_structure_id_404_not_found
|
||||
//
|
||||
// Not found message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseStructuresStructureIDInternalServerErrorBody get_universe_structures_structure_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseStructuresStructureIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseStructuresStructureIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_structures_structure_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,6 +147,20 @@ func (o *GetUniverseSystemsSystemIDInternalServerError) readResponse(response ru
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetUniverseSystemsSystemIDInternalServerErrorBody get_universe_systems_system_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseSystemsSystemIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseSystemsSystemIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_systems_system_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseSystemsSystemIDOKBody get_universe_systems_system_id_ok
|
||||
//
|
||||
// 200 ok object
|
||||
|
@ -174,17 +188,3 @@ type GetUniverseSystemsSystemIDNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetUniverseSystemsSystemIDInternalServerErrorBody get_universe_systems_system_id_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model GetUniverseSystemsSystemIDInternalServerErrorBody
|
||||
*/
|
||||
type GetUniverseSystemsSystemIDInternalServerErrorBody struct {
|
||||
|
||||
// get_universe_systems_system_id_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -287,14 +287,14 @@ type GetUniverseTypesTypeIDOKBody struct {
|
|||
|
||||
/*GetUniverseTypesTypeIDNotFoundBody get_universe_types_type_id_not_found
|
||||
//
|
||||
// Type not found
|
||||
// Not found
|
||||
swagger:model GetUniverseTypesTypeIDNotFoundBody
|
||||
*/
|
||||
type GetUniverseTypesTypeIDNotFoundBody struct {
|
||||
|
||||
// get_universe_types_type_id_error
|
||||
// get_universe_types_type_id_404_not_found
|
||||
//
|
||||
// error message
|
||||
// Not found message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ type PostUniverseNamesParams struct {
|
|||
The ids to resolve
|
||||
|
||||
*/
|
||||
Ids PostUniverseNamesBody
|
||||
Ids []int32
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
|
@ -110,13 +110,13 @@ func (o *PostUniverseNamesParams) SetDatasource(datasource *string) {
|
|||
}
|
||||
|
||||
// WithIds adds the ids to the post universe names params
|
||||
func (o *PostUniverseNamesParams) WithIds(ids PostUniverseNamesBody) *PostUniverseNamesParams {
|
||||
func (o *PostUniverseNamesParams) WithIds(ids []int32) *PostUniverseNamesParams {
|
||||
o.SetIds(ids)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetIds adds the ids to the post universe names params
|
||||
func (o *PostUniverseNamesParams) SetIds(ids PostUniverseNamesBody) {
|
||||
func (o *PostUniverseNamesParams) SetIds(ids []int32) {
|
||||
o.Ids = ids
|
||||
}
|
||||
|
||||
|
|
|
@ -128,20 +128,18 @@ func (o *PostUniverseNamesInternalServerError) readResponse(response runtime.Cli
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostUniverseNamesBody post_universe_names_ids
|
||||
/*PostUniverseNamesInternalServerErrorBody post_universe_names_internal_server_error
|
||||
//
|
||||
// ids schema
|
||||
swagger:model PostUniverseNamesBody
|
||||
// Internal server error
|
||||
swagger:model PostUniverseNamesInternalServerErrorBody
|
||||
*/
|
||||
type PostUniverseNamesBody struct {
|
||||
type PostUniverseNamesInternalServerErrorBody struct {
|
||||
|
||||
// post_universe_names_ids
|
||||
// post_universe_names_500_internal_server_error
|
||||
//
|
||||
// ids array
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
// Min Items: 1
|
||||
// Unique: true
|
||||
Ids []int32 `json:"ids"`
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUniverseNamesOKBodyItems0 post_universe_names_200_ok
|
||||
|
@ -183,17 +181,3 @@ type PostUniverseNamesNotFoundBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUniverseNamesInternalServerErrorBody post_universe_names_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostUniverseNamesInternalServerErrorBody
|
||||
*/
|
||||
type PostUniverseNamesInternalServerErrorBody struct {
|
||||
|
||||
// post_universe_names_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -22,6 +22,49 @@ type Client struct {
|
|||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
/*
|
||||
GetUniverseBloodlines gets bloodlines
|
||||
|
||||
Get a list of bloodlines
|
||||
|
||||
---
|
||||
|
||||
Alternate route: `/v1/universe/bloodlines/`
|
||||
|
||||
Alternate route: `/legacy/universe/bloodlines/`
|
||||
|
||||
Alternate route: `/dev/universe/bloodlines/`
|
||||
|
||||
|
||||
---
|
||||
|
||||
This route is cached for up to 3600 seconds
|
||||
*/
|
||||
func (a *Client) GetUniverseBloodlines(params *GetUniverseBloodlinesParams) (*GetUniverseBloodlinesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetUniverseBloodlinesParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
ID: "get_universe_bloodlines",
|
||||
Method: "GET",
|
||||
PathPattern: "/universe/bloodlines/",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{""},
|
||||
Schemes: []string{"https"},
|
||||
Params: params,
|
||||
Reader: &GetUniverseBloodlinesReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result.(*GetUniverseBloodlinesOK), nil
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
GetUniverseCategories gets item categories
|
||||
|
||||
|
@ -108,6 +151,49 @@ func (a *Client) GetUniverseCategoriesCategoryID(params *GetUniverseCategoriesCa
|
|||
|
||||
}
|
||||
|
||||
/*
|
||||
GetUniverseFactions gets factions
|
||||
|
||||
Get a list of factions
|
||||
|
||||
---
|
||||
|
||||
Alternate route: `/v1/universe/factions/`
|
||||
|
||||
Alternate route: `/legacy/universe/factions/`
|
||||
|
||||
Alternate route: `/dev/universe/factions/`
|
||||
|
||||
|
||||
---
|
||||
|
||||
This route is cached for up to 3600 seconds
|
||||
*/
|
||||
func (a *Client) GetUniverseFactions(params *GetUniverseFactionsParams) (*GetUniverseFactionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetUniverseFactionsParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
ID: "get_universe_factions",
|
||||
Method: "GET",
|
||||
PathPattern: "/universe/factions/",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{""},
|
||||
Schemes: []string{"https"},
|
||||
Params: params,
|
||||
Reader: &GetUniverseFactionsReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result.(*GetUniverseFactionsOK), nil
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
GetUniverseGroups gets item groups
|
||||
|
||||
|
@ -497,9 +583,9 @@ Resolve a set of IDs to names and categories. Supported ID's for resolving are:
|
|||
|
||||
---
|
||||
|
||||
Alternate route: `/v1/universe/names/`
|
||||
Alternate route: `/v2/universe/names/`
|
||||
|
||||
Alternate route: `/legacy/universe/names/`
|
||||
Alternate route: `/dev/universe/names/`
|
||||
|
||||
*/
|
||||
func (a *Client) PostUniverseNames(params *PostUniverseNamesParams) (*PostUniverseNamesOK, error) {
|
||||
|
|
|
@ -122,20 +122,6 @@ func (o *PostUIOpenwindowInformationInternalServerError) readResponse(response r
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowInformationForbiddenBody post_ui_openwindow_information_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostUIOpenwindowInformationForbiddenBody
|
||||
*/
|
||||
type PostUIOpenwindowInformationForbiddenBody struct {
|
||||
|
||||
// post_ui_openwindow_information_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowInformationInternalServerErrorBody post_ui_openwindow_information_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
|
@ -149,3 +135,17 @@ type PostUIOpenwindowInformationInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowInformationForbiddenBody post_ui_openwindow_information_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostUIOpenwindowInformationForbiddenBody
|
||||
*/
|
||||
type PostUIOpenwindowInformationForbiddenBody struct {
|
||||
|
||||
// post_ui_openwindow_information_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -156,48 +156,6 @@ func (o *PostUIOpenwindowNewmailInternalServerError) readResponse(response runti
|
|||
return nil
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailForbiddenBody post_ui_openwindow_newmail_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostUIOpenwindowNewmailForbiddenBody
|
||||
*/
|
||||
type PostUIOpenwindowNewmailForbiddenBody struct {
|
||||
|
||||
// post_ui_openwindow_newmail_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailUnprocessableEntityBody post_ui_openwindow_newmail_unprocessable_entity
|
||||
//
|
||||
// 422 unprocessable entity object
|
||||
swagger:model PostUIOpenwindowNewmailUnprocessableEntityBody
|
||||
*/
|
||||
type PostUIOpenwindowNewmailUnprocessableEntityBody struct {
|
||||
|
||||
// post_ui_openwindow_newmail_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailInternalServerErrorBody post_ui_openwindow_newmail_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostUIOpenwindowNewmailInternalServerErrorBody
|
||||
*/
|
||||
type PostUIOpenwindowNewmailInternalServerErrorBody struct {
|
||||
|
||||
// post_ui_openwindow_newmail_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailBody post_ui_openwindow_newmail_new_mail
|
||||
//
|
||||
// new_mail object
|
||||
|
@ -239,3 +197,45 @@ type PostUIOpenwindowNewmailBody struct {
|
|||
// Required: true
|
||||
ToMailingListID *int32 `json:"to_mailing_list_id"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailForbiddenBody post_ui_openwindow_newmail_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
swagger:model PostUIOpenwindowNewmailForbiddenBody
|
||||
*/
|
||||
type PostUIOpenwindowNewmailForbiddenBody struct {
|
||||
|
||||
// post_ui_openwindow_newmail_403_forbidden
|
||||
//
|
||||
// Forbidden message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailUnprocessableEntityBody post_ui_openwindow_newmail_unprocessable_entity
|
||||
//
|
||||
// 422 unprocessable entity object
|
||||
swagger:model PostUIOpenwindowNewmailUnprocessableEntityBody
|
||||
*/
|
||||
type PostUIOpenwindowNewmailUnprocessableEntityBody struct {
|
||||
|
||||
// post_ui_openwindow_newmail_error
|
||||
//
|
||||
// error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*PostUIOpenwindowNewmailInternalServerErrorBody post_ui_openwindow_newmail_internal_server_error
|
||||
//
|
||||
// Internal server error
|
||||
swagger:model PostUIOpenwindowNewmailInternalServerErrorBody
|
||||
*/
|
||||
type PostUIOpenwindowNewmailInternalServerErrorBody struct {
|
||||
|
||||
// post_ui_openwindow_newmail_500_internal_server_error
|
||||
//
|
||||
// Internal server error message
|
||||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
|
|
@ -147,24 +147,6 @@ func (o *GetCharactersCharacterIDWalletsInternalServerError) readResponse(respon
|
|||
return nil
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDWalletsOKBodyItems0 get_characters_character_id_wallets_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetCharactersCharacterIDWalletsOKBodyItems0
|
||||
*/
|
||||
type GetCharactersCharacterIDWalletsOKBodyItems0 struct {
|
||||
|
||||
// get_characters_character_id_wallets_balance
|
||||
//
|
||||
// Wallet's balance in ISK hundredths.
|
||||
Balance int64 `json:"balance,omitempty"`
|
||||
|
||||
// get_characters_character_id_wallets_wallet_id
|
||||
//
|
||||
// wallet_id integer
|
||||
WalletID int32 `json:"wallet_id,omitempty"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDWalletsForbiddenBody get_characters_character_id_wallets_forbidden
|
||||
//
|
||||
// Forbidden
|
||||
|
@ -192,3 +174,21 @@ type GetCharactersCharacterIDWalletsInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*GetCharactersCharacterIDWalletsOKBodyItems0 get_characters_character_id_wallets_200_ok
|
||||
//
|
||||
// 200 ok object
|
||||
swagger:model GetCharactersCharacterIDWalletsOKBodyItems0
|
||||
*/
|
||||
type GetCharactersCharacterIDWalletsOKBodyItems0 struct {
|
||||
|
||||
// get_characters_character_id_wallets_balance
|
||||
//
|
||||
// Wallet's balance in ISK hundredths.
|
||||
Balance int64 `json:"balance,omitempty"`
|
||||
|
||||
// get_characters_character_id_wallets_wallet_id
|
||||
//
|
||||
// wallet_id integer
|
||||
WalletID int32 `json:"wallet_id,omitempty"`
|
||||
}
|
||||
|
|
|
@ -147,24 +147,6 @@ func (o *GetWarsWarIDInternalServerError) readResponse(response runtime.ClientRe
|
|||
return nil
|
||||
}
|
||||
|
||||
/*AlliesItems0 get_wars_war_id_ally
|
||||
//
|
||||
// ally object
|
||||
swagger:model AlliesItems0
|
||||
*/
|
||||
type AlliesItems0 struct {
|
||||
|
||||
// get_wars_war_id_alliance_id
|
||||
//
|
||||
// Alliance ID if and only if this ally is an alliance
|
||||
AllianceID int32 `json:"alliance_id,omitempty"`
|
||||
|
||||
// get_wars_war_id_corporation_id
|
||||
//
|
||||
// Corporation ID if and only if this ally is a corporation
|
||||
CorporationID int32 `json:"corporation_id,omitempty"`
|
||||
}
|
||||
|
||||
/*GetWarsWarIDOKBodyDefender get_wars_war_id_defender
|
||||
//
|
||||
// The defending corporation or alliance that declared this war, only contains either corporation_id or alliance_id
|
||||
|
@ -316,3 +298,21 @@ type GetWarsWarIDInternalServerErrorBody struct {
|
|||
// Required: true
|
||||
Error *string `json:"error"`
|
||||
}
|
||||
|
||||
/*AlliesItems0 get_wars_war_id_ally
|
||||
//
|
||||
// ally object
|
||||
swagger:model AlliesItems0
|
||||
*/
|
||||
type AlliesItems0 struct {
|
||||
|
||||
// get_wars_war_id_alliance_id
|
||||
//
|
||||
// Alliance ID if and only if this ally is an alliance
|
||||
AllianceID int32 `json:"alliance_id,omitempty"`
|
||||
|
||||
// get_wars_war_id_corporation_id
|
||||
//
|
||||
// Corporation ID if and only if this ally is a corporation
|
||||
CorporationID int32 `json:"corporation_id,omitempty"`
|
||||
}
|
||||
|
|
191
main.go
191
main.go
|
@ -12,14 +12,17 @@ import (
|
|||
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/leekchan/accounting"
|
||||
|
||||
ESI "client"
|
||||
ESIPlanetaryInteraction "client/planetary_interaction"
|
||||
ESISkills "client/skills"
|
||||
ESIUniverse "client/universe"
|
||||
ESIWallet "client/wallet"
|
||||
|
||||
"database/sql"
|
||||
|
||||
|
@ -44,6 +47,7 @@ var (
|
|||
"esi-skills.read_skillqueue.v1",
|
||||
"esi-skills.read_skills.v1",
|
||||
"esi-planets.manage_planets.v1",
|
||||
"esi-wallet.read_character_wallet.v1",
|
||||
},
|
||||
Endpoint: oauth2.Endpoint{
|
||||
AuthURL: "https://login.eveonline.com/oauth/authorize/",
|
||||
|
@ -58,6 +62,15 @@ var ctx = context.Background()
|
|||
var messages = make(chan *oauth2.Token)
|
||||
|
||||
func main() {
|
||||
logfilename := fmt.Sprintf("log-%s.log", time.Now().Format("2006-01-02_15_04_05"))
|
||||
f, err := os.OpenFile(logfilename, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
||||
if err != nil {
|
||||
log.Fatalf("error opening file: %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
log.SetOutput(f)
|
||||
|
||||
cToken := getDatabaseToken()
|
||||
|
||||
if cToken == nil {
|
||||
|
@ -75,12 +88,14 @@ func main() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
fmt.Printf("Name: %s\n", m.CharacterName)
|
||||
fmt.Printf("Id: %d\n", m.CharacterID)
|
||||
|
||||
//getCharacterPlanets(client, m)
|
||||
printCharacterInformation(client, m)
|
||||
|
||||
getCharacterSkillQueue(client, m)
|
||||
fmt.Printf("\n\nPlanetary interaction\n")
|
||||
printCharacterPlanets(client, m)
|
||||
|
||||
fmt.Printf("\n\nSkill queue\n")
|
||||
printCharacterSkillQueue(client, m)
|
||||
}
|
||||
|
||||
func getCharacterInfo(client *http.Client) (*Character, error) {
|
||||
|
@ -103,7 +118,7 @@ func getCharacterInfo(client *http.Client) (*Character, error) {
|
|||
return &m, nil
|
||||
}
|
||||
|
||||
func getCharacterSkillQueue(client *http.Client, m *Character) {
|
||||
func printCharacterSkillQueue(client *http.Client, m *Character) {
|
||||
|
||||
// create the transport
|
||||
transport := httptransport.NewWithClient("esi.tech.ccp.is", "/latest", []string{"https"}, client)
|
||||
|
@ -119,50 +134,20 @@ func getCharacterSkillQueue(client *http.Client, m *Character) {
|
|||
|
||||
skillqueue := skillqueueresp.Payload
|
||||
|
||||
skillNames := make(map[int32]string)
|
||||
skillMissingNames := make(map[int32]string)
|
||||
now := time.Now()
|
||||
|
||||
snIds := make([]int32, 0, len(skillqueue))
|
||||
for _, skill := range skillqueue {
|
||||
skillName := getCachedData(fmt.Sprintf("%d.name", *skill.SkillID))
|
||||
if skillName != "" {
|
||||
skillNames[*skill.SkillID] = skillName
|
||||
} else {
|
||||
skillMissingNames[*skill.SkillID] = ""
|
||||
}
|
||||
}
|
||||
|
||||
if len(skillMissingNames) > 0 {
|
||||
snIds := make([]int32, 0, len(skillMissingNames))
|
||||
for skillID := range skillMissingNames {
|
||||
snIds = append(snIds, skillID)
|
||||
}
|
||||
|
||||
var sncallParamBody ESIUniverse.PostUniverseNamesBody
|
||||
sncallParamBody.Ids = snIds
|
||||
|
||||
sncallParam := ESIUniverse.NewPostUniverseNamesParams()
|
||||
sncallParam.SetIds(sncallParamBody)
|
||||
|
||||
skillNameResp, skillNameErr := swaggerclient.Universe.PostUniverseNames(sncallParam)
|
||||
if skillNameErr != nil {
|
||||
log.Fatalf("Error on PostUniverseNames\n%s\n", skillNameErr)
|
||||
}
|
||||
|
||||
for _, searchResult := range skillNameResp.Payload {
|
||||
itemName := searchResult.Name
|
||||
itemID := searchResult.ID
|
||||
|
||||
putCacheData(fmt.Sprintf("%d.name", *itemID), *itemName)
|
||||
|
||||
skillNames[*itemID] = *itemName
|
||||
}
|
||||
snIds = append(snIds, *skill.SkillID)
|
||||
}
|
||||
skillNames := getUniverseNames(swaggerclient, &snIds)
|
||||
|
||||
for _, skill := range skillqueue {
|
||||
// element is the element from someSlice for where we are
|
||||
name := skillNames[*skill.SkillID]
|
||||
|
||||
finishDate := time.Time(skill.FinishDate)
|
||||
duration := finishDate.Sub(now)
|
||||
|
||||
// see https://github.com/ccpgames/esi-issues/issues/113
|
||||
// The queue is only updated when the user logs in with the client
|
||||
|
@ -171,15 +156,47 @@ func getCharacterSkillQueue(client *http.Client, m *Character) {
|
|||
continue
|
||||
}
|
||||
|
||||
fmt.Printf("% 35s - level %d - %s to %s\n",
|
||||
fmt.Printf("% 35s - L%d - %s to %s (% 4dd %02d:%02d)\n",
|
||||
name,
|
||||
*skill.FinishedLevel,
|
||||
time.Time(skill.StartDate).Format("_2 Jan 2006, 15:04"),
|
||||
time.Time(skill.FinishDate).Format("_2 Jan 2006, 15:04"))
|
||||
time.Time(skill.FinishDate).Format("_2 Jan 2006, 15:04"),
|
||||
int32(duration.Hours())/24,
|
||||
int32(duration.Minutes())/60%24,
|
||||
int32(duration.Minutes())%60,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
func getCharacterPlanets(client *http.Client, m *Character) {
|
||||
func printCharacterInformation(client *http.Client, m *Character) {
|
||||
// create the transport
|
||||
transport := httptransport.NewWithClient("esi.tech.ccp.is", "/latest", []string{"https"}, client)
|
||||
|
||||
// create the API client, with the transport
|
||||
swaggerclient := ESI.New(transport, strfmt.Default)
|
||||
|
||||
callParam := ESIWallet.NewGetCharactersCharacterIDWalletsParams()
|
||||
callParam.WithCharacterID(m.CharacterID)
|
||||
|
||||
esiresponse, esierr := swaggerclient.Wallet.GetCharactersCharacterIDWallets(callParam, nil)
|
||||
if esierr != nil {
|
||||
log.Fatalf("Got error on GetCharactersCharacterIDWallets: %s", esierr)
|
||||
}
|
||||
|
||||
wallets := esiresponse.Payload
|
||||
|
||||
ac := accounting.Accounting{Symbol: "ISK ", Precision: 0, Thousand: "'"}
|
||||
|
||||
fmt.Printf("Name: %s\n", m.CharacterName)
|
||||
|
||||
for _, wallet := range wallets {
|
||||
if wallet.Balance > 0 {
|
||||
fmt.Printf("Wallet: %s\n", ac.FormatMoney(wallet.Balance/100))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func printCharacterPlanets(client *http.Client, m *Character) {
|
||||
|
||||
// create the transport
|
||||
transport := httptransport.NewWithClient("esi.tech.ccp.is", "/latest", []string{"https"}, client)
|
||||
|
@ -192,40 +209,58 @@ func getCharacterPlanets(client *http.Client, m *Character) {
|
|||
|
||||
planets := esiresponse.Payload
|
||||
|
||||
for _, planet := range planets {
|
||||
// element is the element from someSlice for where we are
|
||||
name := "UNK-PLANET"
|
||||
now := time.Now()
|
||||
|
||||
snIds := make([]int32, 0, len(planets))
|
||||
for _, planet := range planets {
|
||||
snIds = append(snIds, *planet.PlanetID)
|
||||
}
|
||||
planetNames := getUniverseNames(swaggerclient, &snIds)
|
||||
|
||||
for _, planet := range planets {
|
||||
pcallParam := ESIPlanetaryInteraction.NewGetCharactersCharacterIDPlanetsPlanetIDParams()
|
||||
pcallParam.WithCharacterID(m.CharacterID).WithPlanetID(*planet.PlanetID)
|
||||
|
||||
solarSystemInfo := getSolarSystemInformation(swaggerclient, *planet.SolarSystemID)
|
||||
planetName := planetNames[*planet.PlanetID]
|
||||
|
||||
fmt.Printf(" %s (%d) %s - %s, level %d with %d structures - Updated %s\n",
|
||||
name, *planet.PlanetID,
|
||||
fmt.Printf(" Planet %s, %s - %s, level %d with %d structures - Updated %s\n",
|
||||
planetName,
|
||||
solarSystemInfo.SolarSystemName,
|
||||
*planet.PlanetType,
|
||||
*planet.UpgradeLevel, *planet.NumPins,
|
||||
planet.LastUpdate,
|
||||
)
|
||||
|
||||
pesiresponse, _ := swaggerclient.PlanetaryInteraction.GetCharactersCharacterIDPlanetsPlanetID(pcallParam, nil)
|
||||
pesiresponse, pesierr := swaggerclient.PlanetaryInteraction.GetCharactersCharacterIDPlanetsPlanetID(pcallParam, nil)
|
||||
if pesierr != nil {
|
||||
log.Fatalf("Error on CharactersCharacterIDPlanetsPlanetID: %s", pesierr)
|
||||
}
|
||||
for _, pin := range pesiresponse.Payload.Pins {
|
||||
if pin.ExtractorDetails != nil {
|
||||
fmt.Printf(" Extractor - cycle started %s, %d per cycle, cycles of %ds\n",
|
||||
pin.LastCycleStart,
|
||||
*pin.ExtractorDetails.QtyPerCycle,
|
||||
status := "✘"
|
||||
if time.Time(pin.ExpiryTime).After(time.Now()) {
|
||||
status = "✔"
|
||||
}
|
||||
|
||||
duration := time.Time(pin.ExpiryTime).Sub(now)
|
||||
|
||||
fmt.Printf(" %s Extractor % 5ds cycle, % 6d per cycle, expires %s (%02d:%02d)\n",
|
||||
status,
|
||||
*pin.ExtractorDetails.CycleTime,
|
||||
*pin.ExtractorDetails.QtyPerCycle,
|
||||
time.Time(pin.ExpiryTime).Format("_2 Jan 2006, 15:04"),
|
||||
int32(duration.Minutes())/60,
|
||||
int32(duration.Minutes())%60,
|
||||
)
|
||||
} else if pin.SchematicID != 0 {
|
||||
|
||||
// Get the schematic from ESI and cache it
|
||||
schematicInfo := getSchematicsInformation(swaggerclient, pin.SchematicID)
|
||||
|
||||
fmt.Printf(" Factory - cycle started %s, producing %s, cycles of %ds\n",
|
||||
pin.LastCycleStart,
|
||||
schematicInfo.SchematicName,
|
||||
fmt.Printf(" ✔ Factory % 5ds cycle, %s\n",
|
||||
schematicInfo.CycleTime,
|
||||
schematicInfo.SchematicName,
|
||||
)
|
||||
} else {
|
||||
/*
|
||||
|
@ -240,6 +275,47 @@ func getCharacterPlanets(client *http.Client, m *Character) {
|
|||
}
|
||||
}
|
||||
|
||||
func getUniverseNames(swaggerclient *ESI.App, itemIds *[]int32) map[int32]string {
|
||||
itemNames := make(map[int32]string)
|
||||
itemMissingNames := make(map[int32]string)
|
||||
|
||||
for _, itemID := range *itemIds {
|
||||
itemName := getCachedData(fmt.Sprintf("%d.name", itemID))
|
||||
if itemName != "" {
|
||||
itemNames[itemID] = itemName
|
||||
} else {
|
||||
itemMissingNames[itemID] = ""
|
||||
}
|
||||
}
|
||||
|
||||
if len(itemMissingNames) > 0 {
|
||||
snIds := make([]int32, 0, len(itemMissingNames))
|
||||
for itemID := range itemMissingNames {
|
||||
snIds = append(snIds, itemID)
|
||||
}
|
||||
|
||||
sncallParam := ESIUniverse.NewPostUniverseNamesParams()
|
||||
sncallParam.WithIds(snIds)
|
||||
|
||||
skillNameResp, skillNameErr := swaggerclient.Universe.PostUniverseNames(sncallParam)
|
||||
if skillNameErr != nil {
|
||||
log.Printf("Error on PostUniverseNames on items: %v\n", snIds)
|
||||
log.Printf("Error on PostUniverseNames: %s\n", skillNameErr)
|
||||
} else {
|
||||
for _, searchResult := range skillNameResp.Payload {
|
||||
itemName := searchResult.Name
|
||||
itemID := searchResult.ID
|
||||
|
||||
putCacheData(fmt.Sprintf("%d.name", *itemID), *itemName)
|
||||
|
||||
itemNames[*itemID] = *itemName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return itemNames
|
||||
}
|
||||
|
||||
// SolarSystemInfo - Structure to store and cache the Solar System information from ESI
|
||||
type SolarSystemInfo struct {
|
||||
SolarSystemName string
|
||||
|
@ -311,7 +387,7 @@ func getNewAuthorizationToken() *oauth2.Token {
|
|||
http.HandleFunc("/", handleLogin)
|
||||
http.HandleFunc("/callback", handleAuthenticationCallback)
|
||||
go func() {
|
||||
log.Println("No available token. Please visit http://localhost:3000 to renew.")
|
||||
fmt.Println("No available token. Please visit http://localhost:3000 to renew.")
|
||||
http.ListenAndServe(":3000", nil)
|
||||
}()
|
||||
|
||||
|
@ -367,6 +443,7 @@ func handleAuthenticationCallback(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
log.Printf("Refresh token is %s\n", token.RefreshToken)
|
||||
|
||||
putCacheData("accessToken", token.AccessToken)
|
||||
putCacheData("refreshToken", token.RefreshToken)
|
||||
|
||||
messages <- token
|
||||
|
@ -434,9 +511,11 @@ func putCacheData(key string, value string) {
|
|||
|
||||
func getDatabaseToken() *oauth2.Token {
|
||||
refreshToken := getCachedData("refreshToken")
|
||||
accessToken := getCachedData("accessToken")
|
||||
|
||||
token := new(oauth2.Token)
|
||||
token.RefreshToken = refreshToken
|
||||
token.AccessToken = accessToken
|
||||
token.TokenType = "Bearer"
|
||||
|
||||
return token
|
||||
|
|
Reference in a new issue