load

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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

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.

Directories

Path Synopsis
Package load is a generated GoMock package.
Package load is a generated GoMock package.

Jump to

Keyboard shortcuts

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