Documentation ¶
Index ¶
- type ImplLibrary
- func (l *ImplLibrary) GetFaqsContent(ctx context.Context, flavour feedlib.Flavour) ([]*domain.GhostCMSPost, error)
- func (l *ImplLibrary) GetFeedContent(ctx context.Context, flavour feedlib.Flavour) ([]*domain.GhostCMSPost, error)
- func (l *ImplLibrary) GetLibraryContent(ctx context.Context) ([]*domain.GhostCMSPost, error)
- type UsecaseLibrary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImplLibrary ¶
type ImplLibrary struct {
// contains filtered or unexported fields
}
ImplLibrary is the library service implementation
func NewLibrary ¶
func NewLibrary(infrastructure infrastructure.Interactor) *ImplLibrary
NewLibrary initializes a Library service instance
func (*ImplLibrary) GetFaqsContent ¶
func (l *ImplLibrary) GetFaqsContent( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error)
GetFaqsContent gets FAQ content from ghost cms
func (*ImplLibrary) GetFeedContent ¶
func (l *ImplLibrary) GetFeedContent( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error)
GetFeedContent gets feed content from ghost cms
func (*ImplLibrary) GetLibraryContent ¶
func (l *ImplLibrary) GetLibraryContent( ctx context.Context, ) ([]*domain.GhostCMSPost, error)
GetLibraryContent gets Library content from ghost cms
type UsecaseLibrary ¶
type UsecaseLibrary interface { GetFeedContent( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error) GetFaqsContent( ctx context.Context, flavour feedlib.Flavour, ) ([]*domain.GhostCMSPost, error) GetLibraryContent( ctx context.Context, ) ([]*domain.GhostCMSPost, error) }
UsecaseLibrary defines Libray service usecases interface
Click to show internal directories.
Click to hide internal directories.