models: removing host from RegisteredClient (#8)

This commit is contained in:
Dave Hrycyszyn 2019-09-18 13:37:18 +01:00 зафіксовано Jędrzej Stuczyński
джерело 7df13e1bf3
коміт f90aac55a8
4 змінених файлів з 11 додано та 23 видалено

@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-09-17 15:31:06.133223382 +0100 BST m=+0.023419089
// 2019-09-18 13:34:09.321106544 +0100 BST m=+0.021854677
package docs
@ -354,8 +354,8 @@ var doc = `{
"models.HostInfo": {
"type": "object",
"required": [
"pubKey",
"host"
"host",
"pubKey"
],
"properties": {
"host": {
@ -369,9 +369,9 @@ var doc = `{
"models.MixHostInfo": {
"type": "object",
"required": [
"host",
"pubKey",
"layer"
"layer",
"host"
],
"properties": {
"host": {
@ -429,13 +429,9 @@ var doc = `{
"models.RegisteredClient": {
"type": "object",
"required": [
"host",
"pubKey"
],
"properties": {
"host": {
"type": "string"
},
"pubKey": {
"type": "string"
}

@ -344,8 +344,8 @@
"models.HostInfo": {
"type": "object",
"required": [
"pubKey",
"host"
"host",
"pubKey"
],
"properties": {
"host": {
@ -359,9 +359,9 @@
"models.MixHostInfo": {
"type": "object",
"required": [
"host",
"pubKey",
"layer"
"layer",
"host"
],
"properties": {
"host": {
@ -419,13 +419,9 @@
"models.RegisteredClient": {
"type": "object",
"required": [
"host",
"pubKey"
],
"properties": {
"host": {
"type": "string"
},
"pubKey": {
"type": "string"
}

@ -11,8 +11,8 @@ definitions:
pubKey:
type: string
required:
- pubKey
- host
- pubKey
type: object
models.MixHostInfo:
properties:
@ -23,9 +23,9 @@ definitions:
pubKey:
type: string
required:
- host
- pubKey
- layer
- host
type: object
models.MixMetric:
properties:
@ -56,12 +56,9 @@ definitions:
type: object
models.RegisteredClient:
properties:
host:
type: string
pubKey:
type: string
required:
- host
- pubKey
type: object
models.Topology:

@ -26,7 +26,6 @@ type Presence struct {
// RegisteredClient holds information about client registered at a provider
type RegisteredClient struct {
Host string `json:"host" binding:"required"`
PubKey string `json:"pubKey" binding:"required"`
}