Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRequireUnimplemented ¶
func SetRequireUnimplemented(req bool)
Types ¶
type File ¶
type File = pluginpb.CodeGeneratorResponse_File
func GenerateCode ¶
func GenerateCode(input string, raguOpts ...GenerateCodeOption) ([]*File, error)
type GenerateCodeOption ¶ added in v0.2.3
type GenerateCodeOption func(*GenerateCodeOptions)
func ExperimentalHideEmptyMessages ¶ added in v0.2.3
func ExperimentalHideEmptyMessages() GenerateCodeOption
Enables an experimental feature that will omit parameters and return values of type "emptypb.Empty" from generated code. Enables more natural use of gRPC methods that accept no arguments and/or return no values (other than error).
type GenerateCodeOptions ¶ added in v0.2.3
type GenerateCodeOptions struct {
// contains filtered or unexported fields
}
func (*GenerateCodeOptions) Apply ¶ added in v0.2.3
func (o *GenerateCodeOptions) Apply(opts ...GenerateCodeOption)
Click to show internal directories.
Click to hide internal directories.