processor

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

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

Errors ...

func (*Errors) Process

func (s *Errors) Process(_ *api.GenerationInfo, iface *api.Interface) (err error)

Process ...

type HTTPMethod

type HTTPMethod interface {
	Process(httpInfoMethod *api.HTTPMethod, iface *api.Interface, method *types.Function) (err error)
}

HTTPMethod ...

func NewHTTPMethod

func NewHTTPMethod(tagMark string, tagsParser httpServerTagsParser) HTTPMethod

NewHTTPMethod ...

type Processor

type Processor interface {
	Process(info *api.GenerationInfo, iface *api.Interface) (err error)
}

Processor ...

func NewErrors

func NewErrors(
	tagMark string,
	uiErrorsRender serviceRender,
	clientErrorsRender serviceRender,
) Processor

NewErrors ...

func NewHTTPClient

func NewHTTPClient(
	isTLS bool,
	isInsecureTLS bool,
	clientRender httpRender,
	transportRender httpRender,
	builderRender httpRender,
) Processor

NewHTTPClient ...

func NewHTTPServer

func NewHTTPServer(serverRender httpRender, transportRender httpRender, builderRender httpRender) Processor

NewHTTPServer ...

func NewInstrumenting

func NewInstrumenting(instrumentingRender serviceRender) Processor

NewInstrumenting ...

func NewLogging

func NewLogging(loggingRender serviceRender) Processor

NewLogging ...

func NewMock

func NewMock(mockRender serviceRender) Processor

NewMock ...

func NewSwagger

func NewSwagger(
	tagMark string,
	httpMethodProcessor HTTPMethod,
	swaggerTagsParser swaggerTagsParser,
	mod mod,
	goGeneratedAutomaticallyPrefix []byte,
) Processor

NewSwagger ...

type Services

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

Services ...

func NewServices

func NewServices(tagMark string, processors map[string]Processor, httpMethodProcessor HTTPMethod, metricsTag string) *Services

NewServices ...

func (*Services) Process

func (s *Services) Process(info *api.GenerationInfo, astra *types.File, outPath string) (err error)

Process ...

Jump to

Keyboard shortcuts

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