Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpandResp ¶
type ExpandResp struct {
Url string `json:"url,omitempty"`
}
type ShortenReq ¶
type ShortenReq struct {
Url string `json:"url,omitempty"`
}
type ShortenResp ¶
type ShortenResp struct {
Shorten string `json:"shorten,omitempty"`
}
type Transformer ¶
type Transformer interface {
Expand(ctx context.Context, in *ExpandReq) (*ExpandResp, error)
Shorten(ctx context.Context, in *ShortenReq) (*ShortenResp, error)
}
func NewTransformer ¶
func NewTransformer(cli zrpc.Client) Transformer
Click to show internal directories.
Click to hide internal directories.