models

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2017 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Status      int    `json:"Status"` //httpstatus
	Error       int    `json:"Error"`  //-1: unknown, -2: ecxeption, 1:ok, there are no 0's
	Description string `json:"Description"`
}

Response to client

type ResponseData

type ResponseData struct {
	Data Response `json:"Response"`
}

ResponseData encapsulates a json response.

type User

type User struct {
	UserName string `json:"UserName"`
	Email    string `json:"Email"`
	Password string `json:"Password"`
}

User represents the structure of our resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL