Documentation
¶
Index ¶
- func Add(n1, n2 int) int
- func CreateCodeGeneratorResponse(ctx context.Context, req *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
- func CreateMap(pairs ...any) (map[string]any, error)
- func LocalVariable(v string) string
- func ParentCtx(level int) (string, error)
- func WatchMode() func(*Generator) error
- type ActionType
- type Argument
- type AutoBindReturnField
- type BadRequest
- type BadRequestFieldViolation
- type BuildCache
- type BuildCacheMap
- type CELFunction
- type CELFunctionArgument
- type CELFunctionReturn
- type CELPlugin
- type CELReturnField
- type CastEnum
- type CastEnumValue
- type CastField
- func (f *CastField) CastWithValidationName() string
- func (f *CastField) IsEnum() bool
- func (f *CastField) IsEnumToNumber() bool
- func (f *CastField) IsMap() bool
- func (f *CastField) IsNumberToEnum() bool
- func (f *CastField) IsOneof() bool
- func (f *CastField) IsRequiredValidationNumber() bool
- func (f *CastField) IsSlice() bool
- func (f *CastField) IsStruct() bool
- func (f *CastField) RequestProtoFQDN() string
- func (f *CastField) RequestType() string
- func (f *CastField) ResponseProtoFQDN() string
- func (f *CastField) ResponseType() string
- func (f *CastField) ToEnum() (*CastEnum, error)
- func (f *CastField) ToMap() *CastMap
- func (f *CastField) ToOneof() *CastOneof
- func (f *CastField) ToSlice() *CastSlice
- func (f *CastField) ToStruct() *CastStruct
- type CastMap
- type CastOneof
- type CastOneofStruct
- type CastSlice
- type CastStruct
- type CastStructField
- type CodeGenerator
- type CodeGeneratorOption
- type Config
- type CustomResolver
- type CustomResolverReturnField
- type DeclVariable
- type DependentMethod
- type Enum
- type EnumAttribute
- type EnumSelectorSetterParam
- type EnumValueAttribute
- type Env
- type EnvVar
- type Field
- type File
- func (f *File) CELPlugins() []*CELPlugin
- func (f *File) DefaultImports() []*Import
- func (f *File) EnumAttributes() []*EnumAttribute
- func (f *File) Enums() []*Enum
- func (f *File) Imports() []*Import
- func (f *File) Services() []*Service
- func (f *File) Source() string
- func (f *File) StandardImports() []*Import
- func (f *File) Version() string
- type GRPCError
- type GRPCErrorDetail
- func (detail *GRPCErrorDetail) BadRequests() []*BadRequest
- func (detail *GRPCErrorDetail) By() []*GRPCErrorDetailBy
- func (detail *GRPCErrorDetail) LocalizedMessages() []*LocalizedMessage
- func (detail *GRPCErrorDetail) MessageSet() *VariableDefinitionSet
- func (detail *GRPCErrorDetail) PreconditionFailures() []*PreconditionFailure
- func (detail *GRPCErrorDetail) VariableDefinitionSet() *VariableDefinitionSet
- type GRPCErrorDetailBy
- type Generator
- type Import
- type LocalizedMessage
- type LogValue
- type LogValueAttr
- type MapResolver
- func (r *MapResolver) Arguments() []*Argument
- func (r *MapResolver) Caller() string
- func (r *MapResolver) EnumCastFunc() (string, error)
- func (r *MapResolver) EnumDrcType() (string, error)
- func (r *MapResolver) EnumSelector() (*EnumSelectorSetterParam, error)
- func (r *MapResolver) EnumSrcType() (string, error)
- func (r *MapResolver) EnumSrcZeroValue() (string, error)
- func (r *MapResolver) IsBy() bool
- func (r *MapResolver) IsEnum() bool
- func (r *MapResolver) IsMessage() bool
- func (r *MapResolver) IteratorCELType() string
- func (r *MapResolver) IteratorName() string
- func (r *MapResolver) IteratorSource() string
- func (r *MapResolver) IteratorSourceType() string
- func (r *MapResolver) IteratorType() string
- func (r *MapResolver) IteratorZeroValue() string
- func (r *MapResolver) MapOutType() string
- func (r *MapResolver) RequestType() string
- type Message
- func (m *Message) CELCacheIndex() int
- func (m *Message) CustomResolverArguments() []*Argument
- func (m *Message) CustomResolverName() string
- func (m *Message) DeclVariables() []*DeclVariable
- func (m *Message) IsDeclVariables() bool
- func (m *Message) LogValueReturnType() string
- func (m *Message) ProtoFQDN() string
- func (m *Message) RequestProtoType() string
- func (m *Message) RequestType() string
- func (m *Message) ResolverName() string
- func (m *Message) ReturnFields() ([]*ReturnField, error)
- func (m *Message) ReturnType() string
- func (m *Message) VariableDefinitionSet() *VariableDefinitionSet
- type Method
- func (m *Method) ArgumentName() string
- func (m *Method) CustomResponse() bool
- func (m *Method) Name() string
- func (m *Method) ProtoFQDN() string
- func (m *Method) RequestType() string
- func (m *Method) ResolverName() string
- func (m *Method) ResponseCastFuncName() string
- func (m *Method) ReturnType() string
- func (m *Method) ReturnTypeArguments() []string
- func (m *Method) ReturnTypeWithoutPtr() string
- func (m *Method) Timeout() string
- func (m *Method) UseTimeout() bool
- type OneofField
- type OneofReturnField
- type OneofType
- type Option
- type PluginConfig
- type PluginOption
- type PluginRequest
- type PostProcessHandler
- type PreconditionFailure
- type PreconditionFailureViolation
- type ProtoField
- type ProtoFileResult
- type ResponseVariable
- type Result
- type ReturnField
- type Service
- func (s *Service) CELCacheIndex() int
- func (s *Service) CELPlugins() []*CELPlugin
- func (s *Service) CastFields() []*CastField
- func (s *Service) CustomResolvers() []*CustomResolver
- func (s *Service) DependentMethods() []*DependentMethod
- func (s *Service) Env() *Env
- func (s *Service) LogValues() []*LogValue
- func (s *Service) Messages() []*Message
- func (s *Service) Methods() []*Method
- func (s *Service) OneofTypes() []*OneofType
- func (s *Service) PackageName() string
- func (s *Service) ServiceDependencies() []*ServiceDependency
- func (s *Service) ServiceName() string
- func (s *Service) Types() Types
- type ServiceDependency
- func (dep *ServiceDependency) ClientConstructor() string
- func (dep *ServiceDependency) ClientName() string
- func (dep *ServiceDependency) ClientType() string
- func (dep *ServiceDependency) NameConfig() string
- func (dep *ServiceDependency) PrivateClientName() string
- func (dep *ServiceDependency) ServiceName() string
- type SetterParam
- type Type
- type Types
- type VariableDefinition
- func (d *VariableDefinition) Arguments() []*Argument
- func (d *VariableDefinition) By() *resolver.CELValue
- func (d *VariableDefinition) CELCacheIndex() int
- func (d *VariableDefinition) CELType() string
- func (d *VariableDefinition) Caller() string
- func (d *VariableDefinition) DependentMethodName() string
- func (d *VariableDefinition) Enum() *resolver.EnumExpr
- func (d *VariableDefinition) EnumCastFunc() string
- func (d *VariableDefinition) EnumSelector() *EnumSelectorSetterParam
- func (d *VariableDefinition) EnumSrcType() string
- func (d *VariableDefinition) EnumSrcZeroValue() string
- func (d *VariableDefinition) GRPCErrors() []*GRPCError
- func (d *VariableDefinition) HasErrorHandler() bool
- func (d *VariableDefinition) If() string
- func (d *VariableDefinition) IsBy() bool
- func (d *VariableDefinition) IsCall() bool
- func (d *VariableDefinition) IsEnum() bool
- func (d *VariableDefinition) IsMap() bool
- func (d *VariableDefinition) IsValidation() bool
- func (d *VariableDefinition) Key() string
- func (d *VariableDefinition) LogValueRequestType() string
- func (d *VariableDefinition) MapResolver() *MapResolver
- func (d *VariableDefinition) MethodFQDN() string
- func (d *VariableDefinition) ProtoComment() string
- func (d *VariableDefinition) RequestType() string
- func (d *VariableDefinition) RequestTypeFQDN() string
- func (d *VariableDefinition) ResponseVariable() *ResponseVariable
- func (d *VariableDefinition) Retry() *resolver.RetryPolicy
- func (d *VariableDefinition) ReturnType() string
- func (d *VariableDefinition) ServiceName() string
- func (d *VariableDefinition) Timeout() string
- func (d *VariableDefinition) Type() string
- func (d *VariableDefinition) UseArgs() bool
- func (d *VariableDefinition) UseIf() bool
- func (d *VariableDefinition) UseResponseVariable() bool
- func (d *VariableDefinition) UseRetry() bool
- func (d *VariableDefinition) UseTimeout() bool
- func (d *VariableDefinition) ValidationError() *GRPCError
- func (d *VariableDefinition) ZeroValue() string
- type VariableDefinitionGroup
- func (g *VariableDefinitionGroup) End() *VariableDefinition
- func (g *VariableDefinitionGroup) ExistsEnd() bool
- func (g *VariableDefinitionGroup) ExistsStart() bool
- func (g *VariableDefinitionGroup) IsConcurrent() bool
- func (g *VariableDefinitionGroup) Start() *VariableDefinitionGroup
- func (g *VariableDefinitionGroup) Starts() []*VariableDefinitionGroup
- type VariableDefinitionSet
- type WasmPluginOption
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCodeGeneratorResponse ¶
func CreateCodeGeneratorResponse(ctx context.Context, req *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
func CreateMap ¶ added in v0.1.3
CreateMap creates a map from a list of key-value pairs to pass multiple arguments to sub-templates.
func LocalVariable ¶ added in v0.17.0
Types ¶
type ActionType ¶
type ActionType string
const ( KeepAction ActionType = "keep" CreateAction ActionType = "create" DeleteAction ActionType = "delete" UpdateAction ActionType = "update" ProtocAction ActionType = "protoc" )
type AutoBindReturnField ¶ added in v1.0.0
type BadRequest ¶ added in v0.5.2
type BadRequest struct { *resolver.BadRequest // contains filtered or unexported fields }
func (*BadRequest) FieldViolations ¶ added in v0.5.2
func (b *BadRequest) FieldViolations() []*BadRequestFieldViolation
type BadRequestFieldViolation ¶ added in v0.5.2
type BadRequestFieldViolation struct { *resolver.BadRequestFieldViolation // contains filtered or unexported fields }
func (*BadRequestFieldViolation) CELCacheIndex ¶ added in v0.13.8
func (v *BadRequestFieldViolation) CELCacheIndex() int
type BuildCache ¶
type BuildCache struct { Responses []*pluginpb.CodeGeneratorResponse FederationFiles []*resolver.File }
type BuildCacheMap ¶ added in v0.4.0
type BuildCacheMap map[string]*BuildCache
type CELFunction ¶ added in v0.10.0
type CELFunction struct { *resolver.CELFunction // contains filtered or unexported fields }
func (*CELFunction) Args ¶ added in v0.10.0
func (f *CELFunction) Args() []*CELFunctionArgument
func (*CELFunction) ExportName ¶ added in v0.10.0
func (f *CELFunction) ExportName() string
func (*CELFunction) GoName ¶ added in v0.17.2
func (f *CELFunction) GoName() string
func (*CELFunction) IsMethod ¶ added in v0.10.0
func (f *CELFunction) IsMethod() bool
func (*CELFunction) Name ¶ added in v0.10.0
func (f *CELFunction) Name() string
func (*CELFunction) Return ¶ added in v0.10.0
func (f *CELFunction) Return() *CELFunctionReturn
type CELFunctionArgument ¶ added in v0.10.0
type CELFunctionArgument struct {
// contains filtered or unexported fields
}
func (*CELFunctionArgument) CELType ¶ added in v0.10.0
func (f *CELFunctionArgument) CELType() string
func (*CELFunctionArgument) Converter ¶ added in v0.13.8
func (f *CELFunctionArgument) Converter() string
func (*CELFunctionArgument) Type ¶ added in v0.10.0
func (f *CELFunctionArgument) Type() string
type CELFunctionReturn ¶ added in v0.10.0
type CELFunctionReturn struct {
// contains filtered or unexported fields
}
func (*CELFunctionReturn) CELType ¶ added in v0.10.0
func (r *CELFunctionReturn) CELType() string
func (*CELFunctionReturn) Converter ¶ added in v0.13.8
func (r *CELFunctionReturn) Converter() string
func (*CELFunctionReturn) FuncName ¶ added in v0.10.0
func (r *CELFunctionReturn) FuncName() string
func (*CELFunctionReturn) Type ¶ added in v0.10.0
func (r *CELFunctionReturn) Type() string
type CELPlugin ¶ added in v0.10.0
func (*CELPlugin) FederationVersion ¶ added in v0.15.0
func (*CELPlugin) Functions ¶ added in v0.10.0
func (p *CELPlugin) Functions() []*CELFunction
func (*CELPlugin) PluginFunctions ¶ added in v0.10.0
func (p *CELPlugin) PluginFunctions() []*CELFunction
func (*CELPlugin) PluginName ¶ added in v0.10.0
type CELReturnField ¶ added in v1.0.0
type CELReturnField struct { CEL *resolver.CELValue SetterParam *SetterParam ProtoComment string Type string }
type CastEnum ¶
type CastEnum struct { FromValues []*CastEnumValue DefaultValue string }
type CastEnumValue ¶
type CastField ¶
type CastField struct { Name string // contains filtered or unexported fields }
func (*CastField) CastWithValidationName ¶ added in v0.17.0
func (*CastField) IsEnumToNumber ¶ added in v0.13.7
func (*CastField) IsNumberToEnum ¶ added in v0.13.7
func (*CastField) IsRequiredValidationNumber ¶ added in v0.17.0
func (*CastField) RequestProtoFQDN ¶
func (*CastField) RequestType ¶
func (*CastField) ResponseProtoFQDN ¶
func (*CastField) ResponseType ¶
func (*CastField) ToStruct ¶
func (f *CastField) ToStruct() *CastStruct
type CastOneofStruct ¶
type CastOneofStruct struct { Name string Fields []*CastStructField }
type CastStruct ¶
type CastStruct struct { Name string Fields []*CastStructField Oneofs []*CastOneofStruct }
type CastStructField ¶
type CodeGenerator ¶
type CodeGenerator struct { }
func NewCodeGenerator ¶
func NewCodeGenerator() *CodeGenerator
type CodeGeneratorOption ¶ added in v0.12.0
type CodeGeneratorOption struct { Path resolver.OutputFilePathConfig Plugins []*WasmPluginOption }
type Config ¶
type Config struct { // Imports specify list of import path. This is the same as the list of paths specified by protoc's '-I' option. Imports []string `yaml:"imports"` // Src specifies the directory to be monitored when watch mode is enabled. Src []string `yaml:"src"` // Out specify the output destination for automatically generated code. Out string `yaml:"out"` // Plugins specify protoc's plugin configuration. Plugins []*PluginConfig `yaml:"plugins"` // AutoProtocGenGo automatically run protoc-gen-go at the time of editing proto. default is true. AutoProtocGenGo *bool `yaml:"autoProtocGenGo"` // AutoProtocGenGoGRPC automatically run protoc-gen-go-grpc at the time of editing proto. default is true. AutoProtocGenGoGRPC *bool `yaml:"autoProtocGenGoGrpc"` }
func LoadConfig ¶
func (*Config) GetAutoProtocGenGo ¶
func (*Config) GetAutoProtocGenGoGRPC ¶
type CustomResolver ¶
type CustomResolver struct { *resolver.CustomResolver Service *resolver.Service // contains filtered or unexported fields }
func (*CustomResolver) Name ¶
func (r *CustomResolver) Name() string
func (*CustomResolver) ProtoFQDN ¶
func (r *CustomResolver) ProtoFQDN() string
func (*CustomResolver) RequestType ¶
func (r *CustomResolver) RequestType() string
func (*CustomResolver) ReturnType ¶
func (r *CustomResolver) ReturnType() string
type CustomResolverReturnField ¶ added in v1.0.0
type DeclVariable ¶
type DependentMethod ¶
type Enum ¶ added in v0.13.0
type Enum struct { ProtoName string GoName string EnumAttribute *EnumAttribute }
type EnumAttribute ¶ added in v1.8.0
type EnumAttribute struct { Name string ProtoName string Values []*EnumValueAttribute }
type EnumSelectorSetterParam ¶ added in v1.0.0
type EnumSelectorSetterParam struct { Type string RequiredCastTrueType bool RequiredCastFalseType bool TrueType string FalseType string CastTrueTypeFunc string CastFalseTypeFunc string TrueEnumSelector *EnumSelectorSetterParam FalseEnumSelector *EnumSelectorSetterParam }
type EnumValueAttribute ¶ added in v1.8.0
type EnumValueAttribute struct { Name string Type string Attrs []*resolver.EnumValueAttribute }
type File ¶ added in v0.4.0
func (*File) CELPlugins ¶ added in v0.10.0
func (*File) DefaultImports ¶ added in v0.5.3
func (*File) EnumAttributes ¶ added in v1.8.0
func (f *File) EnumAttributes() []*EnumAttribute
func (*File) StandardImports ¶ added in v0.10.0
type GRPCError ¶ added in v0.13.0
func (*GRPCError) CELCacheIndex ¶ added in v0.13.8
func (*GRPCError) Details ¶ added in v0.13.0
func (e *GRPCError) Details() []*GRPCErrorDetail
func (*GRPCError) GoGRPCStatusCode ¶ added in v0.13.0
GoGRPCStatusCode converts a gRPC status code to a corresponding Go const name e.g. FAILED_PRECONDITION -> FailedPrecondition.
func (*GRPCError) LogLevelValue ¶ added in v1.3.0
func (*GRPCError) VariableDefinitionSet ¶ added in v0.13.0
func (e *GRPCError) VariableDefinitionSet() *VariableDefinitionSet
type GRPCErrorDetail ¶ added in v0.13.0
type GRPCErrorDetail struct { *resolver.GRPCErrorDetail // contains filtered or unexported fields }
func (*GRPCErrorDetail) BadRequests ¶ added in v0.13.8
func (detail *GRPCErrorDetail) BadRequests() []*BadRequest
func (*GRPCErrorDetail) By ¶ added in v1.2.0
func (detail *GRPCErrorDetail) By() []*GRPCErrorDetailBy
func (*GRPCErrorDetail) LocalizedMessages ¶ added in v0.13.8
func (detail *GRPCErrorDetail) LocalizedMessages() []*LocalizedMessage
func (*GRPCErrorDetail) MessageSet ¶ added in v0.13.0
func (detail *GRPCErrorDetail) MessageSet() *VariableDefinitionSet
func (*GRPCErrorDetail) PreconditionFailures ¶ added in v0.13.8
func (detail *GRPCErrorDetail) PreconditionFailures() []*PreconditionFailure
func (*GRPCErrorDetail) VariableDefinitionSet ¶ added in v0.13.0
func (detail *GRPCErrorDetail) VariableDefinitionSet() *VariableDefinitionSet
type GRPCErrorDetailBy ¶ added in v1.2.0
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateAll ¶
func (g *Generator) GenerateAll(ctx context.Context) (BuildCacheMap, error)
type LocalizedMessage ¶ added in v0.5.2
type LocalizedMessage struct { *resolver.LocalizedMessage // contains filtered or unexported fields }
func (*LocalizedMessage) CELCacheIndex ¶ added in v0.13.8
func (m *LocalizedMessage) CELCacheIndex() int
type LogValue ¶
type LogValue struct { Name string ValueType string Attrs []*LogValueAttr Type *resolver.Type Value string // for repeated type }
func (*LogValue) IsRepeated ¶
type LogValueAttr ¶
type MapResolver ¶ added in v0.7.1
type MapResolver struct { Service *Service MapExpr *resolver.MapExpr // contains filtered or unexported fields }
func (*MapResolver) Arguments ¶ added in v0.7.1
func (r *MapResolver) Arguments() []*Argument
func (*MapResolver) Caller ¶ added in v0.7.1
func (r *MapResolver) Caller() string
func (*MapResolver) EnumCastFunc ¶ added in v1.8.1
func (r *MapResolver) EnumCastFunc() (string, error)
func (*MapResolver) EnumDrcType ¶ added in v1.8.1
func (r *MapResolver) EnumDrcType() (string, error)
func (*MapResolver) EnumSelector ¶ added in v1.8.1
func (r *MapResolver) EnumSelector() (*EnumSelectorSetterParam, error)
func (*MapResolver) EnumSrcType ¶ added in v1.8.1
func (r *MapResolver) EnumSrcType() (string, error)
func (*MapResolver) EnumSrcZeroValue ¶ added in v1.8.1
func (r *MapResolver) EnumSrcZeroValue() (string, error)
func (*MapResolver) IsBy ¶ added in v0.7.1
func (r *MapResolver) IsBy() bool
func (*MapResolver) IsEnum ¶ added in v1.8.0
func (r *MapResolver) IsEnum() bool
func (*MapResolver) IsMessage ¶ added in v0.7.1
func (r *MapResolver) IsMessage() bool
func (*MapResolver) IteratorCELType ¶ added in v0.7.1
func (r *MapResolver) IteratorCELType() string
func (*MapResolver) IteratorName ¶ added in v0.7.1
func (r *MapResolver) IteratorName() string
func (*MapResolver) IteratorSource ¶ added in v0.7.1
func (r *MapResolver) IteratorSource() string
func (*MapResolver) IteratorSourceType ¶ added in v0.10.0
func (r *MapResolver) IteratorSourceType() string
func (*MapResolver) IteratorType ¶ added in v0.7.1
func (r *MapResolver) IteratorType() string
func (*MapResolver) IteratorZeroValue ¶ added in v0.7.1
func (r *MapResolver) IteratorZeroValue() string
func (*MapResolver) MapOutType ¶ added in v0.7.1
func (r *MapResolver) MapOutType() string
func (*MapResolver) RequestType ¶ added in v0.7.1
func (r *MapResolver) RequestType() string
type Message ¶
type Message struct { *resolver.Message Service *Service // contains filtered or unexported fields }
func (*Message) CELCacheIndex ¶ added in v0.13.8
func (*Message) CustomResolverArguments ¶
func (*Message) CustomResolverName ¶
func (*Message) DeclVariables ¶
func (m *Message) DeclVariables() []*DeclVariable
func (*Message) IsDeclVariables ¶ added in v0.10.0
func (*Message) LogValueReturnType ¶
func (*Message) RequestProtoType ¶ added in v0.2.0
func (*Message) RequestType ¶
func (*Message) ResolverName ¶
func (*Message) ReturnFields ¶
func (m *Message) ReturnFields() ([]*ReturnField, error)
func (*Message) ReturnType ¶
func (*Message) VariableDefinitionSet ¶ added in v0.13.0
func (m *Message) VariableDefinitionSet() *VariableDefinitionSet
type Method ¶
func (*Method) ArgumentName ¶
func (*Method) CustomResponse ¶ added in v1.5.0
func (*Method) RequestType ¶
func (*Method) ResolverName ¶
func (*Method) ResponseCastFuncName ¶ added in v1.5.0
func (*Method) ReturnType ¶
func (*Method) ReturnTypeArguments ¶
func (*Method) ReturnTypeWithoutPtr ¶
func (*Method) UseTimeout ¶
type OneofField ¶
type OneofField struct { Expr string By string Type string Condition string Name string Value string CastValue string Message *Message FieldOneofRule *resolver.FieldOneofRule SetterParam *SetterParam }
func (*OneofField) VariableDefinitionSet ¶ added in v0.13.0
func (oneof *OneofField) VariableDefinitionSet() *VariableDefinitionSet
type OneofReturnField ¶ added in v1.0.0
type OneofReturnField struct { Name string OneofCaseFields []*OneofField OneofDefaultField *OneofField }
func (*OneofReturnField) HasFieldOneofRule ¶ added in v1.0.0
func (f *OneofReturnField) HasFieldOneofRule() bool
type PluginConfig ¶
type PluginConfig struct { // Plugin name of the protoc plugin. // If the name of the plugin is 'protoc-gen-go', write 'go'. ('protoc-gen-' prefix can be omitted). Plugin string `yaml:"plugin"` // Option specify options to be passed protoc plugin. Opt *PluginOption `yaml:"opt"` // contains filtered or unexported fields }
type PluginOption ¶ added in v0.12.0
type PluginOption struct {
Opts []string
}
func (*PluginOption) MarshalYAML ¶ added in v0.12.0
func (o *PluginOption) MarshalYAML() ([]byte, error)
func (*PluginOption) String ¶ added in v0.12.0
func (o *PluginOption) String() string
func (*PluginOption) UnmarshalYAML ¶ added in v0.12.0
func (o *PluginOption) UnmarshalYAML(b []byte) error
type PluginRequest ¶
type PluginRequest struct {
// contains filtered or unexported fields
}
type PreconditionFailure ¶ added in v0.5.2
type PreconditionFailure struct { *resolver.PreconditionFailure // contains filtered or unexported fields }
func (*PreconditionFailure) Violations ¶ added in v0.5.2
func (pf *PreconditionFailure) Violations() []*PreconditionFailureViolation
type PreconditionFailureViolation ¶ added in v0.5.2
type PreconditionFailureViolation struct { *resolver.PreconditionFailureViolation // contains filtered or unexported fields }
func (*PreconditionFailureViolation) CELCacheIndex ¶ added in v0.13.8
func (v *PreconditionFailureViolation) CELCacheIndex() int
type ProtoField ¶ added in v0.2.0
func (*ProtoField) FieldName ¶ added in v0.2.0
func (f *ProtoField) FieldName() string
func (*ProtoField) Name ¶ added in v0.2.0
func (f *ProtoField) Name() string
func (*ProtoField) TypeDeclare ¶ added in v0.2.0
func (f *ProtoField) TypeDeclare() string
type ProtoFileResult ¶
type ProtoFileResult struct { ProtoPath string Type ActionType Files []*pluginpb.CodeGeneratorResponse_File FederationFiles []*resolver.File Out string }
func (*ProtoFileResult) WriteFiles ¶
func (r *ProtoFileResult) WriteFiles(ctx context.Context) error
type ResponseVariable ¶
type Result ¶
type Result []*ProtoFileResult
type ReturnField ¶
type ReturnField struct { CustomResolver *CustomResolverReturnField Oneof *OneofReturnField CEL *CELReturnField AutoBind *AutoBindReturnField }
type Service ¶
func (*Service) CELCacheIndex ¶ added in v0.13.8
func (*Service) CELPlugins ¶ added in v0.10.0
func (*Service) CastFields ¶ added in v0.5.2
func (*Service) CustomResolvers ¶
func (s *Service) CustomResolvers() []*CustomResolver
func (*Service) DependentMethods ¶
func (s *Service) DependentMethods() []*DependentMethod
func (*Service) OneofTypes ¶ added in v0.3.0
func (*Service) PackageName ¶
func (*Service) ServiceDependencies ¶
func (s *Service) ServiceDependencies() []*ServiceDependency
func (*Service) ServiceName ¶
type ServiceDependency ¶
type ServiceDependency struct {
*resolver.ServiceDependency
}
func (*ServiceDependency) ClientConstructor ¶
func (dep *ServiceDependency) ClientConstructor() string
func (*ServiceDependency) ClientName ¶
func (dep *ServiceDependency) ClientName() string
func (*ServiceDependency) ClientType ¶
func (dep *ServiceDependency) ClientType() string
func (*ServiceDependency) NameConfig ¶
func (dep *ServiceDependency) NameConfig() string
func (*ServiceDependency) PrivateClientName ¶
func (dep *ServiceDependency) PrivateClientName() string
func (*ServiceDependency) ServiceName ¶
func (dep *ServiceDependency) ServiceName() string
type SetterParam ¶ added in v1.0.0
type SetterParam struct { Name string Value string RequiredCast bool CastFunc string EnumSelector *EnumSelectorSetterParam }
type Type ¶
type Type struct { Name string Fields []*Field ProtoFields []*ProtoField Desc string ProtoFQDN string }
type VariableDefinition ¶ added in v0.10.0
type VariableDefinition struct { Service *Service Message *Message *resolver.VariableDefinition }
func (*VariableDefinition) Arguments ¶ added in v0.10.0
func (d *VariableDefinition) Arguments() []*Argument
func (*VariableDefinition) By ¶ added in v0.10.0
func (d *VariableDefinition) By() *resolver.CELValue
func (*VariableDefinition) CELCacheIndex ¶ added in v0.13.8
func (d *VariableDefinition) CELCacheIndex() int
func (*VariableDefinition) CELType ¶ added in v0.10.0
func (d *VariableDefinition) CELType() string
func (*VariableDefinition) Caller ¶ added in v0.10.0
func (d *VariableDefinition) Caller() string
func (*VariableDefinition) DependentMethodName ¶ added in v0.10.0
func (d *VariableDefinition) DependentMethodName() string
func (*VariableDefinition) Enum ¶ added in v1.8.0
func (d *VariableDefinition) Enum() *resolver.EnumExpr
func (*VariableDefinition) EnumCastFunc ¶ added in v1.8.0
func (d *VariableDefinition) EnumCastFunc() string
func (*VariableDefinition) EnumSelector ¶ added in v1.8.1
func (d *VariableDefinition) EnumSelector() *EnumSelectorSetterParam
func (*VariableDefinition) EnumSrcType ¶ added in v1.8.1
func (d *VariableDefinition) EnumSrcType() string
func (*VariableDefinition) EnumSrcZeroValue ¶ added in v1.8.1
func (d *VariableDefinition) EnumSrcZeroValue() string
func (*VariableDefinition) GRPCErrors ¶ added in v0.13.0
func (d *VariableDefinition) GRPCErrors() []*GRPCError
func (*VariableDefinition) HasErrorHandler ¶ added in v0.10.0
func (d *VariableDefinition) HasErrorHandler() bool
func (*VariableDefinition) If ¶ added in v0.10.0
func (d *VariableDefinition) If() string
func (*VariableDefinition) IsBy ¶ added in v0.10.0
func (d *VariableDefinition) IsBy() bool
func (*VariableDefinition) IsCall ¶ added in v0.16.0
func (d *VariableDefinition) IsCall() bool
func (*VariableDefinition) IsEnum ¶ added in v1.8.0
func (d *VariableDefinition) IsEnum() bool
func (*VariableDefinition) IsMap ¶ added in v0.10.0
func (d *VariableDefinition) IsMap() bool
func (*VariableDefinition) IsValidation ¶ added in v0.10.0
func (d *VariableDefinition) IsValidation() bool
func (*VariableDefinition) Key ¶ added in v0.10.0
func (d *VariableDefinition) Key() string
func (*VariableDefinition) LogValueRequestType ¶ added in v0.16.0
func (d *VariableDefinition) LogValueRequestType() string
func (*VariableDefinition) MapResolver ¶ added in v0.10.0
func (d *VariableDefinition) MapResolver() *MapResolver
func (*VariableDefinition) MethodFQDN ¶ added in v0.10.0
func (d *VariableDefinition) MethodFQDN() string
func (*VariableDefinition) ProtoComment ¶ added in v0.10.0
func (d *VariableDefinition) ProtoComment() string
func (*VariableDefinition) RequestType ¶ added in v0.10.0
func (d *VariableDefinition) RequestType() string
func (*VariableDefinition) RequestTypeFQDN ¶ added in v0.16.0
func (d *VariableDefinition) RequestTypeFQDN() string
func (*VariableDefinition) ResponseVariable ¶ added in v0.10.0
func (d *VariableDefinition) ResponseVariable() *ResponseVariable
func (*VariableDefinition) Retry ¶ added in v0.10.0
func (d *VariableDefinition) Retry() *resolver.RetryPolicy
func (*VariableDefinition) ReturnType ¶ added in v0.10.0
func (d *VariableDefinition) ReturnType() string
func (*VariableDefinition) ServiceName ¶ added in v0.10.0
func (d *VariableDefinition) ServiceName() string
func (*VariableDefinition) Timeout ¶ added in v0.10.0
func (d *VariableDefinition) Timeout() string
func (*VariableDefinition) Type ¶ added in v0.10.0
func (d *VariableDefinition) Type() string
func (*VariableDefinition) UseArgs ¶ added in v0.10.0
func (d *VariableDefinition) UseArgs() bool
func (*VariableDefinition) UseIf ¶ added in v0.10.0
func (d *VariableDefinition) UseIf() bool
func (*VariableDefinition) UseResponseVariable ¶ added in v0.10.0
func (d *VariableDefinition) UseResponseVariable() bool
func (*VariableDefinition) UseRetry ¶ added in v0.10.0
func (d *VariableDefinition) UseRetry() bool
func (*VariableDefinition) UseTimeout ¶ added in v0.10.0
func (d *VariableDefinition) UseTimeout() bool
func (*VariableDefinition) ValidationError ¶ added in v0.13.0
func (d *VariableDefinition) ValidationError() *GRPCError
func (*VariableDefinition) ZeroValue ¶ added in v0.10.0
func (d *VariableDefinition) ZeroValue() string
type VariableDefinitionGroup ¶ added in v0.10.0
type VariableDefinitionGroup struct { Service *Service Message *Message resolver.VariableDefinitionGroup }
func (*VariableDefinitionGroup) End ¶ added in v0.10.0
func (g *VariableDefinitionGroup) End() *VariableDefinition
func (*VariableDefinitionGroup) ExistsEnd ¶ added in v0.10.0
func (g *VariableDefinitionGroup) ExistsEnd() bool
func (*VariableDefinitionGroup) ExistsStart ¶ added in v0.10.0
func (g *VariableDefinitionGroup) ExistsStart() bool
func (*VariableDefinitionGroup) IsConcurrent ¶ added in v0.10.0
func (g *VariableDefinitionGroup) IsConcurrent() bool
func (*VariableDefinitionGroup) Start ¶ added in v0.10.0
func (g *VariableDefinitionGroup) Start() *VariableDefinitionGroup
func (*VariableDefinitionGroup) Starts ¶ added in v0.10.0
func (g *VariableDefinitionGroup) Starts() []*VariableDefinitionGroup
type VariableDefinitionSet ¶ added in v0.13.0
type VariableDefinitionSet struct { *resolver.VariableDefinitionSet // contains filtered or unexported fields }
func (*VariableDefinitionSet) Definitions ¶ added in v0.13.8
func (set *VariableDefinitionSet) Definitions() []*VariableDefinition
func (*VariableDefinitionSet) DependencyGraph ¶ added in v0.13.0
func (set *VariableDefinitionSet) DependencyGraph() string
func (*VariableDefinitionSet) VariableDefinitionGroups ¶ added in v0.13.0
func (set *VariableDefinitionSet) VariableDefinitionGroups() []*VariableDefinitionGroup
type WasmPluginOption ¶ added in v0.12.0
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func (*Watcher) SetHandler ¶
func (*Watcher) SetWatchPath ¶
Click to show internal directories.
Click to hide internal directories.