Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
Shorten(ctx context.Context, req *ServiceRequest) *ServiceResponse
}
Service defines the short link generation service interface.
type ServiceRequest ¶
type ServiceRequest struct {
URL string `json:"url,omitempty"`
}
ServiceRequest represents the service short link generation inputs.
type ServiceResponse ¶
type ServiceResponse struct { URL string `json:"url,omitempty"` ShortLink string `json:"shortLink,omitempty"` }
ServiceResponse represents the short link generation service outputs.
Click to show internal directories.
Click to hide internal directories.