Documentation ¶
Index ¶
- Variables
- type AdminService
- func (s *AdminService) DeleteShortLink(ctx context.Context, req *v1.DeleteShortLinkRequest) (*emptypb.Empty, error)
- func (s *AdminService) FlushShortLink(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (s *AdminService) ListShortLinks(ctx context.Context, req *v1.ListShortLinkRequest) (*v1.ListShortLinkReply, error)
- type ShortLinkRedirectService
- type ShortLinkService
- type SiteService
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewSiteService, NewUserService, NewAdminService, NewShortLinkService, NewShortLinkRedirectService, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AdminService ¶
type AdminService struct { v1.UnimplementedAdminServiceServer // contains filtered or unexported fields }
func NewAdminService ¶
func NewAdminService(su *biz.ShortLinkRepoUsecase, logger log.Logger) *AdminService
func (*AdminService) DeleteShortLink ¶
func (s *AdminService) DeleteShortLink(ctx context.Context, req *v1.DeleteShortLinkRequest) (*emptypb.Empty, error)
func (*AdminService) FlushShortLink ¶
func (*AdminService) ListShortLinks ¶
func (s *AdminService) ListShortLinks(ctx context.Context, req *v1.ListShortLinkRequest) (*v1.ListShortLinkReply, error)
type ShortLinkRedirectService ¶
type ShortLinkRedirectService struct { v1.UnimplementedShortLinkRedirectServiceServer // contains filtered or unexported fields }
func NewShortLinkRedirectService ¶
func NewShortLinkRedirectService(su *biz.ShortLinkRepoUsecase, logger log.Logger) *ShortLinkRedirectService
func (*ShortLinkRedirectService) Redirect ¶
func (s *ShortLinkRedirectService) Redirect(ctx context.Context, req *v1.RedirectRequest) (http.Redirector, error)
type ShortLinkService ¶
type ShortLinkService struct { v1.UnimplementedShortLinkServiceServer // contains filtered or unexported fields }
func NewShortLinkService ¶
func NewShortLinkService(su *biz.ShortLinkRepoUsecase, logger log.Logger) *ShortLinkService
func (*ShortLinkService) CreateShortLink ¶
func (s *ShortLinkService) CreateShortLink(ctx context.Context, req *v1.CreateShortLinkRequest) (*v1.CreateShortLinkReply, error)
type SiteService ¶
type SiteService struct { v1.UnimplementedSiteServiceServer // contains filtered or unexported fields }
func NewSiteService ¶
func NewSiteService(su *biz.ShortLinkRepoUsecase, logger log.Logger, version string) *SiteService
func (*SiteService) Count ¶
func (s *SiteService) Count(ctx context.Context, _ *emptypb.Empty) (*v1.CountReply, error)
type UserService ¶
type UserService struct { v1.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(secret *conf.Secret, logger log.Logger) *UserService
func (*UserService) Login ¶
func (s *UserService) Login(_ context.Context, req *v1.LoginRequest) (*v1.LoginReply, error)
Click to show internal directories.
Click to hide internal directories.