service

package
v0.0.0-...-c30d74c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 10 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL