Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional ClientOptions client_options = 50001;
E_ClientOptions = &file_option_proto_extTypes[1]
)
Extension fields to descriptorpb.FileOptions.
View Source
var (
// optional CommandOptions command_options = 50001;
E_CommandOptions = &file_option_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_option_proto protoreflect.FileDescriptor
Functions ¶
func FindMessageType ¶
func FindMessageType(protos []*descriptorpb.FileDescriptorProto, name string) *descriptorpb.DescriptorProto
Types ¶
type ClientOptions ¶
type ClientOptions struct { Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // contains filtered or unexported fields }
func (*ClientOptions) Descriptor
deprecated
func (*ClientOptions) Descriptor() ([]byte, []int)
Deprecated: Use ClientOptions.ProtoReflect.Descriptor instead.
func (*ClientOptions) GetRepository ¶
func (x *ClientOptions) GetRepository() string
func (*ClientOptions) ProtoMessage ¶
func (*ClientOptions) ProtoMessage()
func (*ClientOptions) ProtoReflect ¶
func (x *ClientOptions) ProtoReflect() protoreflect.Message
func (*ClientOptions) Reset ¶
func (x *ClientOptions) Reset()
func (*ClientOptions) String ¶
func (x *ClientOptions) String() string
type CommandOptions ¶
type CommandOptions struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*CommandOptions) Descriptor
deprecated
func (*CommandOptions) Descriptor() ([]byte, []int)
Deprecated: Use CommandOptions.ProtoReflect.Descriptor instead.
func (*CommandOptions) GetPath ¶
func (x *CommandOptions) GetPath() string
func (*CommandOptions) ProtoMessage ¶
func (*CommandOptions) ProtoMessage()
func (*CommandOptions) ProtoReflect ¶
func (x *CommandOptions) ProtoReflect() protoreflect.Message
func (*CommandOptions) Reset ¶
func (x *CommandOptions) Reset()
func (*CommandOptions) String ¶
func (x *CommandOptions) String() string
type LocationMessage ¶
type LocationMessage struct { Location *descriptor.SourceCodeInfo_Location Message *descriptor.DescriptorProto LeadingComments []string }
type Procedure ¶
type Procedure struct { *descriptorpb.MethodDescriptorProto InputStreaming bool InputMessage *descriptorpb.DescriptorProto OutputStreaming bool OutputMessage *descriptorpb.DescriptorProto }
type Service ¶
type Service struct { *descriptorpb.ServiceDescriptorProto Procedures []*Procedure Proto *descriptorpb.FileDescriptorProto }
func GetServices ¶
func GetServices(req *plugin.CodeGeneratorRequest, proto *descriptorpb.FileDescriptorProto) []*Service
GetServices will map the required information to make a single command in cobra. This will require the service itself as we will create a client to this service, a procedure which reflects the cobra command, and the input and output message types to be sent to and recieved by the service respectively. Appended service procedures in the returned list may still be invalid.
Click to show internal directories.
Click to hide internal directories.