Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LongInfoRequest ¶
type LongInfoRequest struct {
Key string `json:"key"`
}
func (LongInfoRequest) ValidateLongInfo ¶
func (lr LongInfoRequest) ValidateLongInfo() error
type LongInfoResponse ¶
type LongRequest ¶
type LongRequest struct {
Key string `json:"key"`
}
func (LongRequest) ValidateLong ¶
func (lr LongRequest) ValidateLong() error
type LongResponse ¶
type LongResponse struct {
LongURL string `json:"long_url"`
}
type ShortRequest ¶
type ShortRequest struct { URL string `json:"url"` // Number of Hours from Now Expiry int64 `json:"expiry"` }
func (ShortRequest) ValidateShort ¶
func (sr ShortRequest) ValidateShort() error
type ShortResponse ¶
type ShortResponse struct {
Key string `json:"key"`
}
Click to show internal directories.
Click to hide internal directories.