Documentation ¶
Index ¶
- Variables
- func GenerateFile(protoFile *descriptorpb.FileDescriptorProto) []*pluginpb.CodeGeneratorResponse_File
- type File
- func (f *File) AllServices() []*Service
- func (f *File) BaseFileName() string
- func (f *File) FileName() string
- func (f *File) HandlerInterfaceName() string
- func (f *File) MultiServices() bool
- func (f *File) Package() string
- func (f *File) ServiceInterfaceName() string
- func (f *File) ServiceName() string
- func (f *File) ServiceName_FooBar() string
- func (f *File) ServiceName_fooBar() string
- type Method
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginName = "protoc-gen-joymicro"
Functions ¶
func GenerateFile ¶
func GenerateFile(protoFile *descriptorpb.FileDescriptorProto) []*pluginpb.CodeGeneratorResponse_File
Types ¶
type File ¶
type File struct { ProtoFile *descriptorpb.FileDescriptorProto Services []*Service IsEnableSpecInvokePeer bool // 点对点调用 IsEnableInvokeConsistentHash bool // 一致性hash调用 }
func (*File) AllServices ¶
func (*File) BaseFileName ¶
func (*File) HandlerInterfaceName ¶
func (*File) MultiServices ¶
func (*File) ServiceInterfaceName ¶
func (*File) ServiceName ¶
Name 文件只定义了单个服务,就用这个服务名作名字,否则就用文件的基础名
func (*File) ServiceName_FooBar ¶
func (*File) ServiceName_fooBar ¶
type Method ¶
type Method struct { Package string ProtoMethod *descriptorpb.MethodDescriptorProto }
func (*Method) OutputType ¶
type Service ¶
type Service struct { ProtoService *descriptorpb.ServiceDescriptorProto Methods []*Method }
func (*Service) HandlerInterfaceName ¶
func (*Service) Name_FooBar ¶
func (*Service) Name_fooBar ¶
func (*Service) ServiceInterfaceName ¶
Click to show internal directories.
Click to hide internal directories.