mocks

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCompositionService

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

MockCompositionService is a mock of CompositionService interface.

func NewMockCompositionService

func NewMockCompositionService(ctrl *gomock.Controller) *MockCompositionService

NewMockCompositionService creates a new mock instance.

func (*MockCompositionService) Create

func (m *MockCompositionService) Create(ctx context.Context, userID, systemID string, ehrUUID, groupAccessUUID *uuid.UUID, composition *model.Composition, procRequest *processing.Request) (*model.Composition, error)

Create mocks base method.

func (*MockCompositionService) DefaultGroupAccess

func (m *MockCompositionService) DefaultGroupAccess() *uuid.UUID

DefaultGroupAccess mocks base method.

func (*MockCompositionService) DeleteByID

func (m *MockCompositionService) DeleteByID(ctx context.Context, procRequest *processing.Request, ehrUUID *uuid.UUID, versionUID, userID, systemID string) (string, error)

DeleteByID mocks base method.

func (*MockCompositionService) EXPECT

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

func (*MockCompositionService) GetByID

func (m *MockCompositionService) GetByID(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID, versionUID string) (*model.Composition, error)

GetByID mocks base method.

func (*MockCompositionService) GetEhrUUIDByUserID

func (m *MockCompositionService) GetEhrUUIDByUserID(ctx context.Context, userID, systemID string) (*uuid.UUID, error)

GetEhrUUIDByUserID mocks base method.

func (*MockCompositionService) GetLastByBaseID

func (m *MockCompositionService) GetLastByBaseID(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID, versionUID string) (*model.Composition, error)

GetLastByBaseID mocks base method.

func (*MockCompositionService) GetList

func (m *MockCompositionService) GetList(ctx context.Context, userID, systemID string) ([]*model.EhrDocumentItem, error)

GetList mocks base method.

func (*MockCompositionService) IsExist

func (m *MockCompositionService) IsExist(ctx context.Context, args ...string) (bool, error)

IsExist mocks base method.

func (*MockCompositionService) Update

func (m *MockCompositionService) Update(ctx context.Context, procRequest *processing.Request, userID, systemID string, ehrUUID, groupAccessUUID *uuid.UUID, composition *model.Composition) (*model.Composition, error)

Update mocks base method.

type MockCompositionServiceMockRecorder

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

MockCompositionServiceMockRecorder is the mock recorder for MockCompositionService.

func (*MockCompositionServiceMockRecorder) Create

func (mr *MockCompositionServiceMockRecorder) Create(ctx, userID, systemID, ehrUUID, groupAccessUUID, composition, procRequest interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockCompositionServiceMockRecorder) DefaultGroupAccess

func (mr *MockCompositionServiceMockRecorder) DefaultGroupAccess() *gomock.Call

DefaultGroupAccess indicates an expected call of DefaultGroupAccess.

func (*MockCompositionServiceMockRecorder) DeleteByID

func (mr *MockCompositionServiceMockRecorder) DeleteByID(ctx, procRequest, ehrUUID, versionUID, userID, systemID interface{}) *gomock.Call

DeleteByID indicates an expected call of DeleteByID.

func (*MockCompositionServiceMockRecorder) GetByID

func (mr *MockCompositionServiceMockRecorder) GetByID(ctx, userID, systemID, ehrUUID, versionUID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockCompositionServiceMockRecorder) GetEhrUUIDByUserID

func (mr *MockCompositionServiceMockRecorder) GetEhrUUIDByUserID(ctx, userID, systemID interface{}) *gomock.Call

GetEhrUUIDByUserID indicates an expected call of GetEhrUUIDByUserID.

func (*MockCompositionServiceMockRecorder) GetLastByBaseID

func (mr *MockCompositionServiceMockRecorder) GetLastByBaseID(ctx, userID, systemID, ehrUUID, versionUID interface{}) *gomock.Call

GetLastByBaseID indicates an expected call of GetLastByBaseID.

func (*MockCompositionServiceMockRecorder) GetList

func (mr *MockCompositionServiceMockRecorder) GetList(ctx, userID, systemID interface{}) *gomock.Call

GetList indicates an expected call of GetList.

func (*MockCompositionServiceMockRecorder) IsExist

func (mr *MockCompositionServiceMockRecorder) IsExist(ctx interface{}, args ...interface{}) *gomock.Call

IsExist indicates an expected call of IsExist.

func (*MockCompositionServiceMockRecorder) Update

func (mr *MockCompositionServiceMockRecorder) Update(ctx, procRequest, userID, systemID, ehrUUID, groupAccessUUID, composition interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockContributionService

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

MockContributionService is a mock of ContributionService interface.

func NewMockContributionService

func NewMockContributionService(ctrl *gomock.Controller) *MockContributionService

NewMockContributionService creates a new mock instance.

func (*MockContributionService) EXPECT

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

func (*MockContributionService) Execute

func (m *MockContributionService) Execute(ctx context.Context, req processing.RequestInterface, userID, ehrUUID string, c *model.Contribution, hComposition helper.Searcher) error

Execute mocks base method.

func (*MockContributionService) GetByID

GetByID mocks base method.

func (*MockContributionService) NewProcRequest

func (m *MockContributionService) NewProcRequest(reqID, userID, ehrUUID string, kind processing.RequestKind) (processing.RequestInterface, error)

NewProcRequest mocks base method.

func (*MockContributionService) PrepareResponse

PrepareResponse mocks base method.

func (*MockContributionService) Store

Store mocks base method.

func (*MockContributionService) Validate

Validate mocks base method.

type MockContributionServiceMockRecorder

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

MockContributionServiceMockRecorder is the mock recorder for MockContributionService.

func (*MockContributionServiceMockRecorder) Execute

func (mr *MockContributionServiceMockRecorder) Execute(ctx, req, userID, ehrUUID, c, hComposition interface{}) *gomock.Call

Execute indicates an expected call of Execute.

func (*MockContributionServiceMockRecorder) GetByID

func (mr *MockContributionServiceMockRecorder) GetByID(ctx, userID, cID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockContributionServiceMockRecorder) NewProcRequest

func (mr *MockContributionServiceMockRecorder) NewProcRequest(reqID, userID, ehrUUID, kind interface{}) *gomock.Call

NewProcRequest indicates an expected call of NewProcRequest.

func (*MockContributionServiceMockRecorder) PrepareResponse

func (mr *MockContributionServiceMockRecorder) PrepareResponse(ctx, systemID, c interface{}) *gomock.Call

PrepareResponse indicates an expected call of PrepareResponse.

func (*MockContributionServiceMockRecorder) Store

func (mr *MockContributionServiceMockRecorder) Store(ctx, req, systemID, user, c interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockContributionServiceMockRecorder) Validate

func (mr *MockContributionServiceMockRecorder) Validate(ctx, c, template interface{}) *gomock.Call

Validate indicates an expected call of Validate.

type MockDirectoryService

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

MockDirectoryService is a mock of DirectoryService interface.

func NewMockDirectoryService

func NewMockDirectoryService(ctrl *gomock.Controller) *MockDirectoryService

NewMockDirectoryService creates a new mock instance.

func (*MockDirectoryService) Create

func (m *MockDirectoryService) Create(ctx context.Context, req processing.RequestInterface, patientID, systemID, dirUID string, d *model.Directory) error

Create mocks base method.

func (*MockDirectoryService) Delete

func (m *MockDirectoryService) Delete(ctx context.Context, req processing.RequestInterface, systemID string, ehrUUID *uuid.UUID, versionUID, userID string) (string, error)

Delete mocks base method.

func (*MockDirectoryService) EXPECT

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

func (*MockDirectoryService) GetActiveProcRequest

func (m *MockDirectoryService) GetActiveProcRequest(userID string, kind processing.RequestKind) (string, error)

GetActiveProcRequest mocks base method.

func (*MockDirectoryService) GetByID

func (m *MockDirectoryService) GetByID(ctx context.Context, patientID, systemID string, ehrUUID *uuid.UUID, versionID *base.ObjectVersionID) (*model.Directory, error)

GetByID mocks base method.

func (*MockDirectoryService) GetByTimeOrLast

func (m *MockDirectoryService) GetByTimeOrLast(ctx context.Context, systemID string, ehrUUID *uuid.UUID, userID string, versionTime time.Time) (*model.Directory, error)

GetByTimeOrLast mocks base method.

func (*MockDirectoryService) IncreaseVersion

func (m *MockDirectoryService) IncreaseVersion(d *model.Directory, systemID string) (string, error)

IncreaseVersion mocks base method.

func (*MockDirectoryService) NewProcRequest

func (m *MockDirectoryService) NewProcRequest(reqID, userID, ehrUUID string, kind processing.RequestKind) (processing.RequestInterface, error)

NewProcRequest mocks base method.

func (*MockDirectoryService) Update

func (m *MockDirectoryService) Update(ctx context.Context, req processing.RequestInterface, systemID, userID string, d *model.Directory) error

Update mocks base method.

type MockDirectoryServiceMockRecorder

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

MockDirectoryServiceMockRecorder is the mock recorder for MockDirectoryService.

func (*MockDirectoryServiceMockRecorder) Create

func (mr *MockDirectoryServiceMockRecorder) Create(ctx, req, patientID, systemID, dirUID, d interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockDirectoryServiceMockRecorder) Delete

func (mr *MockDirectoryServiceMockRecorder) Delete(ctx, req, systemID, ehrUUID, versionUID, userID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockDirectoryServiceMockRecorder) GetActiveProcRequest

func (mr *MockDirectoryServiceMockRecorder) GetActiveProcRequest(userID, kind interface{}) *gomock.Call

GetActiveProcRequest indicates an expected call of GetActiveProcRequest.

func (*MockDirectoryServiceMockRecorder) GetByID

func (mr *MockDirectoryServiceMockRecorder) GetByID(ctx, patientID, systemID, ehrUUID, versionID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockDirectoryServiceMockRecorder) GetByTimeOrLast

func (mr *MockDirectoryServiceMockRecorder) GetByTimeOrLast(ctx, systemID, ehrUUID, userID, versionTime interface{}) *gomock.Call

GetByTimeOrLast indicates an expected call of GetByTimeOrLast.

func (*MockDirectoryServiceMockRecorder) IncreaseVersion

func (mr *MockDirectoryServiceMockRecorder) IncreaseVersion(d, systemID interface{}) *gomock.Call

IncreaseVersion indicates an expected call of IncreaseVersion.

func (*MockDirectoryServiceMockRecorder) NewProcRequest

func (mr *MockDirectoryServiceMockRecorder) NewProcRequest(reqID, userID, ehrUUID, kind interface{}) *gomock.Call

NewProcRequest indicates an expected call of NewProcRequest.

func (*MockDirectoryServiceMockRecorder) Update

func (mr *MockDirectoryServiceMockRecorder) Update(ctx, req, systemID, userID, d interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockFinder

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

MockFinder is a mock of Finder interface.

func NewMockFinder

func NewMockFinder(ctrl *gomock.Controller) *MockFinder

NewMockFinder creates a new mock instance.

func (*MockFinder) EXPECT

func (m *MockFinder) EXPECT() *MockFinderMockRecorder

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

func (*MockFinder) GetEhrUUIDByUserID

func (m *MockFinder) GetEhrUUIDByUserID(ctx context.Context, userID, systemID string) (*uuid.UUID, error)

GetEhrUUIDByUserID mocks base method.

func (*MockFinder) IsExist

func (m *MockFinder) IsExist(ctx context.Context, args ...string) (bool, error)

IsExist mocks base method.

type MockFinderMockRecorder

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

MockFinderMockRecorder is the mock recorder for MockFinder.

func (*MockFinderMockRecorder) GetEhrUUIDByUserID

func (mr *MockFinderMockRecorder) GetEhrUUIDByUserID(ctx, userID, systemID interface{}) *gomock.Call

GetEhrUUIDByUserID indicates an expected call of GetEhrUUIDByUserID.

func (*MockFinderMockRecorder) IsExist

func (mr *MockFinderMockRecorder) IsExist(ctx interface{}, args ...interface{}) *gomock.Call

IsExist indicates an expected call of IsExist.

type MockIndexer

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

MockIndexer is a mock of Indexer interface.

func NewMockIndexer

func NewMockIndexer(ctrl *gomock.Controller) *MockIndexer

NewMockIndexer creates a new mock instance.

func (*MockIndexer) EXPECT

func (m *MockIndexer) EXPECT() *MockIndexerMockRecorder

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

func (*MockIndexer) GetEhrUUIDByUserID

func (m *MockIndexer) GetEhrUUIDByUserID(ctx context.Context, userID, systemID string) (*uuid.UUID, error)

GetEhrUUIDByUserID mocks base method.

type MockIndexerMockRecorder

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

MockIndexerMockRecorder is the mock recorder for MockIndexer.

func (*MockIndexerMockRecorder) GetEhrUUIDByUserID

func (mr *MockIndexerMockRecorder) GetEhrUUIDByUserID(ctx, userID, systemID interface{}) *gomock.Call

GetEhrUUIDByUserID indicates an expected call of GetEhrUUIDByUserID.

type MockProcessingService

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

MockProcessingService is a mock of ProcessingService interface.

func NewMockProcessingService

func NewMockProcessingService(ctrl *gomock.Controller) *MockProcessingService

NewMockProcessingService creates a new mock instance.

func (*MockProcessingService) EXPECT

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

func (*MockProcessingService) NewRequest

func (m *MockProcessingService) NewRequest(reqID, userID, ehrUUID string, kind processing.RequestKind) (*processing.Request, error)

NewRequest mocks base method.

type MockProcessingServiceMockRecorder

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

MockProcessingServiceMockRecorder is the mock recorder for MockProcessingService.

func (*MockProcessingServiceMockRecorder) NewRequest

func (mr *MockProcessingServiceMockRecorder) NewRequest(reqID, userID, ehrUUID, kind interface{}) *gomock.Call

NewRequest indicates an expected call of NewRequest.

type MockQueryService

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

MockQueryService is a mock of QueryService interface.

func NewMockQueryService

func NewMockQueryService(ctrl *gomock.Controller) *MockQueryService

NewMockQueryService creates a new mock instance.

func (*MockQueryService) EXPECT

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

func (*MockQueryService) ExecQuery

ExecQuery mocks base method.

func (*MockQueryService) ExecStoredQuery

func (m *MockQueryService) ExecStoredQuery(ctx context.Context, userID, systemID, qualifiedQueryName string, query *model.QueryRequest) (*model.QueryResponse, error)

ExecStoredQuery mocks base method.

func (*MockQueryService) GetByVersion

func (m *MockQueryService) GetByVersion(ctx context.Context, userID, systemID, name string, version *base.VersionTreeID) (*model.StoredQuery, error)

GetByVersion mocks base method.

func (*MockQueryService) List

func (m *MockQueryService) List(ctx context.Context, userID, systemID, qualifiedQueryName string) ([]*model.StoredQuery, error)

List mocks base method.

func (*MockQueryService) Store

func (m *MockQueryService) Store(ctx context.Context, userID, systemID, reqID, qType, name, q string) (*model.StoredQuery, error)

Store mocks base method.

func (*MockQueryService) StoreVersion

func (m *MockQueryService) StoreVersion(ctx context.Context, userID, systemID, reqID, qType, name string, version *base.VersionTreeID, q string) (*model.StoredQuery, error)

StoreVersion mocks base method.

func (*MockQueryService) Validate

func (m *MockQueryService) Validate(data []byte) bool

Validate mocks base method.

type MockQueryServiceMockRecorder

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

MockQueryServiceMockRecorder is the mock recorder for MockQueryService.

func (*MockQueryServiceMockRecorder) ExecQuery

func (mr *MockQueryServiceMockRecorder) ExecQuery(ctx, query interface{}) *gomock.Call

ExecQuery indicates an expected call of ExecQuery.

func (*MockQueryServiceMockRecorder) ExecStoredQuery

func (mr *MockQueryServiceMockRecorder) ExecStoredQuery(ctx, userID, systemID, qualifiedQueryName, query interface{}) *gomock.Call

ExecStoredQuery indicates an expected call of ExecStoredQuery.

func (*MockQueryServiceMockRecorder) GetByVersion

func (mr *MockQueryServiceMockRecorder) GetByVersion(ctx, userID, systemID, name, version interface{}) *gomock.Call

GetByVersion indicates an expected call of GetByVersion.

func (*MockQueryServiceMockRecorder) List

func (mr *MockQueryServiceMockRecorder) List(ctx, userID, systemID, qualifiedQueryName interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockQueryServiceMockRecorder) Store

func (mr *MockQueryServiceMockRecorder) Store(ctx, userID, systemID, reqID, qType, name, q interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockQueryServiceMockRecorder) StoreVersion

func (mr *MockQueryServiceMockRecorder) StoreVersion(ctx, userID, systemID, reqID, qType, name, version, q interface{}) *gomock.Call

StoreVersion indicates an expected call of StoreVersion.

func (*MockQueryServiceMockRecorder) Validate

func (mr *MockQueryServiceMockRecorder) Validate(data interface{}) *gomock.Call

Validate indicates an expected call of Validate.

type MockSearcher

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

MockSearcher is a mock of Searcher interface.

func NewMockSearcher

func NewMockSearcher(ctrl *gomock.Controller) *MockSearcher

NewMockSearcher creates a new mock instance.

func (*MockSearcher) EXPECT

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

func (*MockSearcher) GetEhrUUIDByUserID

func (m *MockSearcher) GetEhrUUIDByUserID() (*uuid.UUID, error)

GetEhrUUIDByUserID mocks base method.

func (*MockSearcher) IsEhrBelongsToUser

func (m *MockSearcher) IsEhrBelongsToUser() bool

IsEhrBelongsToUser mocks base method.

func (*MockSearcher) IsExist

func (m *MockSearcher) IsExist(ID string) (bool, error)

IsExist mocks base method.

func (*MockSearcher) UseService

func (m *MockSearcher) UseService(s helper.Finder) *helper.Search

UseService mocks base method.

type MockSearcherMockRecorder

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

MockSearcherMockRecorder is the mock recorder for MockSearcher.

func (*MockSearcherMockRecorder) GetEhrUUIDByUserID

func (mr *MockSearcherMockRecorder) GetEhrUUIDByUserID() *gomock.Call

GetEhrUUIDByUserID indicates an expected call of GetEhrUUIDByUserID.

func (*MockSearcherMockRecorder) IsEhrBelongsToUser

func (mr *MockSearcherMockRecorder) IsEhrBelongsToUser() *gomock.Call

IsEhrBelongsToUser indicates an expected call of IsEhrBelongsToUser.

func (*MockSearcherMockRecorder) IsExist

func (mr *MockSearcherMockRecorder) IsExist(ID interface{}) *gomock.Call

IsExist indicates an expected call of IsExist.

func (*MockSearcherMockRecorder) UseService

func (mr *MockSearcherMockRecorder) UseService(s interface{}) *gomock.Call

UseService indicates an expected call of UseService.

type MockTemplateService

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

MockTemplateService is a mock of TemplateService interface.

func NewMockTemplateService

func NewMockTemplateService(ctrl *gomock.Controller) *MockTemplateService

NewMockTemplateService creates a new mock instance.

func (*MockTemplateService) EXPECT

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

func (*MockTemplateService) GetByID

func (m *MockTemplateService) GetByID(ctx context.Context, userID, systemID, templateID string) (*model.Template, error)

GetByID mocks base method.

func (*MockTemplateService) GetEhrUUIDByUserID

func (m *MockTemplateService) GetEhrUUIDByUserID(ctx context.Context, userID, systemID string) (*uuid.UUID, error)

GetEhrUUIDByUserID mocks base method.

func (*MockTemplateService) GetList

func (m *MockTemplateService) GetList(ctx context.Context, userID, systemID string) ([]*model.Template, error)

GetList mocks base method.

func (*MockTemplateService) IsExist

func (m *MockTemplateService) IsExist(ctx context.Context, args ...string) (bool, error)

IsExist mocks base method.

func (*MockTemplateService) Parser

func (m *MockTemplateService) Parser(version model.ADLVer) (template.ADLParser, error)

Parser mocks base method.

func (*MockTemplateService) Store

func (m_2 *MockTemplateService) Store(ctx context.Context, userID, systemID, reqID string, m *model.Template) error

Store mocks base method.

type MockTemplateServiceMockRecorder

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

MockTemplateServiceMockRecorder is the mock recorder for MockTemplateService.

func (*MockTemplateServiceMockRecorder) GetByID

func (mr *MockTemplateServiceMockRecorder) GetByID(ctx, userID, systemID, templateID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockTemplateServiceMockRecorder) GetEhrUUIDByUserID

func (mr *MockTemplateServiceMockRecorder) GetEhrUUIDByUserID(ctx, userID, systemID interface{}) *gomock.Call

GetEhrUUIDByUserID indicates an expected call of GetEhrUUIDByUserID.

func (*MockTemplateServiceMockRecorder) GetList

func (mr *MockTemplateServiceMockRecorder) GetList(ctx, userID, systemID interface{}) *gomock.Call

GetList indicates an expected call of GetList.

func (*MockTemplateServiceMockRecorder) IsExist

func (mr *MockTemplateServiceMockRecorder) IsExist(ctx interface{}, args ...interface{}) *gomock.Call

IsExist indicates an expected call of IsExist.

func (*MockTemplateServiceMockRecorder) Parser

func (mr *MockTemplateServiceMockRecorder) Parser(version interface{}) *gomock.Call

Parser indicates an expected call of Parser.

func (*MockTemplateServiceMockRecorder) Store

func (mr *MockTemplateServiceMockRecorder) Store(ctx, userID, systemID, reqID, m interface{}) *gomock.Call

Store indicates an expected call of Store.

type MockUserService

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

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) AddTokenInBlackList

func (m *MockUserService) AddTokenInBlackList(tokenRaw string, expires int64)

AddTokenInBlackList mocks base method.

func (*MockUserService) CreateToken

func (m *MockUserService) CreateToken(userID string) (*service.TokenDetails, error)

CreateToken mocks base method.

func (*MockUserService) EXPECT

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

func (*MockUserService) ExtractToken

func (m *MockUserService) ExtractToken(bearToken string) string

ExtractToken mocks base method.

func (*MockUserService) ExtractTokenMetadata

func (m *MockUserService) ExtractTokenMetadata(token *jwt.Token) (*service.TokenClaims, error)

ExtractTokenMetadata mocks base method.

func (*MockUserService) GetTokenHash

func (m *MockUserService) GetTokenHash(tokenRaw string) [32]byte

GetTokenHash mocks base method.

func (*MockUserService) GroupAddUser

func (m *MockUserService) GroupAddUser(ctx context.Context, userID, systemID, addUserID, addSystemID, reqID string, level access.Level, groupID *uuid.UUID) error

GroupAddUser mocks base method.

func (*MockUserService) GroupCreate

func (m *MockUserService) GroupCreate(ctx context.Context, req processing.RequestInterface, userID, systemID, groupName, groupDescription string) (*model.UserGroup, error)

GroupCreate mocks base method.

func (*MockUserService) GroupGetByID

func (m *MockUserService) GroupGetByID(ctx context.Context, userID, systemID string, groupID *uuid.UUID, groupKey *chachaPoly.Key) (*model.UserGroup, error)

GroupGetByID mocks base method.

func (*MockUserService) GroupGetList

func (m *MockUserService) GroupGetList(ctx context.Context, userID, systemID string) ([]*model.UserGroup, error)

GroupGetList mocks base method.

func (*MockUserService) GroupRemoveUser

func (m *MockUserService) GroupRemoveUser(ctx context.Context, userID, systemID, removingUserID, removeSystemID, reqID string, groupID *uuid.UUID) error

GroupRemoveUser mocks base method.

func (*MockUserService) Info

func (m *MockUserService) Info(ctx context.Context, userID, systemID string) (*model.UserInfo, error)

Info mocks base method.

func (*MockUserService) InfoByCode

func (m *MockUserService) InfoByCode(ctx context.Context, code int) (*model.UserInfo, error)

InfoByCode mocks base method.

func (*MockUserService) IsTokenInBlackList

func (m *MockUserService) IsTokenInBlackList(tokenRaw string) bool

IsTokenInBlackList mocks base method.

func (*MockUserService) Login

func (m *MockUserService) Login(ctx context.Context, userID, systemID, password string) error

Login mocks base method.

func (*MockUserService) NewProcRequest

func (m *MockUserService) NewProcRequest(reqID, userID string, kind processing.RequestKind) (processing.RequestInterface, error)

NewProcRequest mocks base method.

func (*MockUserService) Register

func (m *MockUserService) Register(ctx context.Context, user *model.UserCreateRequest, systemID, reqID string) error

Register mocks base method.

func (*MockUserService) VerifyAccess

func (m *MockUserService) VerifyAccess(userID, tokenString string) error

VerifyAccess mocks base method.

func (*MockUserService) VerifyAndGetTokenDetails

func (m *MockUserService) VerifyAndGetTokenDetails(userID, accessToken, refreshToken string) (*service.TokenDetails, error)

VerifyAndGetTokenDetails mocks base method.

func (*MockUserService) VerifyToken

func (m *MockUserService) VerifyToken(userID, tokenString string, tokenType service.TokenType) (*jwt.Token, error)

VerifyToken mocks base method.

type MockUserServiceMockRecorder

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

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) AddTokenInBlackList

func (mr *MockUserServiceMockRecorder) AddTokenInBlackList(tokenRaw, expires interface{}) *gomock.Call

AddTokenInBlackList indicates an expected call of AddTokenInBlackList.

func (*MockUserServiceMockRecorder) CreateToken

func (mr *MockUserServiceMockRecorder) CreateToken(userID interface{}) *gomock.Call

CreateToken indicates an expected call of CreateToken.

func (*MockUserServiceMockRecorder) ExtractToken

func (mr *MockUserServiceMockRecorder) ExtractToken(bearToken interface{}) *gomock.Call

ExtractToken indicates an expected call of ExtractToken.

func (*MockUserServiceMockRecorder) ExtractTokenMetadata

func (mr *MockUserServiceMockRecorder) ExtractTokenMetadata(token interface{}) *gomock.Call

ExtractTokenMetadata indicates an expected call of ExtractTokenMetadata.

func (*MockUserServiceMockRecorder) GetTokenHash

func (mr *MockUserServiceMockRecorder) GetTokenHash(tokenRaw interface{}) *gomock.Call

GetTokenHash indicates an expected call of GetTokenHash.

func (*MockUserServiceMockRecorder) GroupAddUser

func (mr *MockUserServiceMockRecorder) GroupAddUser(ctx, userID, systemID, addUserID, addSystemID, reqID, level, groupID interface{}) *gomock.Call

GroupAddUser indicates an expected call of GroupAddUser.

func (*MockUserServiceMockRecorder) GroupCreate

func (mr *MockUserServiceMockRecorder) GroupCreate(ctx, req, userID, systemID, groupName, groupDescription interface{}) *gomock.Call

GroupCreate indicates an expected call of GroupCreate.

func (*MockUserServiceMockRecorder) GroupGetByID

func (mr *MockUserServiceMockRecorder) GroupGetByID(ctx, userID, systemID, groupID, groupKey interface{}) *gomock.Call

GroupGetByID indicates an expected call of GroupGetByID.

func (*MockUserServiceMockRecorder) GroupGetList

func (mr *MockUserServiceMockRecorder) GroupGetList(ctx, userID, systemID interface{}) *gomock.Call

GroupGetList indicates an expected call of GroupGetList.

func (*MockUserServiceMockRecorder) GroupRemoveUser

func (mr *MockUserServiceMockRecorder) GroupRemoveUser(ctx, userID, systemID, removingUserID, removeSystemID, reqID, groupID interface{}) *gomock.Call

GroupRemoveUser indicates an expected call of GroupRemoveUser.

func (*MockUserServiceMockRecorder) Info

func (mr *MockUserServiceMockRecorder) Info(ctx, userID, systemID interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockUserServiceMockRecorder) InfoByCode

func (mr *MockUserServiceMockRecorder) InfoByCode(ctx, code interface{}) *gomock.Call

InfoByCode indicates an expected call of InfoByCode.

func (*MockUserServiceMockRecorder) IsTokenInBlackList

func (mr *MockUserServiceMockRecorder) IsTokenInBlackList(tokenRaw interface{}) *gomock.Call

IsTokenInBlackList indicates an expected call of IsTokenInBlackList.

func (*MockUserServiceMockRecorder) Login

func (mr *MockUserServiceMockRecorder) Login(ctx, userID, systemID, password interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockUserServiceMockRecorder) NewProcRequest

func (mr *MockUserServiceMockRecorder) NewProcRequest(reqID, userID, kind interface{}) *gomock.Call

NewProcRequest indicates an expected call of NewProcRequest.

func (*MockUserServiceMockRecorder) Register

func (mr *MockUserServiceMockRecorder) Register(ctx, user, systemID, reqID interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockUserServiceMockRecorder) VerifyAccess

func (mr *MockUserServiceMockRecorder) VerifyAccess(userID, tokenString interface{}) *gomock.Call

VerifyAccess indicates an expected call of VerifyAccess.

func (*MockUserServiceMockRecorder) VerifyAndGetTokenDetails

func (mr *MockUserServiceMockRecorder) VerifyAndGetTokenDetails(userID, accessToken, refreshToken interface{}) *gomock.Call

VerifyAndGetTokenDetails indicates an expected call of VerifyAndGetTokenDetails.

func (*MockUserServiceMockRecorder) VerifyToken

func (mr *MockUserServiceMockRecorder) VerifyToken(userID, tokenString, tokenType interface{}) *gomock.Call

VerifyToken indicates an expected call of VerifyToken.

Jump to

Keyboard shortcuts

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