no need of a required url base 64
This commit is contained in:
		@@ -31,8 +31,8 @@ func (m PeerState) EnumIndex() int {
 | 
			
		||||
// Peer is a struct that represents a peer
 | 
			
		||||
type Peer struct {
 | 
			
		||||
	utils.AbstractObject
 | 
			
		||||
	Url             string          `json:"url,omitempty" bson:"url,omitempty" validate:"required,base64url"` // Url is the URL of the peer (base64url)
 | 
			
		||||
	PublicKey       string          `json:"public_key,omitempty" bson:"public_key,omitempty"`                 // PublicKey is the public key of the peer
 | 
			
		||||
	Url             string          `json:"url,omitempty" bson:"url,omitempty" validate:"required"` // Url is the URL of the peer (base64url)
 | 
			
		||||
	PublicKey       string          `json:"public_key,omitempty" bson:"public_key,omitempty"`       // PublicKey is the public key of the peer
 | 
			
		||||
	Services        map[string]int  `json:"services,omitempty" bson:"services,omitempty"`
 | 
			
		||||
	State           PeerState       `json:"state" bson:"state" default:"0"`
 | 
			
		||||
	FailedExecution []PeerExecution `json:"failed_execution" bson:"failed_execution"` // FailedExecution is the list of failed executions, to be retried
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user