am-i-alive-go

Make it easy for people to check if you are alive or not.
git clone http://git.hanabi.in/repos/am-i-alive-go.git
Log | Files | Refs | README | LICENSE

structs.go (472B)


      1 package JsonStructs
      2 
      3 type ErrJson struct {
      4 	Err string `json:"err"`
      5 }
      6 
      7 type ResJson struct {
      8 	Message  string `json:"message"`
      9 	Lastseen string `json:"lastseen"`
     10 	Unix     int64  `json:"unix"`
     11 }
     12 
     13 type NotStartedJson struct {
     14 	Message string `json:"message"`
     15 }
     16 
     17 type AuthJson struct {
     18 	Auth string `json:"auth"`
     19 }
     20 
     21 type AuthFailErrJson struct {
     22 	Err     string `json:"err"`
     23 	Updated bool   `json:"updated"`
     24 }
     25 
     26 type AuthSuccessJson struct {
     27 	Updated bool `json:"updated"`
     28 }