Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct { Ok bool `json:"ok"` Description string `json:"error,omitempty"` ShortenedUrl string `json:"shortened_url,omitempty"` // contains filtered or unexported fields }
func NewResponse ¶
func NewResponse(ctx *fasthttp.RequestCtx) *Response
func UnmarshalResponse ¶
func (*Response) SendBadRequest ¶
func (*Response) SendSuccess ¶
func (*Response) SendUnauthorized ¶
Click to show internal directories.
Click to hide internal directories.