Documentation
¶
Index ¶
- type ArgumentOption
- type Enum
- type EnumOption
- type EnumValue
- type EnumValueOption
- type Field
- type FieldOption
- type File
- func (f *File) AST() *ast.FileNode
- func (f *File) Content() []byte
- func (f *File) FindLocationByPos(pos Position) *Location
- func (f *File) Imports() []string
- func (f *File) NodeInfoByLocation(loc *Location) *ast.NodeInfo
- func (f *File) Path() string
- func (f *File) SemanticTokenTypeMap() map[ast.Token]protocol.SemanticTokenTypes
- type Location
- func EnumAliasLocation(fileName, msgName, enumName string) *Location
- func EnumLocation(fileName, msgName, enumName string) *Location
- func EnumOptionLocation(fileName, msgName, enumName string) *Location
- func EnumValueAliasLocation(fileName, msgName, enumName, enumValueName string) *Location
- func EnumValueLocation(fileName, msgName, enumName, enumValueName string) *Location
- func EnumValueOptionLocation(fileName, msgName, enumName, enumValueName string) *Location
- func FileLocation(fileName string) *Location
- func GoPackageLocation(fileName string) *Location
- func MessageAliasLocation(fileName, msgName string) *Location
- func MessageDependencyArgumentByLocation(fileName, msgName string, idx, argIdx int) *Location
- func MessageDependencyArgumentInlineLocation(fileName, msgName string, idx, argIdx int) *Location
- func MessageDependencyArgumentNameLocation(fileName, msgName string, idx, argIdx int) *Location
- func MessageDependencyMessageLocation(fileName, msgName string, idx int) *Location
- func MessageFieldAliasLocation(fileName, msgName, fieldName string) *Location
- func MessageFieldByLocation(fileName, msgName, fieldName string) *Location
- func MessageFieldLocation(fileName, msgName, fieldName string) *Location
- func MessageFieldOptionLocation(fileName, msgName, fieldName string) *Location
- func MessageLocation(fileName, msgName string) *Location
- func MessageOptionLocation(fileName, msgName string) *Location
- func MethodLocation(fileName, msgName string) *Location
- func MethodRetryConstantIntervalLocation(fileName, msgName string) *Location
- func MethodRetryExponentialInitialIntervalLocation(fileName, msgName string) *Location
- func MethodRetryExponentialMaxIntervalLocation(fileName, msgName string) *Location
- func MethodTimeoutLocation(fileName, msgName string) *Location
- func OneofOptionLocation(fileName, msgName, oneofName string) *Location
- func RequestByLocation(fileName, msgName string, idx int) *Location
- func RequestFieldLocation(fileName, msgName string, idx int) *Location
- func ResponseFieldLocation(fileName, msgName string, idx int) *Location
- func ServiceDependencyLocation(fileName, svcName string, idx int) *Location
- func ServiceDependencyNameLocation(fileName, svcName string, idx int) *Location
- func ServiceDependencyServiceLocation(fileName, svcName string, idx int) *Location
- func ServiceLocation(fileName, svcName string) *Location
- func ServiceMethodLocation(fileName, svcName, methodName string) *Location
- func ServiceMethodOptionLocation(fileName, svcName, methodName string) *Location
- func ServiceMethodRequestLocation(fileName, svcName, methodName string) *Location
- func ServiceMethodResponseLocation(fileName, svcName, methodName string) *Location
- func ServiceMethodTimeoutLocation(fileName, svcName, methodName string) *Location
- func ServiceOptionLocation(fileName, svcName string) *Location
- type Message
- type MessageDependencyOption
- type MessageOption
- type Method
- type MethodOption
- type Oneof
- type OneofOption
- type Position
- type RequestOption
- type ResolverOption
- type ResponseOption
- type RetryConstantOption
- type RetryExponentialOption
- type RetryOption
- type Service
- type ServiceDependencyOption
- type ServiceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentOption ¶
ArgumentOption represents message argument location of grpc.federation.message option.
type Enum ¶
type Enum struct { Name string Option *EnumOption Value *EnumValue }
Enum represents enum location.
type EnumOption ¶
type EnumOption struct {
Alias bool
}
EnumOption represents grpc.federation.enum option location.
type EnumValue ¶
type EnumValue struct { Value string Option *EnumValueOption }
EnumValue represents enum value location.
type EnumValueOption ¶
EnumValueOption represents grpc.federation.enum_value option location.
type Field ¶
type Field struct { Name string Option *FieldOption }
Field represents message field location.
type FieldOption ¶
FieldOption represents grpc.federation.field option location.
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) FindLocationByPos ¶
FindLocationByPos returns the corresponding location information from the position in the source code.
func (*File) NodeInfoByLocation ¶
NodeInfoByLocation returns information about the node at the position specified by location in the AST of the Protocol Buffers.
func (*File) SemanticTokenTypeMap ¶
func (f *File) SemanticTokenTypeMap() map[ast.Token]protocol.SemanticTokenTypes
type Location ¶
type Location struct { FileName string GoPackage bool Service *Service Message *Message Enum *Enum }
Location represents semantic location information for grpc federation option.
func EnumAliasLocation ¶
EnumAliasLocation creates location for alias in grpc.federation.enum option.
func EnumLocation ¶
EnumLocation creates location for enum.
func EnumOptionLocation ¶
EnumOptionLocation creates location for grpc.federation.enum option.
func EnumValueAliasLocation ¶
EnumValueAliasLocation creates location for alias in grpc.federation.enum_value option.
func EnumValueLocation ¶
EnumValueLocation creates location for enum value.
func EnumValueOptionLocation ¶
EnumValueOptionLocation creates location for grpc.federation.enum_value option.
func FileLocation ¶
FileLocation creates location for file.
func GoPackageLocation ¶
GoPackageLocation creates location for go_package option.
func MessageAliasLocation ¶
MessageAliasOptionLocation creates location for alias in grpc.federaiton.message option.
func MessageDependencyArgumentByLocation ¶
MessageDependencyArgumentByLocation creates location for messages[*].args[*].by in grpc.federation.message.
func MessageDependencyArgumentInlineLocation ¶
MessageDependencyArgumentInlineLocation creates location for messages[*].args[*].inline in grpc.federation.message.
func MessageDependencyArgumentNameLocation ¶
MessageDependencyArgumentNameLocation creates location for messages[*].args[*].name in grpc.federation.message.
func MessageDependencyMessageLocation ¶
MessageDependencyMessageLocation creates location for messages[*].message in grpc.federation.message.
func MessageFieldAliasLocation ¶
MessageFieldAliasLocation creates location for alias in grpc.federation.field option.
func MessageFieldByLocation ¶
MessageFieldByLocation creates location for by in grpc.federation.field option.
func MessageFieldLocation ¶
MessageFieldLocation creates location for message field.
func MessageFieldOptionLocation ¶
MessageFieldOptionLocation creates location for grpc.federation.field option.
func MessageLocation ¶
MessageLocation creates location for message name.
func MessageOptionLocation ¶
MessageOptionLocation creates location for grpc.federaiton.message option.
func MethodLocation ¶
MethodLocation creates location for resolver.method in grpc.federation.message.
func MethodRetryConstantIntervalLocation ¶
MethodRetryConstantIntervalLocation creates location for resolver.retry.constant.interval in grpc.federation.message.
func MethodRetryExponentialInitialIntervalLocation ¶
MethodRetryExponentialInitialIntervalLocation creates location for resolver.retry.exponential.initial_interval in grpc.federation.message.
func MethodRetryExponentialMaxIntervalLocation ¶
MethodRetryExponentialMaxIntervalLocation creates location for resolver.retry.exponential.max_interval in grpc.federation.message.
func MethodTimeoutLocation ¶
MethodTimeoutLocation creates location for resolver.timeout in grpc.federation.message.
func OneofOptionLocation ¶
OneofOptionLocation creates location for grpc.federaiton.oneof option.
func RequestByLocation ¶
RequestByLocation creates location for resolver.request[*].by in grpc.federation.message.
func RequestFieldLocation ¶
RequestFieldLocation creates location for resolver.request[*].field in grpc.federation.message.
func ResponseFieldLocation ¶
ResponseFieldLocation creates location for resolver.response[*].field in grpc.federation.message.
func ServiceDependencyLocation ¶
ServiceDependencyLocation creates location for service dependencies.
func ServiceDependencyNameLocation ¶
ServiceDependencyNameLocation creates location for name of service dependencies.
func ServiceDependencyServiceLocation ¶
ServiceDependencyServiceLocation creates location for service of service dependencies.
func ServiceLocation ¶
ServiceLocation creates location for service name.
func ServiceMethodLocation ¶
ServiceMethodLocation creates location for method of service.
func ServiceMethodOptionLocation ¶
ServiceMethodOptionLocation creates location for grpc.federation.method option.
func ServiceMethodRequestLocation ¶
ServiceMethodRequestLocation creates location for method request type of service.
func ServiceMethodResponseLocation ¶
ServiceMethodResponseLocation creates location for method response type of service.
func ServiceMethodTimeoutLocation ¶
ServiceMethodTimeoutLocation creates location for timeout of grpc.federation.method option.
func ServiceOptionLocation ¶
ServiceOptionLocation creates location for grpc.federation.service option.
type Message ¶
type Message struct { Name string Option *MessageOption Field *Field Enum *Enum Oneof *Oneof }
Message represents message location.
type MessageDependencyOption ¶
type MessageDependencyOption struct { Idx int Name bool Message bool Args *ArgumentOption }
MessageDependencyOption represents messages location of grpc.federation.message option.
type MessageOption ¶
type MessageOption struct { Resolver *ResolverOption Messages *MessageDependencyOption Alias bool }
MessageOption represents grpc.federation.message option location.
type Method ¶
type Method struct { Name string Request bool Response bool Option *MethodOption }
Method represents service's method location.
type MethodOption ¶
type MethodOption struct {
Timeout bool
}
MethodOption represents grpc.federation.method option location.
type Oneof ¶
type Oneof struct { Name string Option *OneofOption }
type OneofOption ¶
type OneofOption struct { }
type RequestOption ¶
RequestOption represents resolver.request location of grpc.federation.message option.
type ResolverOption ¶
type ResolverOption struct { Method bool Request *RequestOption Response *ResponseOption Timeout bool Retry *RetryOption }
ResolverOption represents resolver location of grpc.federation.message option.
type ResponseOption ¶
ResponseOption represents resolver.response location of grpc.federation.message option.
type RetryConstantOption ¶
RetryConstantOption represents resolver.retry.constant location of grpc.federation.message option.
type RetryExponentialOption ¶
type RetryExponentialOption struct { InitialInterval bool RandomizationFactor bool Multiplier bool MaxInterval bool MaxRetries bool }
RetryExponentialOption represents resolver.retry.exponential location of grpc.federation.message option.
type RetryOption ¶
type RetryOption struct { Constant *RetryConstantOption Exponential *RetryExponentialOption }
RetryOption represents resolver.retry location of grpc.federation.message option.
type Service ¶
type Service struct { Name string Method *Method Option *ServiceOption }
Service represents service location.
type ServiceDependencyOption ¶
ServiceDependencyOption represents dependencies option of service option.
type ServiceOption ¶
type ServiceOption struct {
Dependencies *ServiceDependencyOption
}
ServiceOption represents grpc.federation.service option location.