Documentation ¶
Index ¶
- Variables
- func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
- type GetQuerySchema
- type GetQuerySchema_Request
- type GetQuerySchema_Response
- func (*GetQuerySchema_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetQuerySchema_Response) GetSchema() *Schema
- func (*GetQuerySchema_Response) ProtoMessage()
- func (x *GetQuerySchema_Response) ProtoReflect() protoreflect.Message
- func (x *GetQuerySchema_Response) Reset()
- func (x *GetQuerySchema_Response) String() string
- type ProviderClient
- type ProviderParameter
- func (*ProviderParameter) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderParameter) GetJson() string
- func (x *ProviderParameter) GetName() string
- func (x *ProviderParameter) GetType() string
- func (*ProviderParameter) ProtoMessage()
- func (x *ProviderParameter) ProtoReflect() protoreflect.Message
- func (x *ProviderParameter) Reset()
- func (x *ProviderParameter) String() string
- type ProviderServer
- type RunQuery
- type RunQuery_Request
- func (*RunQuery_Request) Descriptor() ([]byte, []int)deprecated
- func (x *RunQuery_Request) GetProviderParams() *ProviderParameter
- func (x *RunQuery_Request) GetQueryName() string
- func (x *RunQuery_Request) GetQueryParams() string
- func (*RunQuery_Request) ProtoMessage()
- func (x *RunQuery_Request) ProtoReflect() protoreflect.Message
- func (x *RunQuery_Request) Reset()
- func (x *RunQuery_Request) String() string
- type RunQuery_Response
- func (*RunQuery_Response) Descriptor() ([]byte, []int)deprecated
- func (x *RunQuery_Response) GetColumns() []string
- func (x *RunQuery_Response) GetJsonlines() []string
- func (x *RunQuery_Response) GetName() string
- func (x *RunQuery_Response) GetParams() []string
- func (x *RunQuery_Response) GetQuery() string
- func (x *RunQuery_Response) GetRows() []*RunQuery_Response_Row
- func (*RunQuery_Response) ProtoMessage()
- func (x *RunQuery_Response) ProtoReflect() protoreflect.Message
- func (x *RunQuery_Response) Reset()
- func (x *RunQuery_Response) String() string
- type RunQuery_Response_Row
- func (*RunQuery_Response_Row) Descriptor() ([]byte, []int)deprecated
- func (x *RunQuery_Response_Row) GetValues() []string
- func (*RunQuery_Response_Row) ProtoMessage()
- func (x *RunQuery_Response_Row) ProtoReflect() protoreflect.Message
- func (x *RunQuery_Response_Row) Reset()
- func (x *RunQuery_Response_Row) String() string
- type Schema
- type Schema_Attribute
- func (*Schema_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Schema_Attribute) GetName() string
- func (x *Schema_Attribute) GetRequired() bool
- func (*Schema_Attribute) ProtoMessage()
- func (x *Schema_Attribute) ProtoReflect() protoreflect.Message
- func (x *Schema_Attribute) Reset()
- func (x *Schema_Attribute) String() string
- type Schema_Block
- func (*Schema_Block) Descriptor() ([]byte, []int)deprecated
- func (x *Schema_Block) GetBody() *Schema
- func (x *Schema_Block) GetLabels() []string
- func (x *Schema_Block) GetRequired() bool
- func (x *Schema_Block) GetType() string
- func (x *Schema_Block) GetUnique() bool
- func (x *Schema_Block) GetUniqueLabels() bool
- func (*Schema_Block) ProtoMessage()
- func (x *Schema_Block) ProtoReflect() protoreflect.Message
- func (x *Schema_Block) Reset()
- func (x *Schema_Block) String() string
- type UnimplementedProviderServer
- func (UnimplementedProviderServer) GetQuerySchema(context.Context, *GetQuerySchema_Request) (*GetQuerySchema_Response, error)
- func (UnimplementedProviderServer) RunQuery(context.Context, *RunQuery_Request) (*RunQuery_Response, error)
- func (UnimplementedProviderServer) ValidateProviderParameter(context.Context, *ValidatProviderPaameter_Request) (*ValidatProviderPaameter_Response, error)
- type UnsafeProviderServer
- type ValidatProviderPaameter
- type ValidatProviderPaameter_Request
- func (*ValidatProviderPaameter_Request) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatProviderPaameter_Request) GetParameter() *ProviderParameter
- func (*ValidatProviderPaameter_Request) ProtoMessage()
- func (x *ValidatProviderPaameter_Request) ProtoReflect() protoreflect.Message
- func (x *ValidatProviderPaameter_Request) Reset()
- func (x *ValidatProviderPaameter_Request) String() string
- type ValidatProviderPaameter_Response
- func (*ValidatProviderPaameter_Response) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatProviderPaameter_Response) GetMessage() string
- func (x *ValidatProviderPaameter_Response) GetOk() bool
- func (*ValidatProviderPaameter_Response) ProtoMessage()
- func (x *ValidatProviderPaameter_Response) ProtoReflect() protoreflect.Message
- func (x *ValidatProviderPaameter_Response) Reset()
- func (x *ValidatProviderPaameter_Response) String() string
Constants ¶
This section is empty.
Variables ¶
var File_plugin_proto_prepalert_proto protoreflect.FileDescriptor
var Provider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "prepalert.Provider", HandlerType: (*ProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ValidateProviderParameter", Handler: _Provider_ValidateProviderParameter_Handler, }, { MethodName: "GetQuerySchema", Handler: _Provider_GetQuerySchema_Handler, }, { MethodName: "RunQuery", Handler: _Provider_RunQuery_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/proto/prepalert.proto", }
Provider_ServiceDesc is the grpc.ServiceDesc for Provider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProviderServer ¶
func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
Types ¶
type GetQuerySchema ¶
type GetQuerySchema struct {
// contains filtered or unexported fields
}
func (*GetQuerySchema) Descriptor
deprecated
func (*GetQuerySchema) Descriptor() ([]byte, []int)
Deprecated: Use GetQuerySchema.ProtoReflect.Descriptor instead.
func (*GetQuerySchema) ProtoMessage ¶
func (*GetQuerySchema) ProtoMessage()
func (*GetQuerySchema) ProtoReflect ¶
func (x *GetQuerySchema) ProtoReflect() protoreflect.Message
func (*GetQuerySchema) Reset ¶
func (x *GetQuerySchema) Reset()
func (*GetQuerySchema) String ¶
func (x *GetQuerySchema) String() string
type GetQuerySchema_Request ¶
type GetQuerySchema_Request struct {
// contains filtered or unexported fields
}
func (*GetQuerySchema_Request) Descriptor
deprecated
func (*GetQuerySchema_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetQuerySchema_Request.ProtoReflect.Descriptor instead.
func (*GetQuerySchema_Request) ProtoMessage ¶
func (*GetQuerySchema_Request) ProtoMessage()
func (*GetQuerySchema_Request) ProtoReflect ¶
func (x *GetQuerySchema_Request) ProtoReflect() protoreflect.Message
func (*GetQuerySchema_Request) Reset ¶
func (x *GetQuerySchema_Request) Reset()
func (*GetQuerySchema_Request) String ¶
func (x *GetQuerySchema_Request) String() string
type GetQuerySchema_Response ¶
type GetQuerySchema_Response struct { Schema *Schema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // contains filtered or unexported fields }
func (*GetQuerySchema_Response) Descriptor
deprecated
func (*GetQuerySchema_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetQuerySchema_Response.ProtoReflect.Descriptor instead.
func (*GetQuerySchema_Response) GetSchema ¶
func (x *GetQuerySchema_Response) GetSchema() *Schema
func (*GetQuerySchema_Response) ProtoMessage ¶
func (*GetQuerySchema_Response) ProtoMessage()
func (*GetQuerySchema_Response) ProtoReflect ¶
func (x *GetQuerySchema_Response) ProtoReflect() protoreflect.Message
func (*GetQuerySchema_Response) Reset ¶
func (x *GetQuerySchema_Response) Reset()
func (*GetQuerySchema_Response) String ¶
func (x *GetQuerySchema_Response) String() string
type ProviderClient ¶
type ProviderClient interface { ValidateProviderParameter(ctx context.Context, in *ValidatProviderPaameter_Request, opts ...grpc.CallOption) (*ValidatProviderPaameter_Response, error) GetQuerySchema(ctx context.Context, in *GetQuerySchema_Request, opts ...grpc.CallOption) (*GetQuerySchema_Response, error) RunQuery(ctx context.Context, in *RunQuery_Request, opts ...grpc.CallOption) (*RunQuery_Response, error) }
ProviderClient is the client API for Provider service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProviderClient ¶
func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient
type ProviderParameter ¶
type ProviderParameter struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Json string `protobuf:"bytes,3,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*ProviderParameter) Descriptor
deprecated
func (*ProviderParameter) Descriptor() ([]byte, []int)
Deprecated: Use ProviderParameter.ProtoReflect.Descriptor instead.
func (*ProviderParameter) GetJson ¶
func (x *ProviderParameter) GetJson() string
func (*ProviderParameter) GetName ¶
func (x *ProviderParameter) GetName() string
func (*ProviderParameter) GetType ¶
func (x *ProviderParameter) GetType() string
func (*ProviderParameter) ProtoMessage ¶
func (*ProviderParameter) ProtoMessage()
func (*ProviderParameter) ProtoReflect ¶
func (x *ProviderParameter) ProtoReflect() protoreflect.Message
func (*ProviderParameter) Reset ¶
func (x *ProviderParameter) Reset()
func (*ProviderParameter) String ¶
func (x *ProviderParameter) String() string
type ProviderServer ¶
type ProviderServer interface { ValidateProviderParameter(context.Context, *ValidatProviderPaameter_Request) (*ValidatProviderPaameter_Response, error) GetQuerySchema(context.Context, *GetQuerySchema_Request) (*GetQuerySchema_Response, error) RunQuery(context.Context, *RunQuery_Request) (*RunQuery_Response, error) // contains filtered or unexported methods }
ProviderServer is the server API for Provider service. All implementations must embed UnimplementedProviderServer for forward compatibility
type RunQuery ¶
type RunQuery struct {
// contains filtered or unexported fields
}
func (*RunQuery) Descriptor
deprecated
func (*RunQuery) ProtoMessage ¶
func (*RunQuery) ProtoMessage()
func (*RunQuery) ProtoReflect ¶
func (x *RunQuery) ProtoReflect() protoreflect.Message
type RunQuery_Request ¶
type RunQuery_Request struct { ProviderParams *ProviderParameter `protobuf:"bytes,1,opt,name=providerParams,proto3" json:"providerParams,omitempty"` QueryName string `protobuf:"bytes,2,opt,name=queryName,proto3" json:"queryName,omitempty"` QueryParams string `protobuf:"bytes,3,opt,name=queryParams,proto3" json:"queryParams,omitempty"` // contains filtered or unexported fields }
func (*RunQuery_Request) Descriptor
deprecated
func (*RunQuery_Request) Descriptor() ([]byte, []int)
Deprecated: Use RunQuery_Request.ProtoReflect.Descriptor instead.
func (*RunQuery_Request) GetProviderParams ¶
func (x *RunQuery_Request) GetProviderParams() *ProviderParameter
func (*RunQuery_Request) GetQueryName ¶
func (x *RunQuery_Request) GetQueryName() string
func (*RunQuery_Request) GetQueryParams ¶
func (x *RunQuery_Request) GetQueryParams() string
func (*RunQuery_Request) ProtoMessage ¶
func (*RunQuery_Request) ProtoMessage()
func (*RunQuery_Request) ProtoReflect ¶
func (x *RunQuery_Request) ProtoReflect() protoreflect.Message
func (*RunQuery_Request) Reset ¶
func (x *RunQuery_Request) Reset()
func (*RunQuery_Request) String ¶
func (x *RunQuery_Request) String() string
type RunQuery_Response ¶
type RunQuery_Response struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Params []string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` Columns []string `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"` Rows []*RunQuery_Response_Row `protobuf:"bytes,5,rep,name=rows,proto3" json:"rows,omitempty"` Jsonlines []string `protobuf:"bytes,6,rep,name=jsonlines,proto3" json:"jsonlines,omitempty"` // contains filtered or unexported fields }
func (*RunQuery_Response) Descriptor
deprecated
func (*RunQuery_Response) Descriptor() ([]byte, []int)
Deprecated: Use RunQuery_Response.ProtoReflect.Descriptor instead.
func (*RunQuery_Response) GetColumns ¶
func (x *RunQuery_Response) GetColumns() []string
func (*RunQuery_Response) GetJsonlines ¶
func (x *RunQuery_Response) GetJsonlines() []string
func (*RunQuery_Response) GetName ¶
func (x *RunQuery_Response) GetName() string
func (*RunQuery_Response) GetParams ¶
func (x *RunQuery_Response) GetParams() []string
func (*RunQuery_Response) GetQuery ¶
func (x *RunQuery_Response) GetQuery() string
func (*RunQuery_Response) GetRows ¶
func (x *RunQuery_Response) GetRows() []*RunQuery_Response_Row
func (*RunQuery_Response) ProtoMessage ¶
func (*RunQuery_Response) ProtoMessage()
func (*RunQuery_Response) ProtoReflect ¶
func (x *RunQuery_Response) ProtoReflect() protoreflect.Message
func (*RunQuery_Response) Reset ¶
func (x *RunQuery_Response) Reset()
func (*RunQuery_Response) String ¶
func (x *RunQuery_Response) String() string
type RunQuery_Response_Row ¶
type RunQuery_Response_Row struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*RunQuery_Response_Row) Descriptor
deprecated
func (*RunQuery_Response_Row) Descriptor() ([]byte, []int)
Deprecated: Use RunQuery_Response_Row.ProtoReflect.Descriptor instead.
func (*RunQuery_Response_Row) GetValues ¶
func (x *RunQuery_Response_Row) GetValues() []string
func (*RunQuery_Response_Row) ProtoMessage ¶
func (*RunQuery_Response_Row) ProtoMessage()
func (*RunQuery_Response_Row) ProtoReflect ¶
func (x *RunQuery_Response_Row) ProtoReflect() protoreflect.Message
func (*RunQuery_Response_Row) Reset ¶
func (x *RunQuery_Response_Row) Reset()
func (*RunQuery_Response_Row) String ¶
func (x *RunQuery_Response_Row) String() string
type Schema ¶
type Schema struct { Attributes []*Schema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` Blocks []*Schema_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` // contains filtered or unexported fields }
func (*Schema) Descriptor
deprecated
func (*Schema) GetAttributes ¶
func (x *Schema) GetAttributes() []*Schema_Attribute
func (*Schema) GetBlocks ¶
func (x *Schema) GetBlocks() []*Schema_Block
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type Schema_Attribute ¶
type Schema_Attribute struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` // contains filtered or unexported fields }
func (*Schema_Attribute) Descriptor
deprecated
func (*Schema_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Schema_Attribute.ProtoReflect.Descriptor instead.
func (*Schema_Attribute) GetName ¶
func (x *Schema_Attribute) GetName() string
func (*Schema_Attribute) GetRequired ¶
func (x *Schema_Attribute) GetRequired() bool
func (*Schema_Attribute) ProtoMessage ¶
func (*Schema_Attribute) ProtoMessage()
func (*Schema_Attribute) ProtoReflect ¶
func (x *Schema_Attribute) ProtoReflect() protoreflect.Message
func (*Schema_Attribute) Reset ¶
func (x *Schema_Attribute) Reset()
func (*Schema_Attribute) String ¶
func (x *Schema_Attribute) String() string
type Schema_Block ¶
type Schema_Block struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` Unique bool `protobuf:"varint,3,opt,name=unique,proto3" json:"unique,omitempty"` Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` UniqueLabels bool `protobuf:"varint,5,opt,name=uniqueLabels,proto3" json:"uniqueLabels,omitempty"` Body *Schema `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Schema_Block) Descriptor
deprecated
func (*Schema_Block) Descriptor() ([]byte, []int)
Deprecated: Use Schema_Block.ProtoReflect.Descriptor instead.
func (*Schema_Block) GetBody ¶
func (x *Schema_Block) GetBody() *Schema
func (*Schema_Block) GetLabels ¶
func (x *Schema_Block) GetLabels() []string
func (*Schema_Block) GetRequired ¶
func (x *Schema_Block) GetRequired() bool
func (*Schema_Block) GetType ¶
func (x *Schema_Block) GetType() string
func (*Schema_Block) GetUnique ¶
func (x *Schema_Block) GetUnique() bool
func (*Schema_Block) GetUniqueLabels ¶
func (x *Schema_Block) GetUniqueLabels() bool
func (*Schema_Block) ProtoMessage ¶
func (*Schema_Block) ProtoMessage()
func (*Schema_Block) ProtoReflect ¶
func (x *Schema_Block) ProtoReflect() protoreflect.Message
func (*Schema_Block) Reset ¶
func (x *Schema_Block) Reset()
func (*Schema_Block) String ¶
func (x *Schema_Block) String() string
type UnimplementedProviderServer ¶
type UnimplementedProviderServer struct { }
UnimplementedProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderServer) GetQuerySchema ¶
func (UnimplementedProviderServer) GetQuerySchema(context.Context, *GetQuerySchema_Request) (*GetQuerySchema_Response, error)
func (UnimplementedProviderServer) RunQuery ¶
func (UnimplementedProviderServer) RunQuery(context.Context, *RunQuery_Request) (*RunQuery_Response, error)
func (UnimplementedProviderServer) ValidateProviderParameter ¶
func (UnimplementedProviderServer) ValidateProviderParameter(context.Context, *ValidatProviderPaameter_Request) (*ValidatProviderPaameter_Response, error)
type UnsafeProviderServer ¶
type UnsafeProviderServer interface {
// contains filtered or unexported methods
}
UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderServer will result in compilation errors.
type ValidatProviderPaameter ¶
type ValidatProviderPaameter struct {
// contains filtered or unexported fields
}
func (*ValidatProviderPaameter) Descriptor
deprecated
func (*ValidatProviderPaameter) Descriptor() ([]byte, []int)
Deprecated: Use ValidatProviderPaameter.ProtoReflect.Descriptor instead.
func (*ValidatProviderPaameter) ProtoMessage ¶
func (*ValidatProviderPaameter) ProtoMessage()
func (*ValidatProviderPaameter) ProtoReflect ¶
func (x *ValidatProviderPaameter) ProtoReflect() protoreflect.Message
func (*ValidatProviderPaameter) Reset ¶
func (x *ValidatProviderPaameter) Reset()
func (*ValidatProviderPaameter) String ¶
func (x *ValidatProviderPaameter) String() string
type ValidatProviderPaameter_Request ¶
type ValidatProviderPaameter_Request struct { Parameter *ProviderParameter `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"` // contains filtered or unexported fields }
func (*ValidatProviderPaameter_Request) Descriptor
deprecated
func (*ValidatProviderPaameter_Request) Descriptor() ([]byte, []int)
Deprecated: Use ValidatProviderPaameter_Request.ProtoReflect.Descriptor instead.
func (*ValidatProviderPaameter_Request) GetParameter ¶
func (x *ValidatProviderPaameter_Request) GetParameter() *ProviderParameter
func (*ValidatProviderPaameter_Request) ProtoMessage ¶
func (*ValidatProviderPaameter_Request) ProtoMessage()
func (*ValidatProviderPaameter_Request) ProtoReflect ¶
func (x *ValidatProviderPaameter_Request) ProtoReflect() protoreflect.Message
func (*ValidatProviderPaameter_Request) Reset ¶
func (x *ValidatProviderPaameter_Request) Reset()
func (*ValidatProviderPaameter_Request) String ¶
func (x *ValidatProviderPaameter_Request) String() string
type ValidatProviderPaameter_Response ¶
type ValidatProviderPaameter_Response struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ValidatProviderPaameter_Response) Descriptor
deprecated
func (*ValidatProviderPaameter_Response) Descriptor() ([]byte, []int)
Deprecated: Use ValidatProviderPaameter_Response.ProtoReflect.Descriptor instead.
func (*ValidatProviderPaameter_Response) GetMessage ¶
func (x *ValidatProviderPaameter_Response) GetMessage() string
func (*ValidatProviderPaameter_Response) GetOk ¶
func (x *ValidatProviderPaameter_Response) GetOk() bool
func (*ValidatProviderPaameter_Response) ProtoMessage ¶
func (*ValidatProviderPaameter_Response) ProtoMessage()
func (*ValidatProviderPaameter_Response) ProtoReflect ¶
func (x *ValidatProviderPaameter_Response) ProtoReflect() protoreflect.Message
func (*ValidatProviderPaameter_Response) Reset ¶
func (x *ValidatProviderPaameter_Response) Reset()
func (*ValidatProviderPaameter_Response) String ¶
func (x *ValidatProviderPaameter_Response) String() string