gen_all_in_one

package
v0.0.0-...-0b7460b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginName = "protoc-gen-joymicro"

Functions

Types

type File

type File struct {
	ProtoFile                    *descriptorpb.FileDescriptorProto
	Services                     []*Service
	IsEnableSpecInvokePeer       bool // 点对点调用
	IsEnableInvokeConsistentHash bool // 一致性hash调用
}

func (*File) AllServices

func (f *File) AllServices() []*Service

func (*File) BaseFileName

func (f *File) BaseFileName() string

func (*File) FileName

func (f *File) FileName() string

func (*File) HandlerInterfaceName

func (f *File) HandlerInterfaceName() string

func (*File) MultiServices

func (f *File) MultiServices() bool

func (*File) Package

func (f *File) Package() string

func (*File) ServiceInterfaceName

func (f *File) ServiceInterfaceName() string

func (*File) ServiceName

func (f *File) ServiceName() string

Name 文件只定义了单个服务,就用这个服务名作名字,否则就用文件的基础名

func (*File) ServiceName_FooBar

func (f *File) ServiceName_FooBar() string

func (*File) ServiceName_fooBar

func (f *File) ServiceName_fooBar() string

type Method

type Method struct {
	Package     string
	ProtoMethod *descriptorpb.MethodDescriptorProto
}

func (*Method) InputType

func (m *Method) InputType() string

func (*Method) Name

func (m *Method) Name() string

func (*Method) OutputType

func (m *Method) OutputType() string

type Service

type Service struct {
	ProtoService *descriptorpb.ServiceDescriptorProto
	Methods      []*Method
}

func (*Service) HandlerInterfaceName

func (s *Service) HandlerInterfaceName() string

func (*Service) Name_FooBar

func (s *Service) Name_FooBar() string

func (*Service) Name_fooBar

func (s *Service) Name_fooBar() string

func (*Service) ServiceInterfaceName

func (s *Service) ServiceInterfaceName() string

Jump to

Keyboard shortcuts

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