rest

package
v0.0.0-...-f7ec041 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: AGPL-3.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidScopeResponse

func InvalidScopeResponse(requiredScope string, c echo.Context) error

InvalidScopeResponse prints a JSON response and returns a error asserting that the required scope is missing from the accepted scopes

func IsGranted

func IsGranted(scope string, c echo.Context) bool

IsGranted returns true if the c.Get("scopes") slice contains the scope or there's a compatible scope into the slice

func Project

func Project(projectID string, c echo.Context) (*nerdz.Project, error)

Project extract "id" from the url parameter, parse it and returns the Project if the "me" (in the context) user is allowed to see it. Otherwise returns an error

func SelectFields

func SelectFields(in interface{}, c echo.Context) error

SelectFields changes the json part of struct tags of in interface{} (that must by a struct or a slice of structs with the right json tags) Selecting only specified fields (in the query string "fields" value). If "fields" is not present the input parameter is unchanged returns error when there's a problem with some required field. otherwise returns nil and ends the request, printing the c.JSON of the input value, with its field selected

func User

func User(userID string, c echo.Context) (*nerdz.User, error)

User extract "id" from the url parameter, parse it and returns the User if the "me" (in the context) user is allowed to see it. Otherwise returns an error

Types

type CommentID

type CommentID struct {
	// a Cid is the Comment ID
	//
	// in: path
	// required: true
	Cid uint64 `json:"cid"`
}

CommentID is the ID of the comment

swagger:parameters GetUserPostComment EditUserPostComment DeleteUserPostComment GetUserPostCommentsVotes NewUserPostCommentVote DeleteMePostComment DeleteMePost EditMeComment GetMePostCommentsVotes NewMePostCommentVote GetProjectPostComment EditProjectPostComment DeleteProjectPostComment GetProjectPostCommentsVotes NewProjectPostCommentVote GetMePostComment

type ID

type ID struct {
	// a ID is the User ID
	//
	// in: path
	// required: true
	ID uint64 `json:"id"`
}

ID is the ID of the referenced board, user or project

swagger:parameters GetUserPosts GetUserPost NewUserPost DeleteUserPost EditUserPost GetUserPostComments GetUserPostComment NewUserPostComment EditUserPostComment DeleteUserPostComment GetUserInfo GetUserFriends GetUserFollowers GetUserFollowing GetProjectFollowing GetWhitelist GetWhitelisting GetBlacklist GetBlacklisting GetUserPostVotes NewUserPostVote GetUserPostCommentsVotes NewUserPostCommentVote GetUserPostBookmarks NewUserPostBookmark DeleteUserPostBookmark GetUserPostLurks NewUserPostLurk DeleteUserPostLurk GetUserPostLock NewUserPostLock DeleteUserPostLock NewUserNewPostUserLock DeleteUserPostUserLock getProjectPosts getProjectPost NewProjectPost DeleteProjectPost EditProjectPost getProjectPostComments GetProjectPostComment NewProjectPostComment EditProjectPostComment DeleteProjectPostComment getProjectInfo getProjectMembers getProjectFollowers GetProjectPostVotes NewProjectPostVote GetProjectPostCommentsVotes NewProjectPostCommentVote GetProjectPostBookmarks NewProjectPostBookmark DeleteProjectPostBookmark GetProjectPostLurks NewProjectPostLurk DeleteProjectPostLurk GetProjectPostLock NewProjectPostLock DeleteProjectPostLock NewUserNewPostProjectLock DeleteProjectPostUserLock

type Me

type Me struct {
	//  in: body
	Body struct {
		Data struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string   `json:"biography"`
				Birthday  string   `json:"birthday"`
				Gravatar  string   `json:"gravatar"`
				ID        int64    `json:"id"`
				Interests []string `json:"interests"`
				Name      string   `json:"name"`
				Nation    string   `json:"nation"`
				Online    bool     `json:"online"`
				Quotes    []string `json:"quotes"`
				Surname   string   `json:"surname"`
				Timezone  string   `json:"timezone"`
				Username  string   `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

Me is a response

swagger:response Me

type MeBlacklist

type MeBlacklist struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeBlacklist is a response

swagger:response MeBlacklist

type MeBlacklisting

type MeBlacklisting struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeBlacklisting is a response

swagger:response MeBlacklisting

type MeFollowers

type MeFollowers struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeFollowers is a response

swagger:response MeFollowers

type MeFollowingProjects

type MeFollowingProjects struct {
	// in: body
	Body struct {
		Data []struct {
			Info struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"info"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeFollowingProjects is a response

swagger:response MeFollowingProjects

type MeFollowingUsers

type MeFollowingUsers struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeFollowingUsers is a response

swagger:response MeFollowingUsers

type MeFriends

type MeFriends struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeFriends is a response

swagger:response MeFriends

type MeHome

type MeHome struct {
	// in: body
	Body struct {
		Data []struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeHome is a response

swagger:response MeHome

type MePms

type MePms struct {
	// in: body
	Body struct {
		Data []struct {
			From struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			LastMessage string `json:"lastMessage"`
			Time        string `json:"time"`
			Timestamp   int64  `json:"timestamp"`
			To          struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			ToRead bool `json:"toRead"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePms is a response

swagger:response MePms

type MePmsOther

type MePmsOther struct {
	// in: body
	Body struct {
		Data []struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Pmid      int64  `json:"pmid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			ToRead bool `json:"toRead"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePmsOther is a response

swagger:response MePmsOther

type MePmsOtherPmid

type MePmsOtherPmid struct {
	// in: body
	Body struct {
		Data struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Pmid      int64  `json:"pmid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			ToRead bool `json:"toRead"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePmsOtherPmid is a response

swagger:response MePmsOtherPmid

type MePosts

type MePosts struct {
	// in: body
	Body struct {
		Data []struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePosts is a response

swagger:response MePosts

type MePostsPid

type MePostsPid struct {
	// in: body
	Body struct {
		Data struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePostsPid is a response

swagger:response MePostsPid

type MePostsPidBookmarks

type MePostsPidBookmarks struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

MePostsPidBookmarks is a response

swagger:response MePostsPidBookmarks

type MePostsPidComments

type MePostsPidComments struct {
	// in: body
	Body struct {
		Data []struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hcid      int64  `json:"hcid"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePostsPidComments is a response

swagger:response MePostsPidComments

type MePostsPidCommentsCid

type MePostsPidCommentsCid struct {
	// in: body
	Body struct {
		Data struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hcid      int64  `json:"hcid"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePostsPidCommentsCid is a response

swagger:response MePostsPidCommentsCid

type MePostsPidCommentsCidVotes

type MePostsPidCommentsCidVotes struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

MePostsPidCommentsCidVotes is a response

swagger:response MePostsPidCommentsCidVotes

type MePostsPidLocks

type MePostsPidLocks struct {
	// in: body
	Body struct {
		Data []struct {
			Counter   int64  `json:"counter"`
			Hpid      int64  `json:"hpid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			User      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"user"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MePostsPidLocks is a response

swagger:response MePostsPidLocks

type MePostsPidLurks

type MePostsPidLurks struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

MePostsPidLurks is a response

swagger:response MePostsPidLurks

type MePostsPidVotes

type MePostsPidVotes struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

MePostsPidVotes is a response

swagger:response MePostsPidVotes

type MeWhitelist

type MeWhitelist struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string   `json:"biography"`
				Birthday  string   `json:"birthday"`
				Gravatar  string   `json:"gravatar"`
				ID        int64    `json:"id"`
				Interests []string `json:"interests"`
				Name      string   `json:"name"`
				Nation    string   `json:"nation"`
				Online    bool     `json:"online"`
				Quotes    []string `json:"quotes"`
				Surname   string   `json:"surname"`
				Timezone  string   `json:"timezone"`
				Username  string   `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeWhitelist is a response

swagger:response MeWhitelist

type MeWhitelisting

type MeWhitelisting struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

MeWhitelisting is a response

swagger:response MeWhitelisting

type NewMessage

type NewMessage struct {
	// a Message is a string that contains a new message
	//
	// in: body
	Message string `json:"message"`
	Lang    string `json:"lang,omitempty"`
}

NewMessage represents a new message from the current user

swagger:parameters addMessage

type NewVote

type NewVote struct {
	// a Vote has value in [-1, 0, 1]
	//
	// in: body
	Vote int8 `json:"vote"`
}

NewVote represent a new vote from the current user

swagger:parameters addVote

type OtherID

type OtherID struct {
	// Other is the ID of the other user
	//
	// in:path
	// required:true
	Other uint64 `json:"other"`
}

OtherID is the ID of the other user

swagger:parameters getMeConversation DeleteMePms GetMePm NewMePm EditMePm DeleteMePm

type PmID

type PmID struct {
	// a PMID is the ID of the PM
	//
	// in:path
	// required:true
	Pmid uint64 `json:"pmid"`
}

PmID is the ID of the PM

swagger:parameters GetMePm EditMePm DeleteMePm

type PostID

type PostID struct {
	// a Pid is the post id
	//
	// in: path
	// required: true
	Pid uint64 `json:"pid"`
}

PostID is the post ID swagger parameter

swagger:parameters GetUserPost DeleteUserPost EditUserPost GetUserPostComments GetUserPostComment NewUserPostComment EditUserPostComment DeleteUserPostComment GetUserPostVotes NewUserPostVote GetUserPostCommentsVotes NewUserPostCommentVote GetUserPostBookmarks NewUserPostBookmark DeleteUserPostBookmark GetUserPostLurks NewUserPostLurk DeleteUserPostLurk GetUserPostLock NewUserPostLock DeleteUserPostLock NewUserNewPostUserLock DeleteUserPostUserLock EditMePost DeleteMePostComment DeleteMePost EditMeComment NewMePostComment GetMePostVotes NewMePostVote GetMePostCommentsVotes NewMePostCommentVote GetMePostBookmarks NewMePostBookmark DeleteMePostBookmark GetMePostLurks NewMePostLurk DeleteMePostLurk GetMePostLock NewMePostLock DeleteMePostLock NewMeNewPostUserLock DeleteMePostUserLock getProjectPost DeleteProjectPost EditProjectPost getProjectPostComments GetProjectPostComment NewProjectPostComment EditProjectPostComment DeleteProjectPostComment GetProjectPostVotes NewProjectPostVote GetProjectPostCommentsVotes NewProjectPostCommentVote GetProjectPostBookmarks NewProjectPostBookmark DeleteProjectPostBookmark GetProjectPostLurks NewProjectPostLurk DeleteProjectPostLurk GetProjectPostLock NewProjectPostLock DeleteProjectPostLock NewUserNewPostProjectLock DeleteProjectPostUserLock GetMePostComment GetMePostComments GetMePost

type ProjectInfo

type ProjectInfo struct {
	// The general information of the project
	// in: body
	Info *nerdz.InfoTO `json:"info"`
}

ProjectInfo represents the project information

swagger:response projectInfo

func GetProjectInfo

func GetProjectInfo(project *nerdz.Project) *ProjectInfo

GetProjectInfo returns the *ProjectInfo of the project

func GetProjectsInfo

func GetProjectsInfo(projects []*nerdz.Project) (projectsInfo []*ProjectInfo)

GetProjectsInfo returns a slice of *Interfations

type ProjectsId

type ProjectsId struct {
	// in: body
	Body struct {
		Data struct {
			Board  string `json:"board"`
			Closed bool   `json:"closed"`
			ID     int64  `json:"id"`
			Image  string `json:"image"`
			Name   string `json:"name"`
			Owner  struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"owner"`
			Type     string `json:"type"`
			Username string `json:"username"`
			Website  string `json:"website"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsId is a response

swagger:response ProjectsId

type ProjectsIdFollowers

type ProjectsIdFollowers struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string   `json:"biography"`
				Birthday  string   `json:"birthday"`
				Gravatar  string   `json:"gravatar"`
				ID        int64    `json:"id"`
				Interests []string `json:"interests"`
				Name      string   `json:"name"`
				Nation    string   `json:"nation"`
				Online    bool     `json:"online"`
				Quotes    []string `json:"quotes"`
				Surname   string   `json:"surname"`
				Timezone  string   `json:"timezone"`
				Username  string   `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdFollowers is a response

swagger:response ProjectsIdFollowers

type ProjectsIdMembers

type ProjectsIdMembers struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdMembers is a response

swagger:response ProjectsIdMembers

type ProjectsIdPosts

type ProjectsIdPosts struct {
	// in: body
	Body struct {
		Data []struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPosts is a response

swagger:response ProjectsIdPosts

type ProjectsIdPostsPid

type ProjectsIdPostsPid struct {
	// in: body
	Body struct {
		Data struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPostsPid is a response

swagger:response ProjectsIdPostsPid

type ProjectsIdPostsPidBookmarks

type ProjectsIdPostsPidBookmarks struct {
	// in: body
	Body struct {
		Data []struct {
			Counter int64 `json:"counter"`
			From    struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPostsPidBookmarks is a response

swagger:response ProjectsIdPostsPidBookmarks

type ProjectsIdPostsPidComments

type ProjectsIdPostsPidComments struct {
	// in: body
	Body struct {
		Data []struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hcid      int64  `json:"hcid"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPostsPidComments is a response

swagger:response ProjectsIdPostsPidComments

type ProjectsIdPostsPidCommentsCid

type ProjectsIdPostsPidCommentsCid struct {
	// in: body
	Body struct {
		Data struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hcid      int64  `json:"hcid"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPostsPidCommentsCid is a response

swagger:response ProjectsIdPostsPidCommentsCid

type ProjectsIdPostsPidCommentsCidVotes

type ProjectsIdPostsPidCommentsCidVotes struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

ProjectsIdPostsPidCommentsCidVotes is a response

swagger:response ProjectsIdPostsPidCommentsCidVotes

type ProjectsIdPostsPidLocks

type ProjectsIdPostsPidLocks struct {
	// in: body
	Body struct {
		Data []struct {
			Counter   int64  `json:"counter"`
			Hpid      int64  `json:"hpid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			User      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"user"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPostsPidLocks is a response

swagger:response ProjectsIdPostsPidLocks

type ProjectsIdPostsPidLurks

type ProjectsIdPostsPidLurks struct {
	// in: body
	Body struct {
		Data []struct {
			Counter int64 `json:"counter"`
			From    struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

ProjectsIdPostsPidLurks is a response

swagger:response ProjectsIdPostsPidLurks

type ProjectsIdPostsPidVotes

type ProjectsIdPostsPidVotes struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

ProjectsIdPostsPidVotes is a response

swagger:response ProjectsIdPostsPidVotes

type Response

type Response struct {
	// The API response data
	// in: body
	Data interface{} `json:"data"`
	// The API generated message
	Message string `json:"message"`
	// The human generated message, easy to understand
	HumanMessage string `json:"humanMessage"`
	// Status Code of the request
	Status uint `json:"status"`
	// Success indicates if the requested succeded
	Success bool `json:"success"`
}

Response represents the response format of the API

swagger:response apiResponse

type Target

type Target struct {
	// a Target is the ID of the User referenced by the operation
	//
	// in: path
	// required: true
	Target uint64 `json:"target"`
}

Target is the ID of the User referenced by the operation

swagger:parameters NewUserNewPostUserLock DeleteUserPostUserLock NewMeNewPostUserLock DeleteMePostUserLock NewMeFollowing DeleteMeFollowing NewProjectFollowing DeleteProjectFollowing NewWhitelisted DeleteWhitelisted NewBlacklisted DeleteBlacklisted NewUserNewPostProjectLock DeleteProjectPostUserLock

type UserInfo

type UserInfo struct {
	// The general information of the User
	// in: body
	Info *nerdz.InfoTO `json:"info"`
	// The contact information of the User
	// in: body
	Contacts *nerdz.ContactInfoTO `json:"contacts"`
	// The personal information of the user
	// in: body
	Personal *nerdz.PersonalInfoTO `json:"personal"`
}

UserInfo represents the user information

swagger:response userInfo

func GetUserInfo

func GetUserInfo(user *nerdz.User) *UserInfo

GetUserInfo returns the *UserInfo of the user

func GetUsersInfo

func GetUsersInfo(users []*nerdz.User) (usersInfo []*UserInfo)

GetUsersInfo returns a slice of *Interfations

type UsersId

type UsersId struct {
	// in: body
	Body struct {
		Data struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string   `json:"biography"`
				Birthday  string   `json:"birthday"`
				Gravatar  string   `json:"gravatar"`
				ID        int64    `json:"id"`
				Interests []string `json:"interests"`
				Name      string   `json:"name"`
				Nation    string   `json:"nation"`
				Online    bool     `json:"online"`
				Quotes    []string `json:"quotes"`
				Surname   string   `json:"surname"`
				Timezone  string   `json:"timezone"`
				Username  string   `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersId is a response

swagger:response UsersId

type UsersIdBlacklist

type UsersIdBlacklist struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdBlacklist is a response

swagger:response UsersIdBlacklist

type UsersIdBlacklisting

type UsersIdBlacklisting struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdBlacklisting is a response

swagger:response UsersIdBlacklisting

type UsersIdFollowers

type UsersIdFollowers struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdFollowers is a response

swagger:response UsersIdFollowers

type UsersIdFollowingProjects

type UsersIdFollowingProjects struct {
	// in: body
	Body struct {
		Data []struct {
			Info struct {
				Board  string `json:"board"`
				Closed bool   `json:"closed"`
				ID     int64  `json:"id"`
				Image  string `json:"image"`
				Name   string `json:"name"`
				Owner  struct {
					Board    string      `json:"board"`
					Closed   bool        `json:"closed"`
					ID       int64       `json:"id"`
					Image    string      `json:"image"`
					Name     string      `json:"name"`
					Owner    interface{} `json:"owner"`
					Type     string      `json:"type"`
					Username string      `json:"username"`
					Website  string      `json:"website"`
				} `json:"owner"`
				Type     string `json:"type"`
				Username string `json:"username"`
				Website  string `json:"website"`
			} `json:"info"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdFollowingProjects is a response

swagger:response UsersIdFollowingProjects

type UsersIdFollowingUsers

type UsersIdFollowingUsers struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdFollowingUsers is a response

swagger:response UsersIdFollowingUsers

type UsersIdFriends

type UsersIdFriends struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdFriends is a response

swagger:response UsersIdFriends

type UsersIdPosts

type UsersIdPosts struct {
	// in: body
	Body struct {
		Data []struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdPosts is a response

swagger:response UsersIdPosts

type UsersIdPostsPid

type UsersIdPostsPid struct {
	// in: body
	Body struct {
		Data struct {
			Bookmarkers int64 `json:"bookmarkers"`
			CanBookmark bool  `json:"canBookmark"`
			CanComment  bool  `json:"canComment"`
			CanDelete   bool  `json:"canDelete"`
			CanEdit     bool  `json:"canEdit"`
			CanLurk     bool  `json:"canLurk"`
			Closed      bool  `json:"closed"`
			Comments    int64 `json:"comments"`
			From        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Lurkers   int64  `json:"lurkers"`
			Message   string `json:"message"`
			News      bool   `json:"news"`
			Pid       int64  `json:"pid"`
			Rate      int64  `json:"rate"`
			Revisions int64  `json:"revisions"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdPostsPid is a response

swagger:response UsersIdPostsPid

type UsersIdPostsPidBookmarks

type UsersIdPostsPidBookmarks struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

UsersIdPostsPidBookmarks is a response

swagger:response UsersIdPostsPidBookmarks

type UsersIdPostsPidComments

type UsersIdPostsPidComments struct {
	// in: body
	Body struct {
		Data []struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hcid      int64  `json:"hcid"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdPostsPidComments is a response

swagger:response UsersIdPostsPidComments

type UsersIdPostsPidCommentsCid

type UsersIdPostsPidCommentsCid struct {
	// in: body
	Body struct {
		Data struct {
			CanDelete bool `json:"canDelete"`
			CanEdit   bool `json:"canEdit"`
			From      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"from"`
			Hcid      int64  `json:"hcid"`
			Hpid      int64  `json:"hpid"`
			Lang      string `json:"lang"`
			Message   string `json:"message"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			To        struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"to"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdPostsPidCommentsCid is a response

swagger:response UsersIdPostsPidCommentsCid

type UsersIdPostsPidCommentsCidVotes

type UsersIdPostsPidCommentsCidVotes struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

UsersIdPostsPidCommentsCidVotes is a response

swagger:response UsersIdPostsPidCommentsCidVotes

type UsersIdPostsPidLocks

type UsersIdPostsPidLocks struct {
	// in: body
	Body struct {
		Data []struct {
			Counter   int64  `json:"counter"`
			Hpid      int64  `json:"hpid"`
			Time      string `json:"time"`
			Timestamp int64  `json:"timestamp"`
			User      struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"user"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdPostsPidLocks is a response

swagger:response UsersIdPostsPidLocks

type UsersIdPostsPidLurks

type UsersIdPostsPidLurks struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

UsersIdPostsPidLurks is a response

swagger:response UsersIdPostsPidLurks

type UsersIdPostsPidVotes

type UsersIdPostsPidVotes struct {
	// in: body
	Body struct {
		Data         []interface{} `json:"data"`
		HumanMessage string        `json:"humanMessage"`
		Message      string        `json:"message"`
		Status       int64         `json:"status"`
		Success      bool          `json:"success"`
	}
}

UsersIdPostsPidVotes is a response

swagger:response UsersIdPostsPidVotes

type UsersIdWhitelist

type UsersIdWhitelist struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string   `json:"biography"`
				Birthday  string   `json:"birthday"`
				Gravatar  string   `json:"gravatar"`
				ID        int64    `json:"id"`
				Interests []string `json:"interests"`
				Name      string   `json:"name"`
				Nation    string   `json:"nation"`
				Online    bool     `json:"online"`
				Quotes    []string `json:"quotes"`
				Surname   string   `json:"surname"`
				Timezone  string   `json:"timezone"`
				Username  string   `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdWhitelist is a response

swagger:response UsersIdWhitelist

type UsersIdWhitelisting

type UsersIdWhitelisting struct {
	// in: body
	Body struct {
		Data []struct {
			Contacts struct {
				Facebook string `json:"facebook"`
				Github   string `json:"github"`
				Jabber   string `json:"jabber"`
				Skype    string `json:"skype"`
				Steam    string `json:"steam"`
				Twitter  string `json:"twitter"`
				Website  string `json:"website"`
				Telegram string `json:"telegram"`
			} `json:"contacts"`
			Info struct {
				Board    string      `json:"board"`
				Closed   bool        `json:"closed"`
				ID       int64       `json:"id"`
				Image    string      `json:"image"`
				Name     string      `json:"name"`
				Owner    interface{} `json:"owner"`
				Type     string      `json:"type"`
				Username string      `json:"username"`
				Website  string      `json:"website"`
			} `json:"info"`
			Personal struct {
				Biography string      `json:"biography"`
				Birthday  string      `json:"birthday"`
				Gravatar  string      `json:"gravatar"`
				ID        int64       `json:"id"`
				Interests interface{} `json:"interests"`
				Name      string      `json:"name"`
				Nation    string      `json:"nation"`
				Online    bool        `json:"online"`
				Quotes    []string    `json:"quotes"`
				Surname   string      `json:"surname"`
				Timezone  string      `json:"timezone"`
				Username  string      `json:"username"`
			} `json:"personal"`
		} `json:"data"`
		HumanMessage string `json:"humanMessage"`
		Message      string `json:"message"`
		Status       int64  `json:"status"`
		Success      bool   `json:"success"`
	}
}

UsersIdWhitelisting is a response

swagger:response UsersIdWhitelisting

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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