Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCreateShortURLEndpoint ¶
func MakeCreateShortURLEndpoint(svc biz.IShorteningBiz) endpoint.Endpoint
MakeCreateShortURLEndpoint returns an endpoint via the passed service.
func MakeGetShortURLEndpoint ¶
func MakeGetShortURLEndpoint(svc biz.IShorteningBiz) endpoint.Endpoint
MakeGetShortURLEndpoint returns an endpoint via the passed service.
Types ¶
type CreateShortURLRequest ¶
type CreateShortURLRequest struct {
URL string `json:"url"`
}
CreateShortURLRequest create short url request struct.
type GetShortURLRequest ¶
type GetShortURLRequest struct {
URL string `json:"url"`
}
GetShortURLRequest get short url request struct.
Click to show internal directories.
Click to hide internal directories.