library

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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