Documentation ¶
Index ¶
- type CategoryRepository
- type DataTagRepository
- func (_m *DataTagRepository) DeleteDataTag(ctx context.Context, id int64, _a2 string, tx *sql.Tx) error
- func (_m *DataTagRepository) FetchDataTags(ctx context.Context, id int64, _a2 string) ([]domain.DataTag, error)
- func (_m *DataTagRepository) StoreDataTag(ctx context.Context, dt *domain.DataTag, tx *sql.Tx) error
- type EventRepository
- func (_m *EventRepository) AgendaPortal(ctx context.Context, params *domain.Request) ([]domain.Event, int64, error)
- func (_m *EventRepository) Delete(ctx context.Context, id int64) error
- func (_m *EventRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.Event, int64, error)
- func (_m *EventRepository) GetByID(ctx context.Context, id int64) (domain.Event, error)
- func (_m *EventRepository) GetByTitle(ctx context.Context, title string) (domain.Event, error)
- func (_m *EventRepository) GetTx(ctx context.Context) (*sql.Tx, error)
- func (_m *EventRepository) ListCalendar(ctx context.Context, params *domain.Request) ([]domain.Event, error)
- func (_m *EventRepository) Store(ctx context.Context, body *domain.StoreRequestEvent, tx *sql.Tx) error
- func (_m *EventRepository) Update(ctx context.Context, id int64, body *domain.StoreRequestEvent, tx *sql.Tx) error
- type FeedbackRepository
- type GeneralInformationRepository
- func (_m *GeneralInformationRepository) GetByID(ctx context.Context, id int64) (domain.GeneralInformation, error)
- func (_m *GeneralInformationRepository) GetTx(_a0 context.Context) (*sql.Tx, error)
- func (_m *GeneralInformationRepository) Store(_a0 context.Context, _a1 domain.StorePublicService, _a2 *sql.Tx) (int64, error)
- func (_m *GeneralInformationRepository) Update(_a0 context.Context, _a1 domain.UpdatePublicService, _a2 int64, _a3 *sql.Tx) error
- func (_m *GeneralInformationRepository) UpdateSlug(_a0 context.Context, _a1 domain.StorePublicService, _a2 int64, _a3 *sql.Tx) error
- type GovernmentAffairRepository
- type NewsCategoryRepository
- type NewsRepository
- type PopUpBannerRepository
- func (_m *PopUpBannerRepository) DeactiveStatus(ctx context.Context) error
- func (_m *PopUpBannerRepository) Delete(ctx context.Context, id int64) error
- func (_m *PopUpBannerRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.PopUpBanner, int64, error)
- func (_m *PopUpBannerRepository) GetByID(ctx context.Context, id int64) (domain.PopUpBanner, error)
- func (_m *PopUpBannerRepository) LiveBanner(ctx context.Context) (domain.PopUpBanner, error)
- func (_m *PopUpBannerRepository) Store(ctx context.Context, body *domain.StorePopUpBannerRequest) error
- func (_m *PopUpBannerRepository) Update(ctx context.Context, id int64, body *domain.StorePopUpBannerRequest) error
- func (_m *PopUpBannerRepository) UpdateStatus(ctx context.Context, id int64, body *domain.UpdateStatusPopUpBannerRequest) error
- type SearchRepository
- func (_m *SearchRepository) Delete(ctx context.Context, indices string, id int, _a3 string) error
- func (_m *SearchRepository) Fetch(ctx context.Context, indices string, params *domain.Request) ([]domain.SearchListResponse, int64, interface{}, error)
- func (_m *SearchRepository) SearchSuggestion(ctx context.Context, indices string, params *domain.Request) ([]domain.SuggestResponse, error)
- func (_m *SearchRepository) Store(ctx context.Context, indices string, body *domain.Search) error
- func (_m *SearchRepository) Update(ctx context.Context, indices string, id int, body *domain.Search) error
- type ServicePublicRepository
- func (_m *ServicePublicRepository) Delete(_a0 context.Context, _a1 int64) error
- func (_m *ServicePublicRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.ServicePublic, error)
- func (_m *ServicePublicRepository) GetByID(ctx context.Context, ID int64) (domain.ServicePublic, error)
- func (_m *ServicePublicRepository) GetBySlug(ctx context.Context, slug string) (domain.ServicePublic, error)
- func (_m *ServicePublicRepository) MetaFetch(ctx context.Context, params *domain.Request) (int64, string, int64, error)
- func (_m *ServicePublicRepository) Store(_a0 context.Context, _a1 domain.StorePublicService, _a2 *sql.Tx) error
- func (_m *ServicePublicRepository) Update(_a0 context.Context, _a1 domain.UpdatePublicService, _a2 int64, _a3 *sql.Tx) error
- type SpbeRalsRepository
- type TagRepository
- type UptdCabdinRepository
- type UserRepository
- func (_m *UserRepository) ChangeEmail(_a0 context.Context, _a1 uuid.UUID, _a2 string) error
- func (_m *UserRepository) ChangeStatus(_a0 context.Context, _a1 uuid.UUID, _a2 string) error
- func (_m *UserRepository) Fetch(_a0 context.Context, _a1 *domain.Request) ([]domain.User, int64, error)
- func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (domain.User, error)
- func (_m *UserRepository) GetByID(ctx context.Context, id uuid.UUID) (domain.User, error)
- func (_m *UserRepository) GetByNip(ctx context.Context, nip *string) (domain.User, error)
- func (_m *UserRepository) SetAsAdmin(_a0 context.Context, _a1 uuid.UUID, _a2 int8) error
- func (_m *UserRepository) Store(_a0 context.Context, _a1 *domain.User) error
- func (_m *UserRepository) Update(_a0 context.Context, _a1 *domain.User) error
- func (_m *UserRepository) WriteLastActive(_a0 context.Context, _a1 time.Time, _a2 *domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepository ¶
CategoryRepository is an autogenerated mock type for the CategoryRepository type
func NewCategoryRepository ¶
func NewCategoryRepository(t mockConstructorTestingTNewCategoryRepository) *CategoryRepository
NewCategoryRepository creates a new instance of CategoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type DataTagRepository ¶
DataTagRepository is an autogenerated mock type for the DataTagRepository type
func NewDataTagRepository ¶
func NewDataTagRepository(t mockConstructorTestingTNewDataTagRepository) *DataTagRepository
NewDataTagRepository creates a new instance of DataTagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DataTagRepository) DeleteDataTag ¶
func (_m *DataTagRepository) DeleteDataTag(ctx context.Context, id int64, _a2 string, tx *sql.Tx) error
DeleteDataTag provides a mock function with given fields: ctx, id, _a2, tx
func (*DataTagRepository) FetchDataTags ¶
func (_m *DataTagRepository) FetchDataTags(ctx context.Context, id int64, _a2 string) ([]domain.DataTag, error)
FetchDataTags provides a mock function with given fields: ctx, id, _a2
func (*DataTagRepository) StoreDataTag ¶
func (_m *DataTagRepository) StoreDataTag(ctx context.Context, dt *domain.DataTag, tx *sql.Tx) error
StoreDataTag provides a mock function with given fields: ctx, dt, tx
type EventRepository ¶
EventRepository is an autogenerated mock type for the EventRepository type
func NewEventRepository ¶
func NewEventRepository(t mockConstructorTestingTNewEventRepository) *EventRepository
NewEventRepository creates a new instance of EventRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventRepository) AgendaPortal ¶
func (_m *EventRepository) AgendaPortal(ctx context.Context, params *domain.Request) ([]domain.Event, int64, error)
AgendaPortal provides a mock function with given fields: ctx, params
func (*EventRepository) Delete ¶
func (_m *EventRepository) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*EventRepository) Fetch ¶
func (_m *EventRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.Event, int64, error)
Fetch provides a mock function with given fields: ctx, params
func (*EventRepository) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title
func (*EventRepository) ListCalendar ¶
func (_m *EventRepository) ListCalendar(ctx context.Context, params *domain.Request) ([]domain.Event, error)
ListCalendar provides a mock function with given fields: ctx, params
func (*EventRepository) Store ¶
func (_m *EventRepository) Store(ctx context.Context, body *domain.StoreRequestEvent, tx *sql.Tx) error
Store provides a mock function with given fields: ctx, body, tx
type FeedbackRepository ¶
FeedbackRepository is an autogenerated mock type for the FeedbackRepository type
func NewFeedbackRepository ¶
func NewFeedbackRepository(t mockConstructorTestingTNewFeedbackRepository) *FeedbackRepository
NewFeedbackRepository creates a new instance of FeedbackRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type GeneralInformationRepository ¶
GeneralInformationRepository is an autogenerated mock type for the GeneralInformationRepository type
func NewGeneralInformationRepository ¶
func NewGeneralInformationRepository(t mockConstructorTestingTNewGeneralInformationRepository) *GeneralInformationRepository
NewGeneralInformationRepository creates a new instance of GeneralInformationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GeneralInformationRepository) GetByID ¶
func (_m *GeneralInformationRepository) GetByID(ctx context.Context, id int64) (domain.GeneralInformation, error)
GetByID provides a mock function with given fields: ctx, id
func (*GeneralInformationRepository) Store ¶
func (_m *GeneralInformationRepository) Store(_a0 context.Context, _a1 domain.StorePublicService, _a2 *sql.Tx) (int64, error)
Store provides a mock function with given fields: _a0, _a1, _a2
func (*GeneralInformationRepository) Update ¶
func (_m *GeneralInformationRepository) Update(_a0 context.Context, _a1 domain.UpdatePublicService, _a2 int64, _a3 *sql.Tx) error
Update provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*GeneralInformationRepository) UpdateSlug ¶
func (_m *GeneralInformationRepository) UpdateSlug(_a0 context.Context, _a1 domain.StorePublicService, _a2 int64, _a3 *sql.Tx) error
UpdateSlug provides a mock function with given fields: _a0, _a1, _a2, _a3
type GovernmentAffairRepository ¶
GovernmentAffairRepository is an autogenerated mock type for the GovernmentAffairRepository type
func NewGovernmentAffairRepository ¶
func NewGovernmentAffairRepository(t mockConstructorTestingTNewGovernmentAffairRepository) *GovernmentAffairRepository
NewGovernmentAffairRepository creates a new instance of GovernmentAffairRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GovernmentAffairRepository) Fetch ¶
func (_m *GovernmentAffairRepository) Fetch(ctx context.Context) ([]domain.GovernmentAffair, error)
Fetch provides a mock function with given fields: ctx
type NewsCategoryRepository ¶
NewsCategoryRepository is an autogenerated mock type for the NewsCategoryRepository type
type NewsRepository ¶
NewsRepository is an autogenerated mock type for the NewsRepository type
func (*NewsRepository) AddView ¶
func (_m *NewsRepository) AddView(ctx context.Context, id int64) error
AddView provides a mock function with given fields: ctx, id
type PopUpBannerRepository ¶
PopUpBannerRepository is an autogenerated mock type for the PopUpBannerRepository type
func NewPopUpBannerRepository ¶
func NewPopUpBannerRepository(t mockConstructorTestingTNewPopUpBannerRepository) *PopUpBannerRepository
NewPopUpBannerRepository creates a new instance of PopUpBannerRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PopUpBannerRepository) DeactiveStatus ¶
func (_m *PopUpBannerRepository) DeactiveStatus(ctx context.Context) error
DeactiveStatus provides a mock function with given fields: ctx
func (*PopUpBannerRepository) Delete ¶
func (_m *PopUpBannerRepository) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*PopUpBannerRepository) Fetch ¶
func (_m *PopUpBannerRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.PopUpBanner, int64, error)
Fetch provides a mock function with given fields: ctx, params
func (*PopUpBannerRepository) GetByID ¶
func (_m *PopUpBannerRepository) GetByID(ctx context.Context, id int64) (domain.PopUpBanner, error)
GetByID provides a mock function with given fields: ctx, id
func (*PopUpBannerRepository) LiveBanner ¶
func (_m *PopUpBannerRepository) LiveBanner(ctx context.Context) (domain.PopUpBanner, error)
LiveBanner provides a mock function with given fields: ctx
func (*PopUpBannerRepository) Store ¶
func (_m *PopUpBannerRepository) Store(ctx context.Context, body *domain.StorePopUpBannerRequest) error
Store provides a mock function with given fields: ctx, body
func (*PopUpBannerRepository) Update ¶
func (_m *PopUpBannerRepository) Update(ctx context.Context, id int64, body *domain.StorePopUpBannerRequest) error
Update provides a mock function with given fields: ctx, id, body
func (*PopUpBannerRepository) UpdateStatus ¶
func (_m *PopUpBannerRepository) UpdateStatus(ctx context.Context, id int64, body *domain.UpdateStatusPopUpBannerRequest) error
UpdateStatus provides a mock function with given fields: ctx, id, body
type SearchRepository ¶
SearchRepository is an autogenerated mock type for the SearchRepository type
func NewSearchRepository ¶
func NewSearchRepository(t mockConstructorTestingTNewSearchRepository) *SearchRepository
NewSearchRepository creates a new instance of SearchRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SearchRepository) Delete ¶
Delete provides a mock function with given fields: ctx, indices, id, _a3
func (*SearchRepository) Fetch ¶
func (_m *SearchRepository) Fetch(ctx context.Context, indices string, params *domain.Request) ([]domain.SearchListResponse, int64, interface{}, error)
Fetch provides a mock function with given fields: ctx, indices, params
func (*SearchRepository) SearchSuggestion ¶
func (_m *SearchRepository) SearchSuggestion(ctx context.Context, indices string, params *domain.Request) ([]domain.SuggestResponse, error)
SearchSuggestion provides a mock function with given fields: ctx, indices, params
type ServicePublicRepository ¶
ServicePublicRepository is an autogenerated mock type for the ServicePublicRepository type
func NewServicePublicRepository ¶
func NewServicePublicRepository(t mockConstructorTestingTNewServicePublicRepository) *ServicePublicRepository
NewServicePublicRepository creates a new instance of ServicePublicRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ServicePublicRepository) Delete ¶
func (_m *ServicePublicRepository) Delete(_a0 context.Context, _a1 int64) error
Delete provides a mock function with given fields: _a0, _a1
func (*ServicePublicRepository) Fetch ¶
func (_m *ServicePublicRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.ServicePublic, error)
Fetch provides a mock function with given fields: ctx, params
func (*ServicePublicRepository) GetByID ¶
func (_m *ServicePublicRepository) GetByID(ctx context.Context, ID int64) (domain.ServicePublic, error)
GetByID provides a mock function with given fields: ctx, ID
func (*ServicePublicRepository) GetBySlug ¶
func (_m *ServicePublicRepository) GetBySlug(ctx context.Context, slug string) (domain.ServicePublic, error)
GetBySlug provides a mock function with given fields: ctx, slug
func (*ServicePublicRepository) MetaFetch ¶
func (_m *ServicePublicRepository) MetaFetch(ctx context.Context, params *domain.Request) (int64, string, int64, error)
MetaFetch provides a mock function with given fields: ctx, params
func (*ServicePublicRepository) Store ¶
func (_m *ServicePublicRepository) Store(_a0 context.Context, _a1 domain.StorePublicService, _a2 *sql.Tx) error
Store provides a mock function with given fields: _a0, _a1, _a2
type SpbeRalsRepository ¶
SpbeRalsRepository is an autogenerated mock type for the SpbeRalsRepository type
func NewSpbeRalsRepository ¶
func NewSpbeRalsRepository(t mockConstructorTestingTNewSpbeRalsRepository) *SpbeRalsRepository
NewSpbeRalsRepository creates a new instance of SpbeRalsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type TagRepository ¶
TagRepository is an autogenerated mock type for the TagRepository type
func NewTagRepository ¶
func NewTagRepository(t mockConstructorTestingTNewTagRepository) *TagRepository
NewTagRepository creates a new instance of TagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TagRepository) FetchTag ¶
func (_m *TagRepository) FetchTag(ctx context.Context, param *domain.Request) ([]domain.Tag, int64, error)
FetchTag provides a mock function with given fields: ctx, param
func (*TagRepository) GetTagByName ¶
GetTagByName provides a mock function with given fields: ctx, name
type UptdCabdinRepository ¶
UptdCabdinRepository is an autogenerated mock type for the UptdCabdinRepository type
func NewUptdCabdinRepository ¶
func NewUptdCabdinRepository(t mockConstructorTestingTNewUptdCabdinRepository) *UptdCabdinRepository
NewUptdCabdinRepository creates a new instance of UptdCabdinRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UptdCabdinRepository) Fetch ¶
func (_m *UptdCabdinRepository) Fetch(ctx context.Context) ([]domain.UptdCabdin, error)
Fetch provides a mock function with given fields: ctx
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserRepository) ChangeEmail ¶
ChangeEmail provides a mock function with given fields: _a0, _a1, _a2
func (*UserRepository) ChangeStatus ¶
ChangeStatus provides a mock function with given fields: _a0, _a1, _a2
func (*UserRepository) Fetch ¶
func (_m *UserRepository) Fetch(_a0 context.Context, _a1 *domain.Request) ([]domain.User, int64, error)
Fetch provides a mock function with given fields: _a0, _a1
func (*UserRepository) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
func (*UserRepository) SetAsAdmin ¶
SetAsAdmin provides a mock function with given fields: _a0, _a1, _a2
func (*UserRepository) WriteLastActive ¶
func (_m *UserRepository) WriteLastActive(_a0 context.Context, _a1 time.Time, _a2 *domain.User) error
WriteLastActive provides a mock function with given fields: _a0, _a1, _a2
Source Files ¶
- CategoryRepositoryMocks.go
- DataTagRepositoryMocks.go
- EventRepositoryMocks.go
- FeedbackRepositoryMocks.go
- GeneralInformationRepositoryMocks.go
- GovernmentAffairRepositoryMocks.go
- NewsCategoryRepository.go
- NewsRepository.go
- PopUpBannerRepositoryMocks.go
- SearchRepositoryMocks.go
- ServicePublicRepositoryMocks.go
- SpbeRalsRepositoryMocks.go
- TagRepositoryMocks.go
- UptdCabdinRepositoryMocks.go
- UserRepositoryMocks.go