Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlerGRPC ¶
func NewHandlerGRPC(redirectService shortener.RedirectService)
Types ¶
type ShortenRequest ¶
type ShortenRequest struct {
// contains filtered or unexported fields
}
func (*ShortenRequest) GetShortURL ¶
func (sr *ShortenRequest) GetShortURL(ctx context.Context, ll *protos.LongLink) (*protos.ShortLink, error)
figure out how to have this func attached both to `ShortenRequest` and `handler`
Click to show internal directories.
Click to hide internal directories.