Documentation ¶
Index ¶
Constants ¶
View Source
const ( IP_ADDRESS = "172.17.0.2" Localhost = "127.0.0.1" DB = "camembert" PREFECTURES = "prefectures" MEMBERS = "members" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct { Id int `json:"id" bson:"index"` Age int `json:"age" bson:"age"` EyeColor string `json:"eye_color" bson:"eye_color"` Name string `json:"name" bson:"name"` Gender string `json:"gender" bson:"gender"` Company string `json:"company" bson:"company"` Email string `json:"email" bson:"email"` Phone string `json:"phone" bson:"phone"` Address string `json:"address" bson:"address"` About string `json:"about" bson:"about"` Greeting string `json:"greeting" bson:"greeting"` }
func GetMembers ¶
type Prefecture ¶
type Prefecture struct { Id int `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Romaji string `json:"romaji" bson:"romaji"` }
func GetPrefectures ¶
func GetPrefectures() (prefectures []Prefecture, err error)
type Prefectures ¶
type Prefectures struct {
Prefectures []Prefecture `json:"prefectures"`
}
Click to show internal directories.
Click to hide internal directories.