Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { jwt.StandardClaims // contains filtered or unexported fields }
Claims for the token
type Response ¶
type Response struct { Ok bool // true -> correcto, false -> error Msg string // mensaje adicional }
Response of the server, it's only another approach we are not using it
type ResponseRegister ¶
type ResponseRegister struct { Ok bool `json:"ok"` Msg string `json:"msg"` PrivateKey string `json:"privateKey"` PublicKey string `json:"publicKey"` Address string `json:"address"` Password string `json:"password"` Contract string `json:"contract"` }
ResponseRegister of the server, it's only another approach we are not using it
type TokenAuthentication ¶
type TokenAuthentication struct { Token string `json:"token" form:"token"` ExpirationTimeForUser string `json:"userExpitationTime" form:"userExpitationTime"` ExpirationTime int64 `json:"expitationTime" form:"expitationTime"` }
TokenAuthentication struct to marshal
type TrustClients ¶
type TrustClients struct { Client string `json:"Address,omitempty"` Trust int `json:"ID,omitempty"` }
TrustClients struct for data
type User ¶
type User struct { ID int `json:"ID,omitempty"` //omitempty : the field is omitted from the object if its value is empty Email string `json:"Email,omitempty"` Password string `json:"Password,omitempty"` Salt string `json:"Salt,omitempty"` LongPassword int `json:"Long,omitempty"` MayusPassword bool `json:"Mayus,omitempty"` SpecialPassword bool `json:"Special,omitempty"` NumbersPassword bool `json:"Numbers,omitempty"` Address string `json:"Address,omitempty"` Contract string `json:"contract"` Fingerprint bool `json:"fingerprint,omitempty"` }
User define una estructura basica de un usuario
type UserAuthentication ¶
type UserAuthentication struct { Email string `json:"email,omitempty"` Password string `json:"password,omitempty"` Fingerprint bool `json:"fingerprint,omitempty"` }
UserAuthentication define una estructura basica de un usuario
Click to show internal directories.
Click to hide internal directories.