Documentation ¶
Index ¶
- type FakeLibrary
- func (l *FakeLibrary) GetFaqsContent(ctx context.Context, flavour feedlib.Flavour) ([]*domain.GhostCMSPost, error)
- func (l *FakeLibrary) GetFeedContent(ctx context.Context, flavour feedlib.Flavour) ([]*domain.GhostCMSPost, error)
- func (l *FakeLibrary) GetLibraryContent(ctx context.Context) ([]*domain.GhostCMSPost, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeLibrary ¶
type FakeLibrary struct { GetFeedContentFn func( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error) GetFaqsContentFn func( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error) GetLibraryContentFn func( ctx context.Context, ) ([]*domain.GhostCMSPost, error) }
FakeLibrary defines a mock Libray service
func (*FakeLibrary) GetFaqsContent ¶
func (l *FakeLibrary) GetFaqsContent( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error)
GetFaqsContent mocks getting FAQ content from ghost cms
func (*FakeLibrary) GetFeedContent ¶
func (l *FakeLibrary) GetFeedContent( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error)
GetFeedContent mocks getting feed content from ghost cms
func (*FakeLibrary) GetLibraryContent ¶
func (l *FakeLibrary) GetLibraryContent( ctx context.Context, ) ([]*domain.GhostCMSPost, error)
GetLibraryContent mocks getting Library content from ghost cms
Click to show internal directories.
Click to hide internal directories.