Documentation
¶
Index ¶
- func RenderAccount(w http.ResponseWriter, r *http.Request, user *models.User)
- func RenderBlankResponse(w http.ResponseWriter, r *http.Request)
- func RenderDataResponse(w http.ResponseWriter, r *http.Request, view interface{})
- func RenderErrorResponse(w http.ResponseWriter, r *http.Request, err error)
- func RenderPacket(w http.ResponseWriter, r *http.Request, packet *models.Packet)
- func RenderPacketPreparation(w http.ResponseWriter, r *http.Request, participantsCount int, ...)
- func RenderUsersView(w http.ResponseWriter, r *http.Request, users []*models.User)
- type AccountView
- type AssetView
- type PacketView
- type ParticipantView
- type PreparationView
- type ResponseView
- type UserView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderAccount ¶
func RenderBlankResponse ¶
func RenderBlankResponse(w http.ResponseWriter, r *http.Request)
func RenderDataResponse ¶
func RenderDataResponse(w http.ResponseWriter, r *http.Request, view interface{})
func RenderErrorResponse ¶
func RenderErrorResponse(w http.ResponseWriter, r *http.Request, err error)
func RenderPacket ¶
func RenderPacketPreparation ¶
func RenderUsersView ¶
Types ¶
type AccountView ¶
type PacketView ¶
type PacketView struct { Type string `json:"type"` PacketId string `json:"packet_id"` User UserView `json:"user"` Asset AssetView `json:"asset"` Amount string `json:"amount"` Greeting string `json:"greeting"` TotalCount int64 `json:"total_count"` RemainingCount int64 `json:"remaining_count"` RemainingAmount string `json:"remaining_amount"` OpenedCount int64 `json:"opened_count"` OpenedAmount string `json:"opened_amount"` State string `json:"state"` Participants []ParticipantView `json:"participants"` }
type ParticipantView ¶
type PreparationView ¶
type ResponseView ¶
Click to show internal directories.
Click to hide internal directories.