Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Delete ¶
func (cli *Client) Delete(ID string, opts ...DeleteOption) error
type DeleteOption ¶
type DeleteOption func(*DeleteParams)
func WithDomain ¶
func WithDomain(v string) DeleteOption
type DeleteParams ¶
type SubmitOption ¶
type SubmitOption func(*SubmitParams)
func WithCustomURL ¶
func WithCustomURL(v string) SubmitOption
func WithPassword ¶
func WithPassword(v string) SubmitOption
func WithReuse ¶
func WithReuse(v bool) SubmitOption
type SubmitParams ¶
type URL ¶
type URL struct { ID string `json:"id"` Target string `json:"target"` ShortURL string `json:"shortUrl"` Password bool `json:"password"` Reuse bool `json:"reuse"` DomainID string `json:"domain_id"` VisitCount int `json:"visit_count"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.