remote

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadHTTPStatusCodeError

type BadHTTPStatusCodeError struct {
	// contains filtered or unexported fields
}

BadHTTPStatusCodeError bad http status code error.

func (*BadHTTPStatusCodeError) Error

func (e *BadHTTPStatusCodeError) Error() string

type HTTPLoader

type HTTPLoader struct {
	// contains filtered or unexported fields
}

HTTPLoader loads http templates.

func NewHTTPTemplateLoader

func NewHTTPTemplateLoader(
	tracerProvider trace.TracerProvider,
	schemaLoader templates.SchemaLoader,
	examplesLoader templates.ExamplesLoader,
) *HTTPLoader

NewHTTPTemplateLoader constructor.

func (*HTTPLoader) LoadTemplate

func (loader *HTTPLoader) LoadTemplate(
	templatesDirPath string,
	templateName string,
	logger log.Logger,
) (templates.Template, error)

LoadTemplate loads template.

func (*HTTPLoader) TemplateType

func (*HTTPLoader) TemplateType() string

TemplateType returns template type.

type HTTPTemplate

type HTTPTemplate struct {
	// contains filtered or unexported fields
}

HTTPTemplate instance.

func (*HTTPTemplate) GetExamples

func (template *HTTPTemplate) GetExamples() templates.Examples

GetExamples return template examples.

func (*HTTPTemplate) GetName

func (template *HTTPTemplate) GetName() templates.Name

GetName return template name.

func (*HTTPTemplate) GetValidator

func (template *HTTPTemplate) GetValidator() templates.Validator

GetValidator return template validator.

func (*HTTPTemplate) Render

func (template *HTTPTemplate) Render(
	ctx context.Context,
	data templates.Data,
) templates.RenderFuture

Render template.

Jump to

Keyboard shortcuts

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