Documentation ¶
Overview ¶
Package reader implement template readers.
Index ¶
Constants ¶
View Source
const ErrTemplateNotFound = errors.Error("template not found")
ErrTemplateNotFound is returned when the requested template does not exist.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileReader ¶
type FileReader struct {
// contains filtered or unexported fields
}
FileReader is a local file reader.
func NewFileReader ¶
func NewFileReader(path string, tracer trace.Tracer) *FileReader
NewFileReader returns a file reader.
type HTTPReader ¶
type HTTPReader struct {
// contains filtered or unexported fields
}
HTTPReader is an http file reader.
func NewHTTPReader ¶
func NewHTTPReader(uri string, tracer trace.Tracer) (*HTTPReader, error)
NewHTTPReader returns an http file reader.
Click to show internal directories.
Click to hide internal directories.