Documentation
¶
Index ¶
- Constants
- Variables
- func NewClientFile(meta *generator.Meta) (generator.Generator, error)
- func NewGrpcAspectMethodFile(method parser.Method, meta *generator.Meta) (generator.Generator, error)
- func NewGrpcHandlersFile(meta *generator.Meta) (generator.Generator, error)
- type GrpcAspectMethodFile
- type GrpcClientFile
- type GrpcHandlersFile
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 NewGrpcAspectMethodFile ¶
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()
Click to show internal directories.
Click to hide internal directories.