usecase

package
v0.0.0-...-6f95374 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package usecase is a generated GoMock package.

Package usecase is a generated GoMock package.

Package usecase is a generated GoMock package.

Package usecase is a generated GoMock package.

Package usecase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIArticleAddToUserInput

type APIArticleAddToUserInput struct {
	ArticleID article.ID
	UserID    user.ID
}

APIArticleAddToUserInput.

type APIArticleAddToUserOutput

type APIArticleAddToUserOutput struct{}

APIArticleAddToUserOutput.

type APIArticleDeleteInput

type APIArticleDeleteInput struct {
	ArticleID article.ID
}

APIArticleDeleteInput.

type APIArticleDeleteOutput

type APIArticleDeleteOutput struct{}

APIArticleDeleteOutput.

type APIArticleListInput

type APIArticleListInput struct {
	UserID user.ID
	Scope  article.Scope
	Index  value.Index
	Size   value.Size
	Filter []value.Filter
}

APIArticleListInput.

type APIArticleListOutput

type APIArticleListOutput struct {
	Articles []model.Article
}

APIArticleListOutput.

type APIArticleRemoveFromUserInput

type APIArticleRemoveFromUserInput struct {
	ArticleID article.ID
	UserID    user.ID
}

APIArticleRemoveFromUserInput.

type APIArticleRemoveFromUserOutput

type APIArticleRemoveFromUserOutput struct{}

APIArticleRemoveFromUserOutput.

type APIArticleShareInput

type APIArticleShareInput struct {
	URL         article.URL
	Title       article.Title
	Description article.Description
	Thumbnail   article.Thumbnail
}

APIArticleShareInput.

type APIArticleShareOutput

type APIArticleShareOutput struct {
	Article model.Article
}

APIArticleShareOutput.

type APIAuthChangePasswordInput

type APIAuthChangePasswordInput struct {
	UserID      user.ID
	Secret      auth.Secret
	PublicKey   rsa.PublicKey
	ExpiresIn   auth.ExpiresIn
	OldPassword auth.Password
	NewPassword auth.Password
}

type APIAuthChangePasswordOutput

type APIAuthChangePasswordOutput struct {
	Auth         model.Auth
	AuthToken    auth.AuthToken
	SessionToken auth.SessionToken
}

type APIAuthGenerateCodeInput

type APIAuthGenerateCodeInput struct {
	SessionID auth.SessionID
}

type APIAuthGenerateCodeOutput

type APIAuthGenerateCodeOutput struct {
	Code model.Code
}

type APIAuthInviteInput

type APIAuthInviteInput struct {
	Email auth.Email
}

type APIAuthInviteOutput

type APIAuthInviteOutput struct {
	InvitationCode auth.InvitationCode
}

type APIAuthJoinInput

type APIAuthJoinInput struct {
	InvitationCode auth.InvitationCode
	Password       auth.Password
}

type APIAuthJoinOutput

type APIAuthJoinOutput struct{}

type APIAuthRefreshInput

type APIAuthRefreshInput struct {
	CodeID    auth.CodeID
	Signature auth.Signature
	SessionID auth.SessionID
	ExpiresIn auth.ExpiresIn
}

type APIAuthRefreshOutput

type APIAuthRefreshOutput struct {
	Auth      model.Auth
	AuthToken auth.AuthToken
}

type APIAuthSignInInput

type APIAuthSignInInput struct {
	Secret    auth.Secret
	Email     auth.Email
	Password  auth.Password
	PublicKey rsa.PublicKey
	ExpiresIn auth.ExpiresIn
}

type APIAuthSignInOutput

type APIAuthSignInOutput struct {
	Auth         model.Auth
	AuthToken    auth.AuthToken
	SessionToken auth.SessionToken
}

type APIAuthSignOutAllInput

type APIAuthSignOutAllInput struct {
	UserID user.ID
}

type APIAuthSignOutAllOutput

type APIAuthSignOutAllOutput struct{}

type APIAuthSignOutInput

type APIAuthSignOutInput struct {
	UserID    user.ID
	SessionID auth.SessionID
}

type APIAuthSignOutOutput

type APIAuthSignOutOutput struct{}

type APIAuthSignUpInput

type APIAuthSignUpInput struct {
	Email    auth.Email
	Password auth.Password
}

type APIAuthSignUpOutput

type APIAuthSignUpOutput struct{}

type APIAuthVerifyInput

type APIAuthVerifyInput struct {
	UserID    user.ID
	SessionID auth.SessionID
}

type APIAuthVerifyOutput

type APIAuthVerifyOutput struct{}

type APIHealth

type APIHealth interface {
	Check(context.Context, APIHealthCheckInput) (APIHealthCheckOutput, error)
}

APIHealth.

type APIHealthCheckInput

type APIHealthCheckInput struct{}

APIHealthCheckInput.

type APIHealthCheckOutput

type APIHealthCheckOutput struct{}

APIHealthCheckOutput.

type CoreArticleAddToUserInput

type CoreArticleAddToUserInput struct {
	ArticleID article.ID
	UserID    user.ID
}

CoreArticleAddToUserInput.

type CoreArticleAddToUserOutput

type CoreArticleAddToUserOutput struct{}

CoreArticleAddToUserOutput.

type CoreArticleDeleteInput

type CoreArticleDeleteInput struct {
	ArticleID article.ID
}

CoreArticleDeleteInput.

type CoreArticleDeleteOutput

type CoreArticleDeleteOutput struct{}

CoreArticleDeleteOutput.

type CoreArticleListByUserInput

type CoreArticleListByUserInput struct {
	UserID user.ID
	Index  value.Index
	Size   value.Size
	Filter []value.Filter
}

CoreArticleListByUserInput.

type CoreArticleListByUserOutput

type CoreArticleListByUserOutput struct {
	Articles []model.Article
}

CoreArticleListByUserOutput.

type CoreArticleListInput

type CoreArticleListInput struct {
	Index  value.Index
	Size   value.Size
	Filter []value.Filter
}

CoreArticleListInput.

type CoreArticleListOutput

type CoreArticleListOutput struct {
	Articles []model.Article
}

CoreArticleListOutput.

type CoreArticleRemoveFromUserInput

type CoreArticleRemoveFromUserInput struct {
	ArticleID article.ID
	UserID    user.ID
}

CoreArticleRemoveFromUserInput.

type CoreArticleRemoveFromUserOutput

type CoreArticleRemoveFromUserOutput struct{}

CoreArticleRemoveFromUserOutput.

type CoreArticleShareInput

type CoreArticleShareInput struct {
	URL         article.URL
	Title       article.Title
	Description article.Description
	Thumbnail   article.Thumbnail
}

CoreArticleShareInput.

type CoreArticleShareOutput

type CoreArticleShareOutput struct {
	Article model.Article
}

CoreArticleShareOutput.

type CoreUserCreateInput

type CoreUserCreateInput struct{}

CoreUserCreateInput.

type CoreUserCreateOutput

type CoreUserCreateOutput struct {
	User model.User
}

CoreUserCreateOutput.

type CoreUserUpdateInput

type CoreUserUpdateInput struct {
	UserID user.ID
}

CoreUserUpdateInput.

type CoreUserUpdateOutput

type CoreUserUpdateOutput struct {
	User model.User
}

CoreUserUpdateOutput.

type MockAPIArticle

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

MockAPIArticle is a mock of APIArticle interface.

func NewMockAPIArticle

func NewMockAPIArticle(ctrl *gomock.Controller) *MockAPIArticle

NewMockAPIArticle creates a new mock instance.

func (*MockAPIArticle) AddToUser

AddToUser mocks base method.

func (*MockAPIArticle) Delete

Delete mocks base method.

func (*MockAPIArticle) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPIArticle) List

List mocks base method.

func (*MockAPIArticle) RemoveFromUser

RemoveFromUser mocks base method.

func (*MockAPIArticle) Share

Share mocks base method.

type MockAPIArticleMockRecorder

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

MockAPIArticleMockRecorder is the mock recorder for MockAPIArticle.

func (*MockAPIArticleMockRecorder) AddToUser

func (mr *MockAPIArticleMockRecorder) AddToUser(arg0, arg1 interface{}) *gomock.Call

AddToUser indicates an expected call of AddToUser.

func (*MockAPIArticleMockRecorder) Delete

func (mr *MockAPIArticleMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockAPIArticleMockRecorder) List

func (mr *MockAPIArticleMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockAPIArticleMockRecorder) RemoveFromUser

func (mr *MockAPIArticleMockRecorder) RemoveFromUser(arg0, arg1 interface{}) *gomock.Call

RemoveFromUser indicates an expected call of RemoveFromUser.

func (*MockAPIArticleMockRecorder) Share

func (mr *MockAPIArticleMockRecorder) Share(arg0, arg1 interface{}) *gomock.Call

Share indicates an expected call of Share.

type MockAPIAuth

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

MockAPIAuth is a mock of APIAuth interface.

func NewMockAPIAuth

func NewMockAPIAuth(ctrl *gomock.Controller) *MockAPIAuth

NewMockAPIAuth creates a new mock instance.

func (*MockAPIAuth) ChangePassword

ChangePassword mocks base method.

func (*MockAPIAuth) EXPECT

func (m *MockAPIAuth) EXPECT() *MockAPIAuthMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPIAuth) GenerateCode

GenerateCode mocks base method.

func (*MockAPIAuth) Invite

Invite mocks base method.

func (*MockAPIAuth) Join

Join mocks base method.

func (*MockAPIAuth) Refresh

Refresh mocks base method.

func (*MockAPIAuth) SignIn

SignIn mocks base method.

func (*MockAPIAuth) SignOut

SignOut mocks base method.

func (*MockAPIAuth) SignOutAll

SignOutAll mocks base method.

func (*MockAPIAuth) SignUp

SignUp mocks base method.

func (*MockAPIAuth) Verify

Verify mocks base method.

type MockAPIAuthMockRecorder

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

MockAPIAuthMockRecorder is the mock recorder for MockAPIAuth.

func (*MockAPIAuthMockRecorder) ChangePassword

func (mr *MockAPIAuthMockRecorder) ChangePassword(arg0, arg1 interface{}) *gomock.Call

ChangePassword indicates an expected call of ChangePassword.

func (*MockAPIAuthMockRecorder) GenerateCode

func (mr *MockAPIAuthMockRecorder) GenerateCode(arg0, arg1 interface{}) *gomock.Call

GenerateCode indicates an expected call of GenerateCode.

func (*MockAPIAuthMockRecorder) Invite

func (mr *MockAPIAuthMockRecorder) Invite(arg0, arg1 interface{}) *gomock.Call

Invite indicates an expected call of Invite.

func (*MockAPIAuthMockRecorder) Join

func (mr *MockAPIAuthMockRecorder) Join(arg0, arg1 interface{}) *gomock.Call

Join indicates an expected call of Join.

func (*MockAPIAuthMockRecorder) Refresh

func (mr *MockAPIAuthMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call

Refresh indicates an expected call of Refresh.

func (*MockAPIAuthMockRecorder) SignIn

func (mr *MockAPIAuthMockRecorder) SignIn(arg0, arg1 interface{}) *gomock.Call

SignIn indicates an expected call of SignIn.

func (*MockAPIAuthMockRecorder) SignOut

func (mr *MockAPIAuthMockRecorder) SignOut(arg0, arg1 interface{}) *gomock.Call

SignOut indicates an expected call of SignOut.

func (*MockAPIAuthMockRecorder) SignOutAll

func (mr *MockAPIAuthMockRecorder) SignOutAll(arg0, arg1 interface{}) *gomock.Call

SignOutAll indicates an expected call of SignOutAll.

func (*MockAPIAuthMockRecorder) SignUp

func (mr *MockAPIAuthMockRecorder) SignUp(arg0, arg1 interface{}) *gomock.Call

SignUp indicates an expected call of SignUp.

func (*MockAPIAuthMockRecorder) Verify

func (mr *MockAPIAuthMockRecorder) Verify(arg0, arg1 interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockAPIHealth

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

MockAPIHealth is a mock of APIHealth interface.

func NewMockAPIHealth

func NewMockAPIHealth(ctrl *gomock.Controller) *MockAPIHealth

NewMockAPIHealth creates a new mock instance.

func (*MockAPIHealth) Check

Check mocks base method.

func (*MockAPIHealth) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockAPIHealthMockRecorder

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

MockAPIHealthMockRecorder is the mock recorder for MockAPIHealth.

func (*MockAPIHealthMockRecorder) Check

func (mr *MockAPIHealthMockRecorder) Check(arg0, arg1 interface{}) *gomock.Call

Check indicates an expected call of Check.

type MockCoreArticle

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

MockCoreArticle is a mock of CoreArticle interface.

func NewMockCoreArticle

func NewMockCoreArticle(ctrl *gomock.Controller) *MockCoreArticle

NewMockCoreArticle creates a new mock instance.

func (*MockCoreArticle) AddToUser

AddToUser mocks base method.

func (*MockCoreArticle) Delete

Delete mocks base method.

func (*MockCoreArticle) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCoreArticle) List

List mocks base method.

func (*MockCoreArticle) ListByUser

ListByUser mocks base method.

func (*MockCoreArticle) RemoveFromUser

RemoveFromUser mocks base method.

func (*MockCoreArticle) Share

Share mocks base method.

type MockCoreArticleMockRecorder

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

MockCoreArticleMockRecorder is the mock recorder for MockCoreArticle.

func (*MockCoreArticleMockRecorder) AddToUser

func (mr *MockCoreArticleMockRecorder) AddToUser(arg0, arg1 interface{}) *gomock.Call

AddToUser indicates an expected call of AddToUser.

func (*MockCoreArticleMockRecorder) Delete

func (mr *MockCoreArticleMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCoreArticleMockRecorder) List

func (mr *MockCoreArticleMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockCoreArticleMockRecorder) ListByUser

func (mr *MockCoreArticleMockRecorder) ListByUser(arg0, arg1 interface{}) *gomock.Call

ListByUser indicates an expected call of ListByUser.

func (*MockCoreArticleMockRecorder) RemoveFromUser

func (mr *MockCoreArticleMockRecorder) RemoveFromUser(arg0, arg1 interface{}) *gomock.Call

RemoveFromUser indicates an expected call of RemoveFromUser.

func (*MockCoreArticleMockRecorder) Share

func (mr *MockCoreArticleMockRecorder) Share(arg0, arg1 interface{}) *gomock.Call

Share indicates an expected call of Share.

type MockCoreUser

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

MockCoreUser is a mock of CoreUser interface.

func NewMockCoreUser

func NewMockCoreUser(ctrl *gomock.Controller) *MockCoreUser

NewMockCoreUser creates a new mock instance.

func (*MockCoreUser) Create

Create mocks base method.

func (*MockCoreUser) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCoreUser) Update

Update mocks base method.

type MockCoreUserMockRecorder

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

MockCoreUserMockRecorder is the mock recorder for MockCoreUser.

func (*MockCoreUserMockRecorder) Create

func (mr *MockCoreUserMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockCoreUserMockRecorder) Update

func (mr *MockCoreUserMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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