service

package
v0.0.0-...-4838d0d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 RssService

type RssService interface{}

func NewRssService

func NewRssService() RssService

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳