grpc

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientFileName   = "client.go"
	ClientStructName = "Client"
)
View Source
const (
	HandlersFileName    = "grpc_handlers.go"
	HandlersStructName  = "GrpcHandlers"
	HandlerStructSuffix = "Handler"
)
View Source
const (
	AspectSuffix = "Aspect"
)

Variables

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

Functions

func NewClientFile

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

func NewGrpcAspectMethodFile

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

func NewGrpcHandlersFile

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

Types

type GrpcAspectMethodFile

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

func (*GrpcAspectMethodFile) GetGenCodeFuncs

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

type GrpcClientFile

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

func (*GrpcClientFile) GetGenCodeFuncs

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

type GrpcHandlersFile

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

func (*GrpcHandlersFile) GetGenCodeFuncs

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

Jump to

Keyboard shortcuts

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