proto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_proto_prepalert_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use RunQuery.ProtoReflect.Descriptor instead.

func (*RunQuery) ProtoMessage

func (*RunQuery) ProtoMessage()

func (*RunQuery) ProtoReflect

func (x *RunQuery) ProtoReflect() protoreflect.Message

func (*RunQuery) Reset

func (x *RunQuery) Reset()

func (*RunQuery) String

func (x *RunQuery) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

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

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

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

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 (*ValidatProviderPaameter_Request) ProtoMessage

func (*ValidatProviderPaameter_Request) ProtoMessage()

func (*ValidatProviderPaameter_Request) ProtoReflect

func (*ValidatProviderPaameter_Request) Reset

func (*ValidatProviderPaameter_Request) 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 (*ValidatProviderPaameter_Response) ProtoMessage

func (*ValidatProviderPaameter_Response) ProtoMessage()

func (*ValidatProviderPaameter_Response) ProtoReflect

func (*ValidatProviderPaameter_Response) Reset

func (*ValidatProviderPaameter_Response) String

Jump to

Keyboard shortcuts

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