Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "service", fx.Options( fx.Provide(NewStargazerService), fx.Provide( NewAuthService, NewUserService, ), ), )
View Source
var UserRegisterHash = sync.Map{}
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { Register(register oapi.RegisterRequest) (oapi.User, error) Login(login oapi.LoginRequest) (oapi.User, error) RefreshToken(refresh oapi.RefreshTokenRequest) (model.RefreshToken, error) }
func NewAuthService ¶
func NewAuthService( repo repository.Repository, ) AuthService
type DownloaderService ¶
type DownloaderService interface{}
func NewDownloaderService ¶
func NewDownloaderService() DownloaderService
type SearchService ¶
type SearchService interface{}
func NewSearchService ¶
func NewSearchService() SearchService
type StargazerService ¶
type StargazerService struct { Auth AuthService User UserService Rss RssService Downloader DownloaderService Search SearchService }
func NewStargazerService ¶
func NewStargazerService( repository repository.Repository, ) StargazerService
type UserService ¶
type UserService interface { GetUser() error GetUsers() error CreateUser() error UpdateUser() error DeleteUser() error SetUserRole() error ResetPassword() error RefreshToken() error GetKeyPair() (*ecdsa.PrivateKey, *ecdsa.PublicKey) }
func NewUserService ¶
func NewUserService( repo repository.Repository, ) UserService
Click to show internal directories.
Click to hide internal directories.