application

package
v0.0.0-...-d027d8b Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageSizeDefault   = 10
	PageNumberDefault = 1
)

Variables

This section is empty.

Functions

func InitAuthApplication

func InitAuthApplication(idgen2 idgen.IIDGenerator, db2 db.Provider) (auth.AuthService, error)

func InitAuthNApplication

func InitAuthNApplication(idgen2 idgen.IIDGenerator, db2 db.Provider) (authn.AuthNService, error)

func InitFileApplication

func InitFileApplication(objectStorage fileserver.BatchObjectStorage, authClient authservice.Client) (file.FileService, error)

func InitFoundationOpenAPIApplication

func InitFoundationOpenAPIApplication(objectStorage fileserver.BatchObjectStorage, authClient authservice.Client) (openapi.FoundationOpenAPIService, error)

func InitSpaceApplication

func InitSpaceApplication(idgen2 idgen.IIDGenerator, db2 db.Provider) (space.SpaceService, error)

func InitUserApplication

func InitUserApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, configFactory conf.IConfigLoaderFactory) (user.UserService, error)

func NewAuthApplication

func NewAuthApplication(userRepo repo.IUserRepo) auth.AuthService

func NewAuthNApplication

func NewAuthNApplication(authNRepo repo.IAuthNRepo) authn.AuthNService

func NewFileApplication

func NewFileApplication(objectStorage fileserver.BatchObjectStorage, auth rpc.IAuthProvider) file.FileService

func NewFoundationOpenAPIApplication

func NewFoundationOpenAPIApplication(objectStorage fileserver.BatchObjectStorage, authService rpc.IAuthProvider) openapi.FoundationOpenAPIService

func NewSpaceApplication

func NewSpaceApplication(userRepo repo.IUserRepo) (space.SpaceService, error)

func NewUserApplication

func NewUserApplication(
	userService service.IUserService,
	configFactory conf.IConfigLoaderFactory,
) (user.UserService, error)

Types

type AuthApplicationImpl

type AuthApplicationImpl struct {
	// contains filtered or unexported fields
}

func (*AuthApplicationImpl) MCheckPermission

type AuthNApplicationImpl

type AuthNApplicationImpl struct {
	// contains filtered or unexported fields
}

func (AuthNApplicationImpl) CreatePersonalAccessToken

func (AuthNApplicationImpl) DeletePersonalAccessToken

func (AuthNApplicationImpl) GetPersonalAccessToken

func (AuthNApplicationImpl) ListPersonalAccessToken

func (AuthNApplicationImpl) UpdatePersonalAccessToken

func (AuthNApplicationImpl) VerifyToken

type FileApplicationImpl

type FileApplicationImpl struct {
	// contains filtered or unexported fields
}

func (*FileApplicationImpl) SignDownloadFile

func (*FileApplicationImpl) SignUploadFile

func (*FileApplicationImpl) UploadLoopFileInner

type FoundationOpenAPIApplicationImpl

type FoundationOpenAPIApplicationImpl struct {
	// contains filtered or unexported fields
}

func (FoundationOpenAPIApplicationImpl) UploadLoopFile

type SpaceApplicationImpl

type SpaceApplicationImpl struct {
	// contains filtered or unexported fields
}

func (SpaceApplicationImpl) GetSpace

func (SpaceApplicationImpl) ListUserSpaces

type UserApplicationImpl

type UserApplicationImpl struct {
	// contains filtered or unexported fields
}

func (*UserApplicationImpl) GetUserInfo

func (*UserApplicationImpl) GetUserInfoByToken

func (*UserApplicationImpl) LoginByPassword

func (*UserApplicationImpl) Logout

func (u *UserApplicationImpl) Logout(ctx context.Context, request *user.LogoutRequest) (r *user.LogoutResponse, err error)

func (*UserApplicationImpl) MGetUserInfo

func (*UserApplicationImpl) ModifyUserProfile

func (*UserApplicationImpl) Register

func (*UserApplicationImpl) ResetPassword

func (u *UserApplicationImpl) ResetPassword(ctx context.Context, request *user.ResetPasswordRequest) (r *user.ResetPasswordResponse, err error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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