service

package
v0.0.0-...-102be31 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (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 ShortLinkRedirectService struct {
	v1.UnimplementedShortLinkRedirectServiceServer
	// contains filtered or unexported fields
}

func NewShortLinkRedirectService

func NewShortLinkRedirectService(su *biz.ShortLinkRepoUsecase, logger log.Logger) *ShortLinkRedirectService

func (*ShortLinkRedirectService) Redirect

type ShortLinkService

type ShortLinkService struct {
	v1.UnimplementedShortLinkServiceServer
	// contains filtered or unexported fields
}

func NewShortLinkService

func NewShortLinkService(su *biz.ShortLinkRepoUsecase, logger log.Logger) *ShortLinkService

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)

func (*SiteService) Ping

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)

Jump to

Keyboard shortcuts

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