Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentLoader ¶
type ContentLoader interface {
Load(ctx context.Context, url string) (*fileresource.FileResource, error)
}
ContentLoader loads content by url
func NewContentLoader ¶
func NewContentLoader(log logger.Logger, config *config.Web) ContentLoader
type ContentLoaderImpl ¶
type ContentLoaderImpl struct {
// contains filtered or unexported fields
}
func (*ContentLoaderImpl) Load ¶
func (cl *ContentLoaderImpl) Load(ctx context.Context, url string) (*fileresource.FileResource, error)
Load gets context and an url of a OpenApi file (Swagger file) string as parameter and returns a FileResource containing the link, optionally name and main content of the file.
Click to show internal directories.
Click to hide internal directories.