http

package
v0.0.0-...-6110840 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatData

type ChatData struct {
	ID   string `json:"id"`
	Chat string `json:"chat"`
}

type HealthResponse

type HealthResponse struct {
	Status    string     `json:"status"`
	Mysql     string     `json:"mysql"`
	Redis     string     `json:"redis"`
	CreatedAt *time.Time `json:"check_at"`
}

HealthResponse Types

type ProducerRequest

type ProducerRequest struct {
	Room string    `json:"room"`
	Data *ChatData `json:"data"`
}

ProducerRequest ...

type ProducerResponse

type ProducerResponse struct {
	Offset int64  `json:"offset"`
	ID     string `json:"ID"`
}

ProducerResponse ...

type UserDetailResponse

type UserDetailResponse struct {
	ID             uint       `json:"id"`
	Name           string     `json:"name"`
	Email          string     `json:"email"`
	Password       string     `json:"password"`
	DateOfBirth    string     `json:"date_of_birth"`
	PhoneNumber    string     `json:"phone_number"`
	CurrentAddress string     `json:"current_address"`
	City           string     `json:"city"`
	Province       string     `json:"province"`
	District       string     `json:"district"`
	Lat            float64    `json:"lat"`
	Lng            float64    `json:"lng"`
	Job            string     `json:"job"`
	Image          string     `json:"image"`
	CreatedAt      *time.Time `json:"created_at"`
	UpdatedAt      *time.Time `json:"updated_at"`
}

UserDetailResponse scheme to detail respons

type UserRequest

type UserRequest struct {
	Name           string  `json:"name" form:"name"`
	Email          string  `json:"email" form:"email"`
	Password       string  `json:"password" form:"password"`
	DateOfBirth    string  `json:"date_of_birth" form:"date_of_birth"`
	PhoneNumber    string  `json:"phone_number" form:"phone_number"`
	CurrentAddress string  `json:"current_address" form:"current_address"`
	City           string  `json:"city" form:"city"`
	Province       string  `json:"province" form:"province"`
	District       string  `json:"district" form:"district"`
	Lat            float64 `json:"lat" form:"lat"`
	Lng            float64 `json:"lng" form:"lng"`
	Job            string  `json:"job" form:"job"`
	Image          string  `json:"image" form:"image"`
}

UserRequest Scheme From Request

type UserResponse

type UserResponse struct {
	ID             uint       `json:"id"`
	Name           string     `json:"name"`
	Email          string     `json:"email"`
	Password       string     `json:"password"`
	DateOfBirth    string     `json:"date_of_birt"`
	PhoneNumber    string     `json:"phone_number"`
	CurrentAddress string     `json:"current_address"`
	City           string     `json:"city"`
	Province       string     `json:"province"`
	District       string     `json:"district"`
	CreatedAt      *time.Time `json:"created_at"`
	UpdatedAt      *time.Time `json:"updated_at"`
}

UserResponse scheme to all respons

Jump to

Keyboard shortcuts

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