Documentation
¶
Index ¶
- type Service
- func (s Service) GetLong(ctx context.Context, lreq param.LongRequest) (param.LongResponse, error)
- func (s Service) GetLongInfo(ctx context.Context, lreq param.LongInfoRequest) (param.LongInfoResponse, error)
- func (s Service) Short(ctx context.Context, sReq param.ShortRequest) (param.ShortResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo repository.Repository, rg randomstring.RandomGenerator) Service
func (Service) GetLong ¶
func (s Service) GetLong(ctx context.Context, lreq param.LongRequest) (param.LongResponse, error)
func (Service) GetLongInfo ¶
func (s Service) GetLongInfo(ctx context.Context, lreq param.LongInfoRequest) (param.LongInfoResponse, error)
func (Service) Short ¶
func (s Service) Short(ctx context.Context, sReq param.ShortRequest) (param.ShortResponse, error)
Click to show internal directories.
Click to hide internal directories.