generator

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.1.3

func Add(n1, n2 int) int

Add adds two numbers.

func CreateMap added in v0.1.3

func CreateMap(pairs ...any) (map[string]any, error)

CreateMap creates a map from a list of key-value pairs to pass multiple arguments to sub-templates.

func ParentCtx added in v0.1.3

func ParentCtx(level int) (string, error)

ParentCtx creates parent context name from the given level.

func WatchMode

func WatchMode() func(*Generator) error

Types

type ActionType

type ActionType string
const (
	KeepAction   ActionType = "keep"
	CreateAction ActionType = "create"
	DeleteAction ActionType = "delete"
	UpdateAction ActionType = "update"
	ProtocAction ActionType = "protoc"
)

type Argument

type Argument struct {
	Name         string
	Value        string
	CEL          *resolver.CELValue
	InlineFields []*Argument
	ProtoComment string
	ZeroValue    string
	Type         string
}

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) 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

type CELPlugin struct {
	*resolver.CELPlugin
	// contains filtered or unexported fields
}

func (*CELPlugin) FederationVersion added in v0.15.0

func (p *CELPlugin) FederationVersion() string

func (*CELPlugin) FieldName added in v0.10.0

func (p *CELPlugin) FieldName() string

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

func (p *CELPlugin) PluginName() string

type CastEnum

type CastEnum struct {
	FromValues   []*CastEnumValue
	DefaultValue string
}

type CastEnumValue

type CastEnumValue struct {
	FromValue string
	ToValue   string
}

type CastField

type CastField struct {
	Name string
	// contains filtered or unexported fields
}

func (*CastField) IsEnum

func (f *CastField) IsEnum() bool

func (*CastField) IsEnumToNumber added in v0.13.7

func (f *CastField) IsEnumToNumber() bool

func (*CastField) IsNumberToEnum added in v0.13.7

func (f *CastField) IsNumberToEnum() bool

func (*CastField) IsOneof

func (f *CastField) IsOneof() bool

func (*CastField) IsSlice

func (f *CastField) IsSlice() bool

func (*CastField) IsStruct

func (f *CastField) IsStruct() bool

func (*CastField) RequestProtoFQDN

func (f *CastField) RequestProtoFQDN() string

func (*CastField) RequestType

func (f *CastField) RequestType() string

func (*CastField) ResponseProtoFQDN

func (f *CastField) ResponseProtoFQDN() string

func (*CastField) ResponseType

func (f *CastField) ResponseType() string

func (*CastField) ToEnum

func (f *CastField) ToEnum() *CastEnum

func (*CastField) ToOneof

func (f *CastField) ToOneof() *CastOneof

func (*CastField) ToSlice

func (f *CastField) ToSlice() *CastSlice

func (*CastField) ToStruct

func (f *CastField) ToStruct() *CastStruct

type CastOneof

type CastOneof struct {
	Name         string
	FieldName    string
	CastName     string
	RequiredCast bool
}

type CastOneofStruct

type CastOneofStruct struct {
	Name   string
	Fields []*CastStructField
}

type CastSlice

type CastSlice struct {
	ResponseType     string
	ElemRequiredCast bool
	ElemCastName     string
}

type CastStruct

type CastStruct struct {
	Name   string
	Fields []*CastStructField
	Oneofs []*CastOneofStruct
}

type CastStructField

type CastStructField struct {
	ToFieldName   string
	FromFieldName string
	CastName      string
	RequiredCast  bool
}

type CodeGenerator

type CodeGenerator struct {
}

func NewCodeGenerator

func NewCodeGenerator() *CodeGenerator

func (*CodeGenerator) Generate

func (g *CodeGenerator) Generate(file *resolver.File, enums []*resolver.Enum) ([]byte, error)

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 LoadConfig(path string) (Config, error)

func LoadConfigFromReader

func LoadConfigFromReader(r io.Reader) (Config, error)

func (*Config) GetAutoProtocGenGo

func (c *Config) GetAutoProtocGenGo() bool

func (*Config) GetAutoProtocGenGoGRPC

func (c *Config) GetAutoProtocGenGoGRPC() bool

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 DeclVariable

type DeclVariable struct {
	Name string
	Type string
}

type DependentMethod

type DependentMethod struct {
	Name string
	FQDN string
}

type Enum added in v0.13.0

type Enum struct {
	ProtoName string
	GoName    string
}

type Field

type Field struct {
	Name string
	Type string
}

type File added in v0.4.0

type File struct {
	*resolver.File
	// contains filtered or unexported fields
}

func (*File) CELPlugins added in v0.10.0

func (f *File) CELPlugins() []*CELPlugin

func (*File) DefaultImports added in v0.5.3

func (f *File) DefaultImports() []*Import

func (*File) Enums added in v0.13.0

func (f *File) Enums() []*Enum

func (*File) Imports added in v0.4.0

func (f *File) Imports() []*Import

func (*File) Services added in v0.4.0

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

func (*File) Source added in v0.15.0

func (f *File) Source() string

func (*File) StandardImports added in v0.10.0

func (f *File) StandardImports() []*Import

func (*File) Types added in v0.4.0

func (f *File) Types() Types

func (*File) Version added in v0.15.0

func (f *File) Version() string

type GRPCError added in v0.13.0

type GRPCError struct {
	*resolver.GRPCError
	// contains filtered or unexported fields
}

func (*GRPCError) CELCacheIndex added in v0.13.8

func (e *GRPCError) CELCacheIndex() int

func (*GRPCError) Details added in v0.13.0

func (e *GRPCError) Details() []*GRPCErrorDetail

func (*GRPCError) GoGRPCStatusCode added in v0.13.0

func (e *GRPCError) GoGRPCStatusCode() string

GoGRPCStatusCode converts a gRPC status code to a corresponding Go const name e.g. FAILED_PRECONDITION -> FailedPrecondition.

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) 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 Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Generator

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, protoPath string, opts ...Option) error

func (*Generator) GenerateAll

func (g *Generator) GenerateAll(ctx context.Context) (BuildCacheMap, error)

func (*Generator) SetPostProcessHandler

func (g *Generator) SetPostProcessHandler(postProcessHandler func(ctx context.Context, path string, result Result) error)

type Import

type Import struct {
	Path  string
	Alias string
	Used  bool
}

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) IsMap

func (v *LogValue) IsMap() bool

func (*LogValue) IsMessage

func (v *LogValue) IsMessage() bool

func (*LogValue) IsRepeated

func (v *LogValue) IsRepeated() bool

type LogValueAttr

type LogValueAttr struct {
	Type  string
	Key   string
	Value string
}

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) IsBy added in v0.7.1

func (r *MapResolver) IsBy() 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 (m *Message) CELCacheIndex() int

func (*Message) CustomResolverArguments

func (m *Message) CustomResolverArguments() []*Argument

func (*Message) CustomResolverName

func (m *Message) CustomResolverName() string

func (*Message) DeclVariables

func (m *Message) DeclVariables() []*DeclVariable

func (*Message) IsDeclVariables added in v0.10.0

func (m *Message) IsDeclVariables() bool

func (*Message) LogValueReturnType

func (m *Message) LogValueReturnType() string

func (*Message) ProtoFQDN

func (m *Message) ProtoFQDN() string

func (*Message) RequestProtoType added in v0.2.0

func (m *Message) RequestProtoType() string

func (*Message) RequestType

func (m *Message) RequestType() string

func (*Message) ResolverName

func (m *Message) ResolverName() string

func (*Message) ReturnFields

func (m *Message) ReturnFields() []*ReturnField

func (*Message) ReturnType

func (m *Message) ReturnType() string

func (*Message) VariableDefinitionSet added in v0.13.0

func (m *Message) VariableDefinitionSet() *VariableDefinitionSet

type Method

type Method struct {
	*resolver.Method
	Service *Service
	// contains filtered or unexported fields
}

func (*Method) ArgumentName

func (m *Method) ArgumentName() string

func (*Method) ProtoFQDN

func (m *Method) ProtoFQDN() string

func (*Method) RequestType

func (m *Method) RequestType() string

func (*Method) ResolverName

func (m *Method) ResolverName() string

func (*Method) ReturnType

func (m *Method) ReturnType() string

func (*Method) ReturnTypeArguments

func (m *Method) ReturnTypeArguments() []string

func (*Method) ReturnTypeWithoutPtr

func (m *Method) ReturnTypeWithoutPtr() string

func (*Method) Timeout

func (m *Method) Timeout() string

func (*Method) UseTimeout

func (m *Method) UseTimeout() bool

type OneofField

type OneofField struct {
	ExprUseContextLibrary bool
	ByUseContextLibrary   bool
	Expr                  string
	By                    string
	Type                  string
	Condition             string
	Name                  string
	Value                 string
	Message               *Message
	FieldOneofRule        *resolver.FieldOneofRule
}

func (*OneofField) VariableDefinitionSet added in v0.13.0

func (oneof *OneofField) VariableDefinitionSet() *VariableDefinitionSet

type OneofType added in v0.3.0

type OneofType struct {
	Name             string
	FieldName        string
	MessageProtoFQDN string
	TypeDeclare      string
	FieldZeroValues  []string
	FieldGetterNames []string
	ReturnZeroValue  string
}

type Option

type Option func(*Generator) error

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 PostProcessHandler

type PostProcessHandler func(context.Context, string, Result) error

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

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

type ProtoField struct {
	*resolver.Field
}

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 ResponseVariable struct {
	Name    string
	CELExpr string
	CELType string
}

type Result

type Result []*ProtoFileResult

type ReturnField

type ReturnField struct {
	Name                  string
	Value                 string
	IsCustomResolverField bool
	IsOneofField          bool
	CEL                   *resolver.CELValue
	OneofCaseFields       []*OneofField
	OneofDefaultField     *OneofField
	ResolverName          string
	RequestType           string
	MessageName           string
	MessageArgumentName   string
	ProtoComment          string
	ZeroValue             string
	Type                  string
}

func (*ReturnField) HasFieldOneofRule added in v0.3.0

func (r *ReturnField) HasFieldOneofRule() bool

type Service

type Service struct {
	*resolver.Service
	// contains filtered or unexported fields
}

func (*Service) CELCacheIndex added in v0.13.8

func (s *Service) CELCacheIndex() int

func (*Service) CELPlugins added in v0.10.0

func (s *Service) CELPlugins() []*CELPlugin

func (*Service) CastFields added in v0.5.2

func (s *Service) CastFields() []*CastField

func (*Service) CustomResolvers

func (s *Service) CustomResolvers() []*CustomResolver

func (*Service) DependentMethods

func (s *Service) DependentMethods() []*DependentMethod

func (*Service) LogValues

func (s *Service) LogValues() []*LogValue

func (*Service) Messages

func (s *Service) Messages() []*Message

func (*Service) Methods

func (s *Service) Methods() []*Method

func (*Service) OneofTypes added in v0.3.0

func (s *Service) OneofTypes() []*OneofType

func (*Service) PackageName

func (s *Service) PackageName() string

func (*Service) ServiceDependencies

func (s *Service) ServiceDependencies() []*ServiceDependency

func (*Service) ServiceName

func (s *Service) ServiceName() string

func (*Service) Types

func (s *Service) Types() Types

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 Type

type Type struct {
	Name        string
	Fields      []*Field
	ProtoFields []*ProtoField
	Desc        string
	ProtoFQDN   string
}

func (*Type) HasField

func (t *Type) HasField(fieldName string) bool

type Types added in v0.4.0

type Types []*Type

func (Types) HasProtoFields added in v0.4.0

func (t Types) HasProtoFields() bool

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 (*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) 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) IfUseContextLibrary added in v0.13.8

func (d *VariableDefinition) IfUseContextLibrary() bool

func (*VariableDefinition) IsBy added in v0.10.0

func (d *VariableDefinition) IsBy() 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) 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) ResponseVariable added in v0.10.0

func (d *VariableDefinition) ResponseVariable() *ResponseVariable

func (*VariableDefinition) Retry added in v0.10.0

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 (*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 (*VariableDefinitionGroup) Starts added in v0.10.0

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 WasmPluginOption struct {
	Path   string
	Sha256 string
}

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher() (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close()

func (*Watcher) IsWorking

func (w *Watcher) IsWorking() bool

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context) error

func (*Watcher) SetHandler

func (w *Watcher) SetHandler(handler func(ctx context.Context, event fsnotify.Event))

func (*Watcher) SetWatchPath

func (w *Watcher) SetWatchPath(path ...string) error

Jump to

Keyboard shortcuts

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