option

package
v0.0.0-...-1f973d2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

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
}

func (*Procedure) IsValid

func (p *Procedure) IsValid() bool

type Service

type Service struct {
	*descriptorpb.ServiceDescriptorProto
	Procedures []*Procedure
	Proto      *descriptorpb.FileDescriptorProto
}

func GetServices

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.

Jump to

Keyboard shortcuts

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