Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUrlShortenerService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type UrlShortenerService ¶
type UrlShortenerService struct { v1.UnimplementedUrlShortenerServiceServer Logger *log.Helper LeafUseCase *biz.LeafUseCase ShortUrlUseCase *biz.ShortUrlUseCase // contains filtered or unexported fields }
func NewUrlShortenerService ¶
func NewUrlShortenerService(config *conf.App, leafUseCase *biz.LeafUseCase, ShortUrlUseCase *biz.ShortUrlUseCase, logger log.Logger) *UrlShortenerService
func (*UrlShortenerService) CreateShortUrl ¶
func (s *UrlShortenerService) CreateShortUrl(ctx context.Context, in *v1.CreateUrlRequest) (*v1.CreateUrlReply, error)
func (*UrlShortenerService) GetRedirectURL ¶
func (s *UrlShortenerService) GetRedirectURL(ctx context.Context, in *v1.JumpRequest) (*v1.JumpReply, error)
Click to show internal directories.
Click to hide internal directories.