http

package
v0.0.0-...-075f0a8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandlersFileName    = "http_handlers.go"
	HandlersStructName  = "HttpHandlers"
	HandlerStructSuffix = "Handler"
)
View Source
const (
	AspectSuffix = "Aspect"
)

Variables

View Source
var (
	HandlersStructComments = []string{
		"Handlers collects all of the handlers that compose a service.",
	}
)

Functions

func NewHttpAspectMethodFile

func NewHttpAspectMethodFile(method parser.Method, meta *generator.Meta) (generator.Generator, error)

func NewHttpHandlersFile

func NewHttpHandlersFile(meta *generator.Meta) (generator.Generator, error)

Types

type HttpAspectMethodFile

type HttpAspectMethodFile struct {
	*generator.BaseGenerator
	Meta       *generator.Meta
	Method     parser.Method // service interface's method name
	StructName string
	PbDir      string
}

func (*HttpAspectMethodFile) GetGenCodeFuncs

func (f *HttpAspectMethodFile) GetGenCodeFuncs() []func()

type HttpHandlersFile

type HttpHandlersFile struct {
	*generator.BaseGenerator
	Meta       *generator.Meta
	StructName string
	PbDir      string
}

func (*HttpHandlersFile) GetGenCodeFuncs

func (f *HttpHandlersFile) GetGenCodeFuncs() []func()

Jump to

Keyboard shortcuts

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