Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortenUrl ¶
type ShortenUrl struct { Shorten string `json:"link"` Original string `json:"long_url"` IsDeleted bool `json:"is_deleted"` Group string }
func (*ShortenUrl) String ¶
func (surl *ShortenUrl) String() string
type URLShortener ¶
type URLShortener interface { List(config *Config) ([]*ShortenUrl, error) Shorten(config *Config, url string) (*ShortenUrl, error) Delete(config *Config, shortenURL string) error }
Click to show internal directories.
Click to hide internal directories.