Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordService ¶
type RecordService interface { CreateRecord(*pb.CreateRecordRequest) (*pb.CreateRecordResponse, error) GetOriginUrl(*pb.GetOriginUrlRequest) (*pb.GetOriginUrlResponse, error) }
func CreateRecordServiceWith ¶
func CreateRecordServiceWith( recordRepository repository.RecordRepository, logger *logrus.Logger, ) RecordService
type UrlService ¶
type UrlService interface { GetOriginUrl(shortenedId string) (*string, *pb.RecordStatus, error) CreateRecord(originUrl string, expireAt time.Time) (*string, error) }
func CreateUrlServiceWith ¶
func CreateUrlServiceWith( urlRepository repository.UrlRepository, logger *logrus.Logger, ) UrlService
Click to show internal directories.
Click to hide internal directories.