Documentation ¶
Index ¶
- Variables
- type AuthHandler
- func (*AuthHandler) Descriptor() ([]byte, []int)deprecated
- func (x *AuthHandler) GetAuthData() *v1.Type
- func (x *AuthHandler) GetDoc() string
- func (x *AuthHandler) GetLoc() *v1.Loc
- func (x *AuthHandler) GetName() string
- func (x *AuthHandler) GetParams() *v1.Type
- func (x *AuthHandler) GetPkgName() string
- func (x *AuthHandler) GetPkgPath() string
- func (*AuthHandler) ProtoMessage()
- func (x *AuthHandler) ProtoReflect() protoreflect.Message
- func (x *AuthHandler) Reset()
- func (x *AuthHandler) String() string
- type AuthHandlerDefNode
- func (*AuthHandlerDefNode) Descriptor() ([]byte, []int)deprecated
- func (x *AuthHandlerDefNode) GetContext() string
- func (x *AuthHandlerDefNode) GetName() string
- func (x *AuthHandlerDefNode) GetServiceName() string
- func (*AuthHandlerDefNode) ProtoMessage()
- func (x *AuthHandlerDefNode) ProtoReflect() protoreflect.Message
- func (x *AuthHandlerDefNode) Reset()
- func (x *AuthHandlerDefNode) String() string
- type CronJob
- func (*CronJob) Descriptor() ([]byte, []int)deprecated
- func (x *CronJob) GetDoc() string
- func (x *CronJob) GetEndpoint() *QualifiedName
- func (x *CronJob) GetId() string
- func (x *CronJob) GetSchedule() string
- func (x *CronJob) GetTitle() string
- func (*CronJob) ProtoMessage()
- func (x *CronJob) ProtoReflect() protoreflect.Message
- func (x *CronJob) Reset()
- func (x *CronJob) String() string
- type DBMigration
- func (*DBMigration) Descriptor() ([]byte, []int)deprecated
- func (x *DBMigration) GetDescription() string
- func (x *DBMigration) GetFilename() string
- func (x *DBMigration) GetNumber() int32
- func (*DBMigration) ProtoMessage()
- func (x *DBMigration) ProtoReflect() protoreflect.Message
- func (x *DBMigration) Reset()
- func (x *DBMigration) String() string
- type Data
- func (*Data) Descriptor() ([]byte, []int)deprecated
- func (x *Data) GetAppRevision() string
- func (x *Data) GetAuthHandler() *AuthHandler
- func (x *Data) GetCronJobs() []*CronJob
- func (x *Data) GetDecls() []*v1.Decl
- func (x *Data) GetModulePath() string
- func (x *Data) GetPkgs() []*Package
- func (x *Data) GetSvcs() []*Service
- func (x *Data) GetUncommittedChanges() bool
- func (*Data) ProtoMessage()
- func (x *Data) ProtoReflect() protoreflect.Message
- func (x *Data) Reset()
- func (x *Data) String() string
- type Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetDoc() string
- func (x *Package) GetName() string
- func (x *Package) GetRelPath() string
- func (x *Package) GetRpcCalls() []*QualifiedName
- func (x *Package) GetSecrets() []string
- func (x *Package) GetServiceName() string
- func (x *Package) GetTraceNodes() []*TraceNode
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type Path
- type PathSegment
- func (*PathSegment) Descriptor() ([]byte, []int)deprecated
- func (x *PathSegment) GetType() PathSegment_SegmentType
- func (x *PathSegment) GetValue() string
- func (x *PathSegment) GetValueType() PathSegment_ParamType
- func (*PathSegment) ProtoMessage()
- func (x *PathSegment) ProtoReflect() protoreflect.Message
- func (x *PathSegment) Reset()
- func (x *PathSegment) String() string
- type PathSegment_ParamType
- func (PathSegment_ParamType) Descriptor() protoreflect.EnumDescriptor
- func (x PathSegment_ParamType) Enum() *PathSegment_ParamType
- func (PathSegment_ParamType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PathSegment_ParamType) Number() protoreflect.EnumNumber
- func (x PathSegment_ParamType) String() string
- func (PathSegment_ParamType) Type() protoreflect.EnumType
- type PathSegment_SegmentType
- func (PathSegment_SegmentType) Descriptor() protoreflect.EnumDescriptor
- func (x PathSegment_SegmentType) Enum() *PathSegment_SegmentType
- func (PathSegment_SegmentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PathSegment_SegmentType) Number() protoreflect.EnumNumber
- func (x PathSegment_SegmentType) String() string
- func (PathSegment_SegmentType) Type() protoreflect.EnumType
- type QualifiedName
- func (*QualifiedName) Descriptor() ([]byte, []int)deprecated
- func (x *QualifiedName) GetName() string
- func (x *QualifiedName) GetPkg() string
- func (*QualifiedName) ProtoMessage()
- func (x *QualifiedName) ProtoReflect() protoreflect.Message
- func (x *QualifiedName) Reset()
- func (x *QualifiedName) String() string
- type RPC
- func (*RPC) Descriptor() ([]byte, []int)deprecated
- func (x *RPC) GetAccessType() RPC_AccessType
- func (x *RPC) GetDoc() string
- func (x *RPC) GetHttpMethods() []string
- func (x *RPC) GetLoc() *v1.Loc
- func (x *RPC) GetName() string
- func (x *RPC) GetPath() *Path
- func (x *RPC) GetProto() RPC_Protocol
- func (x *RPC) GetRequestSchema() *v1.Type
- func (x *RPC) GetResponseSchema() *v1.Type
- func (x *RPC) GetServiceName() string
- func (*RPC) ProtoMessage()
- func (x *RPC) ProtoReflect() protoreflect.Message
- func (x *RPC) Reset()
- func (x *RPC) String() string
- type RPCCallNode
- func (*RPCCallNode) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCallNode) GetContext() string
- func (x *RPCCallNode) GetRpcName() string
- func (x *RPCCallNode) GetServiceName() string
- func (*RPCCallNode) ProtoMessage()
- func (x *RPCCallNode) ProtoReflect() protoreflect.Message
- func (x *RPCCallNode) Reset()
- func (x *RPCCallNode) String() string
- type RPCDefNode
- func (*RPCDefNode) Descriptor() ([]byte, []int)deprecated
- func (x *RPCDefNode) GetContext() string
- func (x *RPCDefNode) GetRpcName() string
- func (x *RPCDefNode) GetServiceName() string
- func (*RPCDefNode) ProtoMessage()
- func (x *RPCDefNode) ProtoReflect() protoreflect.Message
- func (x *RPCDefNode) Reset()
- func (x *RPCDefNode) String() string
- type RPC_AccessType
- func (RPC_AccessType) Descriptor() protoreflect.EnumDescriptor
- func (x RPC_AccessType) Enum() *RPC_AccessType
- func (RPC_AccessType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RPC_AccessType) Number() protoreflect.EnumNumber
- func (x RPC_AccessType) String() string
- func (RPC_AccessType) Type() protoreflect.EnumType
- type RPC_Protocol
- func (RPC_Protocol) Descriptor() protoreflect.EnumDescriptor
- func (x RPC_Protocol) Enum() *RPC_Protocol
- func (RPC_Protocol) EnumDescriptor() ([]byte, []int)deprecated
- func (x RPC_Protocol) Number() protoreflect.EnumNumber
- func (x RPC_Protocol) String() string
- func (RPC_Protocol) Type() protoreflect.EnumType
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetDatabases() []string
- func (x *Service) GetMigrations() []*DBMigration
- func (x *Service) GetName() string
- func (x *Service) GetRelPath() string
- func (x *Service) GetRpcs() []*RPC
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type StaticCallNode
- func (*StaticCallNode) Descriptor() ([]byte, []int)deprecated
- func (x *StaticCallNode) GetContext() string
- func (x *StaticCallNode) GetFunc() string
- func (x *StaticCallNode) GetPackage() StaticCallNode_Package
- func (*StaticCallNode) ProtoMessage()
- func (x *StaticCallNode) ProtoReflect() protoreflect.Message
- func (x *StaticCallNode) Reset()
- func (x *StaticCallNode) String() string
- type StaticCallNode_Package
- func (StaticCallNode_Package) Descriptor() protoreflect.EnumDescriptor
- func (x StaticCallNode_Package) Enum() *StaticCallNode_Package
- func (StaticCallNode_Package) EnumDescriptor() ([]byte, []int)deprecated
- func (x StaticCallNode_Package) Number() protoreflect.EnumNumber
- func (x StaticCallNode_Package) String() string
- func (StaticCallNode_Package) Type() protoreflect.EnumType
- type TraceNode
- func (*TraceNode) Descriptor() ([]byte, []int)deprecated
- func (x *TraceNode) GetAuthHandlerDef() *AuthHandlerDefNode
- func (m *TraceNode) GetContext() isTraceNode_Context
- func (x *TraceNode) GetEndPos() int32
- func (x *TraceNode) GetFilepath() string
- func (x *TraceNode) GetId() int32
- func (x *TraceNode) GetRpcCall() *RPCCallNode
- func (x *TraceNode) GetRpcDef() *RPCDefNode
- func (x *TraceNode) GetSrcColEnd() int32
- func (x *TraceNode) GetSrcColStart() int32
- func (x *TraceNode) GetSrcLineEnd() int32
- func (x *TraceNode) GetSrcLineStart() int32
- func (x *TraceNode) GetStartPos() int32
- func (x *TraceNode) GetStaticCall() *StaticCallNode
- func (*TraceNode) ProtoMessage()
- func (x *TraceNode) ProtoReflect() protoreflect.Message
- func (x *TraceNode) Reset()
- func (x *TraceNode) String() string
- type TraceNode_AuthHandlerDef
- type TraceNode_RpcCall
- type TraceNode_RpcDef
- type TraceNode_StaticCall
Constants ¶
This section is empty.
Variables ¶
var ( RPC_AccessType_name = map[int32]string{ 0: "PRIVATE", 1: "PUBLIC", 2: "AUTH", } RPC_AccessType_value = map[string]int32{ "PRIVATE": 0, "PUBLIC": 1, "AUTH": 2, } )
Enum value maps for RPC_AccessType.
var ( RPC_Protocol_name = map[int32]string{ 0: "REGULAR", 1: "RAW", } RPC_Protocol_value = map[string]int32{ "REGULAR": 0, "RAW": 1, } )
Enum value maps for RPC_Protocol.
var ( StaticCallNode_Package_name = map[int32]string{ 0: "UNKNOWN", 1: "SQLDB", 2: "RLOG", } StaticCallNode_Package_value = map[string]int32{ "UNKNOWN": 0, "SQLDB": 1, "RLOG": 2, } )
Enum value maps for StaticCallNode_Package.
var ( PathSegment_SegmentType_name = map[int32]string{ 0: "LITERAL", 1: "PARAM", 2: "WILDCARD", } PathSegment_SegmentType_value = map[string]int32{ "LITERAL": 0, "PARAM": 1, "WILDCARD": 2, } )
Enum value maps for PathSegment_SegmentType.
var ( PathSegment_ParamType_name = map[int32]string{ 0: "STRING", 1: "BOOL", 2: "INT8", 3: "INT16", 4: "INT32", 5: "INT64", 6: "INT", 7: "UINT8", 8: "UINT16", 9: "UINT32", 10: "UINT64", 11: "UINT", 12: "UUID", } PathSegment_ParamType_value = map[string]int32{ "STRING": 0, "BOOL": 1, "INT8": 2, "INT16": 3, "INT32": 4, "INT64": 5, "INT": 6, "UINT8": 7, "UINT16": 8, "UINT32": 9, "UINT64": 10, "UINT": 11, "UUID": 12, } )
Enum value maps for PathSegment_ParamType.
var File_encore_parser_meta_v1_meta_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Doc string `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"` PkgPath string `protobuf:"bytes,3,opt,name=pkg_path,json=pkgPath,proto3" json:"pkg_path,omitempty"` // package (service) import path PkgName string `protobuf:"bytes,4,opt,name=pkg_name,json=pkgName,proto3" json:"pkg_name,omitempty"` // package (service) name Loc *v1.Loc `protobuf:"bytes,5,opt,name=loc,proto3" json:"loc,omitempty"` AuthData *v1.Type `protobuf:"bytes,6,opt,name=auth_data,json=authData,proto3,oneof" json:"auth_data,omitempty"` // custom auth data, or nil Params *v1.Type `protobuf:"bytes,7,opt,name=params,proto3,oneof" json:"params,omitempty"` // builtin string or named type // contains filtered or unexported fields }
func (*AuthHandler) Descriptor
deprecated
func (*AuthHandler) Descriptor() ([]byte, []int)
Deprecated: Use AuthHandler.ProtoReflect.Descriptor instead.
func (*AuthHandler) GetAuthData ¶
func (x *AuthHandler) GetAuthData() *v1.Type
func (*AuthHandler) GetDoc ¶
func (x *AuthHandler) GetDoc() string
func (*AuthHandler) GetLoc ¶
func (x *AuthHandler) GetLoc() *v1.Loc
func (*AuthHandler) GetName ¶
func (x *AuthHandler) GetName() string
func (*AuthHandler) GetParams ¶ added in v1.1.0
func (x *AuthHandler) GetParams() *v1.Type
func (*AuthHandler) GetPkgName ¶
func (x *AuthHandler) GetPkgName() string
func (*AuthHandler) GetPkgPath ¶
func (x *AuthHandler) GetPkgPath() string
func (*AuthHandler) ProtoMessage ¶
func (*AuthHandler) ProtoMessage()
func (*AuthHandler) ProtoReflect ¶
func (x *AuthHandler) ProtoReflect() protoreflect.Message
func (*AuthHandler) Reset ¶
func (x *AuthHandler) Reset()
func (*AuthHandler) String ¶
func (x *AuthHandler) String() string
type AuthHandlerDefNode ¶
type AuthHandlerDefNode struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*AuthHandlerDefNode) Descriptor
deprecated
func (*AuthHandlerDefNode) Descriptor() ([]byte, []int)
Deprecated: Use AuthHandlerDefNode.ProtoReflect.Descriptor instead.
func (*AuthHandlerDefNode) GetContext ¶
func (x *AuthHandlerDefNode) GetContext() string
func (*AuthHandlerDefNode) GetName ¶
func (x *AuthHandlerDefNode) GetName() string
func (*AuthHandlerDefNode) GetServiceName ¶
func (x *AuthHandlerDefNode) GetServiceName() string
func (*AuthHandlerDefNode) ProtoMessage ¶
func (*AuthHandlerDefNode) ProtoMessage()
func (*AuthHandlerDefNode) ProtoReflect ¶
func (x *AuthHandlerDefNode) ProtoReflect() protoreflect.Message
func (*AuthHandlerDefNode) Reset ¶
func (x *AuthHandlerDefNode) Reset()
func (*AuthHandlerDefNode) String ¶
func (x *AuthHandlerDefNode) String() string
type CronJob ¶ added in v0.19.0
type CronJob struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` Schedule string `protobuf:"bytes,4,opt,name=schedule,proto3" json:"schedule,omitempty"` Endpoint *QualifiedName `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // contains filtered or unexported fields }
func (*CronJob) Descriptor
deprecated
added in
v0.19.0
func (*CronJob) GetEndpoint ¶ added in v0.19.0
func (x *CronJob) GetEndpoint() *QualifiedName
func (*CronJob) GetSchedule ¶ added in v0.19.0
func (*CronJob) ProtoMessage ¶ added in v0.19.0
func (*CronJob) ProtoMessage()
func (*CronJob) ProtoReflect ¶ added in v0.19.0
func (x *CronJob) ProtoReflect() protoreflect.Message
type DBMigration ¶
type DBMigration struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // filename Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // migration number Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // descriptive name // contains filtered or unexported fields }
func (*DBMigration) Descriptor
deprecated
func (*DBMigration) Descriptor() ([]byte, []int)
Deprecated: Use DBMigration.ProtoReflect.Descriptor instead.
func (*DBMigration) GetDescription ¶
func (x *DBMigration) GetDescription() string
func (*DBMigration) GetFilename ¶
func (x *DBMigration) GetFilename() string
func (*DBMigration) GetNumber ¶
func (x *DBMigration) GetNumber() int32
func (*DBMigration) ProtoMessage ¶
func (*DBMigration) ProtoMessage()
func (*DBMigration) ProtoReflect ¶
func (x *DBMigration) ProtoReflect() protoreflect.Message
func (*DBMigration) Reset ¶
func (x *DBMigration) Reset()
func (*DBMigration) String ¶
func (x *DBMigration) String() string
type Data ¶
type Data struct { ModulePath string `protobuf:"bytes,1,opt,name=module_path,json=modulePath,proto3" json:"module_path,omitempty"` // app module path AppRevision string `protobuf:"bytes,2,opt,name=app_revision,json=appRevision,proto3" json:"app_revision,omitempty"` // app revision (always the VCS revision reference) UncommittedChanges bool `protobuf:"varint,8,opt,name=uncommitted_changes,json=uncommittedChanges,proto3" json:"uncommitted_changes,omitempty"` // true if there where changes made on-top of the VCS revision Decls []*v1.Decl `protobuf:"bytes,3,rep,name=decls,proto3" json:"decls,omitempty"` Pkgs []*Package `protobuf:"bytes,4,rep,name=pkgs,proto3" json:"pkgs,omitempty"` Svcs []*Service `protobuf:"bytes,5,rep,name=svcs,proto3" json:"svcs,omitempty"` AuthHandler *AuthHandler `protobuf:"bytes,6,opt,name=auth_handler,json=authHandler,proto3,oneof" json:"auth_handler,omitempty"` // the auth handler or nil CronJobs []*CronJob `protobuf:"bytes,7,rep,name=cron_jobs,json=cronJobs,proto3" json:"cron_jobs,omitempty"` // contains filtered or unexported fields }
Data is the metadata associated with an app version.
func (*Data) Descriptor
deprecated
func (*Data) GetAppRevision ¶ added in v1.1.0
func (*Data) GetAuthHandler ¶
func (x *Data) GetAuthHandler() *AuthHandler
func (*Data) GetCronJobs ¶ added in v0.19.0
func (*Data) GetModulePath ¶
func (*Data) GetUncommittedChanges ¶ added in v1.1.0
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Package ¶
type Package struct { RelPath string `protobuf:"bytes,1,opt,name=rel_path,json=relPath,proto3" json:"rel_path,omitempty"` // import path relative to app root ("." for the app root itself) Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // package name as declared in Go files Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` // associated documentation ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // service name this package is a part of, if any Secrets []string `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty"` // secrets required by this package RpcCalls []*QualifiedName `protobuf:"bytes,6,rep,name=rpc_calls,json=rpcCalls,proto3" json:"rpc_calls,omitempty"` // RPCs called by the package TraceNodes []*TraceNode `protobuf:"bytes,7,rep,name=trace_nodes,json=traceNodes,proto3" json:"trace_nodes,omitempty"` // contains filtered or unexported fields }
func (*Package) Descriptor
deprecated
func (*Package) GetRelPath ¶
func (*Package) GetRpcCalls ¶
func (x *Package) GetRpcCalls() []*QualifiedName
func (*Package) GetSecrets ¶
func (*Package) GetServiceName ¶
func (*Package) GetTraceNodes ¶
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type Path ¶ added in v0.16.2
type Path struct { Segments []*PathSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"` // contains filtered or unexported fields }
func (*Path) Descriptor
deprecated
added in
v0.16.2
func (*Path) GetSegments ¶ added in v0.16.2
func (x *Path) GetSegments() []*PathSegment
func (*Path) ProtoMessage ¶ added in v0.16.2
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶ added in v0.16.2
func (x *Path) ProtoReflect() protoreflect.Message
type PathSegment ¶ added in v0.16.2
type PathSegment struct { Type PathSegment_SegmentType `protobuf:"varint,1,opt,name=type,proto3,enum=encore.parser.meta.v1.PathSegment_SegmentType" json:"type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` ValueType PathSegment_ParamType `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PathSegment) Descriptor
deprecated
added in
v0.16.2
func (*PathSegment) Descriptor() ([]byte, []int)
Deprecated: Use PathSegment.ProtoReflect.Descriptor instead.
func (*PathSegment) GetType ¶ added in v0.16.2
func (x *PathSegment) GetType() PathSegment_SegmentType
func (*PathSegment) GetValue ¶ added in v0.16.2
func (x *PathSegment) GetValue() string
func (*PathSegment) GetValueType ¶ added in v0.16.2
func (x *PathSegment) GetValueType() PathSegment_ParamType
func (*PathSegment) ProtoMessage ¶ added in v0.16.2
func (*PathSegment) ProtoMessage()
func (*PathSegment) ProtoReflect ¶ added in v0.16.2
func (x *PathSegment) ProtoReflect() protoreflect.Message
func (*PathSegment) Reset ¶ added in v0.16.2
func (x *PathSegment) Reset()
func (*PathSegment) String ¶ added in v0.16.2
func (x *PathSegment) String() string
type PathSegment_ParamType ¶ added in v0.16.2
type PathSegment_ParamType int32
const ( PathSegment_STRING PathSegment_ParamType = 0 PathSegment_BOOL PathSegment_ParamType = 1 PathSegment_INT8 PathSegment_ParamType = 2 PathSegment_INT16 PathSegment_ParamType = 3 PathSegment_INT32 PathSegment_ParamType = 4 PathSegment_INT64 PathSegment_ParamType = 5 PathSegment_INT PathSegment_ParamType = 6 PathSegment_UINT8 PathSegment_ParamType = 7 PathSegment_UINT16 PathSegment_ParamType = 8 PathSegment_UINT32 PathSegment_ParamType = 9 PathSegment_UINT64 PathSegment_ParamType = 10 PathSegment_UINT PathSegment_ParamType = 11 PathSegment_UUID PathSegment_ParamType = 12 )
func (PathSegment_ParamType) Descriptor ¶ added in v0.16.2
func (PathSegment_ParamType) Descriptor() protoreflect.EnumDescriptor
func (PathSegment_ParamType) Enum ¶ added in v0.16.2
func (x PathSegment_ParamType) Enum() *PathSegment_ParamType
func (PathSegment_ParamType) EnumDescriptor
deprecated
added in
v0.16.2
func (PathSegment_ParamType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PathSegment_ParamType.Descriptor instead.
func (PathSegment_ParamType) Number ¶ added in v0.16.2
func (x PathSegment_ParamType) Number() protoreflect.EnumNumber
func (PathSegment_ParamType) String ¶ added in v0.16.2
func (x PathSegment_ParamType) String() string
func (PathSegment_ParamType) Type ¶ added in v0.16.2
func (PathSegment_ParamType) Type() protoreflect.EnumType
type PathSegment_SegmentType ¶ added in v0.16.2
type PathSegment_SegmentType int32
const ( PathSegment_LITERAL PathSegment_SegmentType = 0 PathSegment_PARAM PathSegment_SegmentType = 1 PathSegment_WILDCARD PathSegment_SegmentType = 2 )
func (PathSegment_SegmentType) Descriptor ¶ added in v0.16.2
func (PathSegment_SegmentType) Descriptor() protoreflect.EnumDescriptor
func (PathSegment_SegmentType) Enum ¶ added in v0.16.2
func (x PathSegment_SegmentType) Enum() *PathSegment_SegmentType
func (PathSegment_SegmentType) EnumDescriptor
deprecated
added in
v0.16.2
func (PathSegment_SegmentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PathSegment_SegmentType.Descriptor instead.
func (PathSegment_SegmentType) Number ¶ added in v0.16.2
func (x PathSegment_SegmentType) Number() protoreflect.EnumNumber
func (PathSegment_SegmentType) String ¶ added in v0.16.2
func (x PathSegment_SegmentType) String() string
func (PathSegment_SegmentType) Type ¶ added in v0.16.2
func (PathSegment_SegmentType) Type() protoreflect.EnumType
type QualifiedName ¶
type QualifiedName struct { Pkg string `protobuf:"bytes,1,opt,name=pkg,proto3" json:"pkg,omitempty"` // "rel/path/to/pkg" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // ObjectName // contains filtered or unexported fields }
QualifiedName is a name of an object in a specific package. It is never an unqualified name, even in circumstances where a package may refer to its own objects.
func (*QualifiedName) Descriptor
deprecated
func (*QualifiedName) Descriptor() ([]byte, []int)
Deprecated: Use QualifiedName.ProtoReflect.Descriptor instead.
func (*QualifiedName) GetName ¶
func (x *QualifiedName) GetName() string
func (*QualifiedName) GetPkg ¶
func (x *QualifiedName) GetPkg() string
func (*QualifiedName) ProtoMessage ¶
func (*QualifiedName) ProtoMessage()
func (*QualifiedName) ProtoReflect ¶
func (x *QualifiedName) ProtoReflect() protoreflect.Message
func (*QualifiedName) Reset ¶
func (x *QualifiedName) Reset()
func (*QualifiedName) String ¶
func (x *QualifiedName) String() string
type RPC ¶
type RPC struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // name of the RPC endpoint Doc string `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"` // associated documentation ServiceName string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // the service the RPC belongs to. AccessType RPC_AccessType `` // how can the RPC be accessed? /* 134-byte string literal not displayed */ RequestSchema *v1.Type `protobuf:"bytes,5,opt,name=request_schema,json=requestSchema,proto3,oneof" json:"request_schema,omitempty"` // request schema, or nil ResponseSchema *v1.Type `protobuf:"bytes,6,opt,name=response_schema,json=responseSchema,proto3,oneof" json:"response_schema,omitempty"` // response schema, or nil Proto RPC_Protocol `protobuf:"varint,7,opt,name=proto,proto3,enum=encore.parser.meta.v1.RPC_Protocol" json:"proto,omitempty"` Loc *v1.Loc `protobuf:"bytes,8,opt,name=loc,proto3" json:"loc,omitempty"` Path *Path `protobuf:"bytes,9,opt,name=path,proto3" json:"path,omitempty"` HttpMethods []string `protobuf:"bytes,10,rep,name=http_methods,json=httpMethods,proto3" json:"http_methods,omitempty"` // contains filtered or unexported fields }
func (*RPC) Descriptor
deprecated
func (*RPC) GetAccessType ¶
func (x *RPC) GetAccessType() RPC_AccessType
func (*RPC) GetHttpMethods ¶ added in v0.16.2
func (*RPC) GetProto ¶
func (x *RPC) GetProto() RPC_Protocol
func (*RPC) GetRequestSchema ¶
func (*RPC) GetResponseSchema ¶
func (*RPC) GetServiceName ¶
func (*RPC) ProtoMessage ¶
func (*RPC) ProtoMessage()
func (*RPC) ProtoReflect ¶
func (x *RPC) ProtoReflect() protoreflect.Message
type RPCCallNode ¶
type RPCCallNode struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` RpcName string `protobuf:"bytes,2,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*RPCCallNode) Descriptor
deprecated
func (*RPCCallNode) Descriptor() ([]byte, []int)
Deprecated: Use RPCCallNode.ProtoReflect.Descriptor instead.
func (*RPCCallNode) GetContext ¶
func (x *RPCCallNode) GetContext() string
func (*RPCCallNode) GetRpcName ¶
func (x *RPCCallNode) GetRpcName() string
func (*RPCCallNode) GetServiceName ¶
func (x *RPCCallNode) GetServiceName() string
func (*RPCCallNode) ProtoMessage ¶
func (*RPCCallNode) ProtoMessage()
func (*RPCCallNode) ProtoReflect ¶
func (x *RPCCallNode) ProtoReflect() protoreflect.Message
func (*RPCCallNode) Reset ¶
func (x *RPCCallNode) Reset()
func (*RPCCallNode) String ¶
func (x *RPCCallNode) String() string
type RPCDefNode ¶
type RPCDefNode struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` RpcName string `protobuf:"bytes,2,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*RPCDefNode) Descriptor
deprecated
func (*RPCDefNode) Descriptor() ([]byte, []int)
Deprecated: Use RPCDefNode.ProtoReflect.Descriptor instead.
func (*RPCDefNode) GetContext ¶
func (x *RPCDefNode) GetContext() string
func (*RPCDefNode) GetRpcName ¶
func (x *RPCDefNode) GetRpcName() string
func (*RPCDefNode) GetServiceName ¶
func (x *RPCDefNode) GetServiceName() string
func (*RPCDefNode) ProtoMessage ¶
func (*RPCDefNode) ProtoMessage()
func (*RPCDefNode) ProtoReflect ¶
func (x *RPCDefNode) ProtoReflect() protoreflect.Message
func (*RPCDefNode) Reset ¶
func (x *RPCDefNode) Reset()
func (*RPCDefNode) String ¶
func (x *RPCDefNode) String() string
type RPC_AccessType ¶
type RPC_AccessType int32
const ( RPC_PRIVATE RPC_AccessType = 0 RPC_PUBLIC RPC_AccessType = 1 RPC_AUTH RPC_AccessType = 2 )
func (RPC_AccessType) Descriptor ¶
func (RPC_AccessType) Descriptor() protoreflect.EnumDescriptor
func (RPC_AccessType) Enum ¶
func (x RPC_AccessType) Enum() *RPC_AccessType
func (RPC_AccessType) EnumDescriptor
deprecated
func (RPC_AccessType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RPC_AccessType.Descriptor instead.
func (RPC_AccessType) Number ¶
func (x RPC_AccessType) Number() protoreflect.EnumNumber
func (RPC_AccessType) String ¶
func (x RPC_AccessType) String() string
func (RPC_AccessType) Type ¶
func (RPC_AccessType) Type() protoreflect.EnumType
type RPC_Protocol ¶
type RPC_Protocol int32
const ( RPC_REGULAR RPC_Protocol = 0 RPC_RAW RPC_Protocol = 1 )
func (RPC_Protocol) Descriptor ¶
func (RPC_Protocol) Descriptor() protoreflect.EnumDescriptor
func (RPC_Protocol) Enum ¶
func (x RPC_Protocol) Enum() *RPC_Protocol
func (RPC_Protocol) EnumDescriptor
deprecated
func (RPC_Protocol) EnumDescriptor() ([]byte, []int)
Deprecated: Use RPC_Protocol.Descriptor instead.
func (RPC_Protocol) Number ¶
func (x RPC_Protocol) Number() protoreflect.EnumNumber
func (RPC_Protocol) String ¶
func (x RPC_Protocol) String() string
func (RPC_Protocol) Type ¶
func (RPC_Protocol) Type() protoreflect.EnumType
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` RelPath string `protobuf:"bytes,2,opt,name=rel_path,json=relPath,proto3" json:"rel_path,omitempty"` // import path relative to app root for the root package in the service Rpcs []*RPC `protobuf:"bytes,3,rep,name=rpcs,proto3" json:"rpcs,omitempty"` Migrations []*DBMigration `protobuf:"bytes,4,rep,name=migrations,proto3" json:"migrations,omitempty"` Databases []string `protobuf:"bytes,5,rep,name=databases,proto3" json:"databases,omitempty"` // databases this service connects to // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetDatabases ¶ added in v1.1.0
func (*Service) GetMigrations ¶
func (x *Service) GetMigrations() []*DBMigration
func (*Service) GetRelPath ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type StaticCallNode ¶
type StaticCallNode struct { Package StaticCallNode_Package `protobuf:"varint,1,opt,name=package,proto3,enum=encore.parser.meta.v1.StaticCallNode_Package" json:"package,omitempty"` Func string `protobuf:"bytes,2,opt,name=func,proto3" json:"func,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*StaticCallNode) Descriptor
deprecated
func (*StaticCallNode) Descriptor() ([]byte, []int)
Deprecated: Use StaticCallNode.ProtoReflect.Descriptor instead.
func (*StaticCallNode) GetContext ¶
func (x *StaticCallNode) GetContext() string
func (*StaticCallNode) GetFunc ¶
func (x *StaticCallNode) GetFunc() string
func (*StaticCallNode) GetPackage ¶
func (x *StaticCallNode) GetPackage() StaticCallNode_Package
func (*StaticCallNode) ProtoMessage ¶
func (*StaticCallNode) ProtoMessage()
func (*StaticCallNode) ProtoReflect ¶
func (x *StaticCallNode) ProtoReflect() protoreflect.Message
func (*StaticCallNode) Reset ¶
func (x *StaticCallNode) Reset()
func (*StaticCallNode) String ¶
func (x *StaticCallNode) String() string
type StaticCallNode_Package ¶
type StaticCallNode_Package int32
const ( StaticCallNode_UNKNOWN StaticCallNode_Package = 0 StaticCallNode_SQLDB StaticCallNode_Package = 1 StaticCallNode_RLOG StaticCallNode_Package = 2 )
func (StaticCallNode_Package) Descriptor ¶
func (StaticCallNode_Package) Descriptor() protoreflect.EnumDescriptor
func (StaticCallNode_Package) Enum ¶
func (x StaticCallNode_Package) Enum() *StaticCallNode_Package
func (StaticCallNode_Package) EnumDescriptor
deprecated
func (StaticCallNode_Package) EnumDescriptor() ([]byte, []int)
Deprecated: Use StaticCallNode_Package.Descriptor instead.
func (StaticCallNode_Package) Number ¶
func (x StaticCallNode_Package) Number() protoreflect.EnumNumber
func (StaticCallNode_Package) String ¶
func (x StaticCallNode_Package) String() string
func (StaticCallNode_Package) Type ¶
func (StaticCallNode_Package) Type() protoreflect.EnumType
type TraceNode ¶
type TraceNode struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Filepath string `protobuf:"bytes,2,opt,name=filepath,proto3" json:"filepath,omitempty"` // slash-separated, relative to app root StartPos int32 `protobuf:"varint,4,opt,name=start_pos,json=startPos,proto3" json:"start_pos,omitempty"` EndPos int32 `protobuf:"varint,5,opt,name=end_pos,json=endPos,proto3" json:"end_pos,omitempty"` SrcLineStart int32 `protobuf:"varint,6,opt,name=src_line_start,json=srcLineStart,proto3" json:"src_line_start,omitempty"` SrcLineEnd int32 `protobuf:"varint,7,opt,name=src_line_end,json=srcLineEnd,proto3" json:"src_line_end,omitempty"` SrcColStart int32 `protobuf:"varint,8,opt,name=src_col_start,json=srcColStart,proto3" json:"src_col_start,omitempty"` SrcColEnd int32 `protobuf:"varint,9,opt,name=src_col_end,json=srcColEnd,proto3" json:"src_col_end,omitempty"` // Types that are assignable to Context: // *TraceNode_RpcDef // *TraceNode_RpcCall // *TraceNode_StaticCall // *TraceNode_AuthHandlerDef Context isTraceNode_Context `protobuf_oneof:"context"` // contains filtered or unexported fields }
func (*TraceNode) Descriptor
deprecated
func (*TraceNode) GetAuthHandlerDef ¶
func (x *TraceNode) GetAuthHandlerDef() *AuthHandlerDefNode
func (*TraceNode) GetContext ¶
func (m *TraceNode) GetContext() isTraceNode_Context
func (*TraceNode) GetFilepath ¶
func (*TraceNode) GetRpcCall ¶
func (x *TraceNode) GetRpcCall() *RPCCallNode
func (*TraceNode) GetRpcDef ¶
func (x *TraceNode) GetRpcDef() *RPCDefNode
func (*TraceNode) GetSrcColEnd ¶
func (*TraceNode) GetSrcColStart ¶
func (*TraceNode) GetSrcLineEnd ¶
func (*TraceNode) GetSrcLineStart ¶
func (*TraceNode) GetStartPos ¶
func (*TraceNode) GetStaticCall ¶
func (x *TraceNode) GetStaticCall() *StaticCallNode
func (*TraceNode) ProtoMessage ¶
func (*TraceNode) ProtoMessage()
func (*TraceNode) ProtoReflect ¶
func (x *TraceNode) ProtoReflect() protoreflect.Message
type TraceNode_AuthHandlerDef ¶
type TraceNode_AuthHandlerDef struct {
AuthHandlerDef *AuthHandlerDefNode `protobuf:"bytes,13,opt,name=auth_handler_def,json=authHandlerDef,proto3,oneof"`
}
type TraceNode_RpcCall ¶
type TraceNode_RpcCall struct {
RpcCall *RPCCallNode `protobuf:"bytes,11,opt,name=rpc_call,json=rpcCall,proto3,oneof"`
}
type TraceNode_RpcDef ¶
type TraceNode_RpcDef struct {
RpcDef *RPCDefNode `protobuf:"bytes,10,opt,name=rpc_def,json=rpcDef,proto3,oneof"`
}
type TraceNode_StaticCall ¶
type TraceNode_StaticCall struct {
StaticCall *StaticCallNode `protobuf:"bytes,12,opt,name=static_call,json=staticCall,proto3,oneof"`
}