Documentation
¶
Index ¶
- Variables
- func RegisterSchemaServiceServer(s grpc.ServiceRegistrar, srv SchemaServiceServer)
- type ColumnSchema
- func (*ColumnSchema) Descriptor() ([]byte, []int)deprecated
- func (x *ColumnSchema) GetColumnType() ColumnSchema_ColumnType
- func (x *ColumnSchema) GetId() int64
- func (*ColumnSchema) ProtoMessage()
- func (x *ColumnSchema) ProtoReflect() protoreflect.Message
- func (x *ColumnSchema) Reset()
- func (x *ColumnSchema) String() string
- type ColumnSchema_ColumnType
- func (ColumnSchema_ColumnType) Descriptor() protoreflect.EnumDescriptor
- func (x ColumnSchema_ColumnType) Enum() *ColumnSchema_ColumnType
- func (ColumnSchema_ColumnType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ColumnSchema_ColumnType) Number() protoreflect.EnumNumber
- func (x ColumnSchema_ColumnType) String() string
- func (ColumnSchema_ColumnType) Type() protoreflect.EnumType
- type GetSchemaRequest
- type GetSchemaResponse
- func (*GetSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSchemaResponse) GetSchema() *NamespaceSchema
- func (*GetSchemaResponse) ProtoMessage()
- func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *GetSchemaResponse) Reset()
- func (x *GetSchemaResponse) String() string
- type Namespace
- func (*Namespace) Descriptor() ([]byte, []int)deprecated
- func (x *Namespace) GetId() int64
- func (x *Namespace) GetName() string
- func (x *Namespace) GetRetentionPeriodNs() int64
- func (*Namespace) ProtoMessage()
- func (x *Namespace) ProtoReflect() protoreflect.Message
- func (x *Namespace) Reset()
- func (x *Namespace) String() string
- type NamespaceSchema
- func (*NamespaceSchema) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceSchema) GetId() int64
- func (x *NamespaceSchema) GetQueryPoolId() int64
- func (x *NamespaceSchema) GetTables() map[string]*TableSchema
- func (x *NamespaceSchema) GetTopicId() int64
- func (*NamespaceSchema) ProtoMessage()
- func (x *NamespaceSchema) ProtoReflect() protoreflect.Message
- func (x *NamespaceSchema) Reset()
- func (x *NamespaceSchema) String() string
- type SchemaServiceClient
- type SchemaServiceServer
- type TableSchema
- func (*TableSchema) Descriptor() ([]byte, []int)deprecated
- func (x *TableSchema) GetColumns() map[string]*ColumnSchema
- func (x *TableSchema) GetId() int64
- func (*TableSchema) ProtoMessage()
- func (x *TableSchema) ProtoReflect() protoreflect.Message
- func (x *TableSchema) Reset()
- func (x *TableSchema) String() string
- type UnimplementedSchemaServiceServer
- type UnsafeSchemaServiceServer
- type UpdateNamespaceRetentionRequest
- func (*UpdateNamespaceRetentionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNamespaceRetentionRequest) GetName() string
- func (x *UpdateNamespaceRetentionRequest) GetRetentionHours() int64
- func (*UpdateNamespaceRetentionRequest) ProtoMessage()
- func (x *UpdateNamespaceRetentionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNamespaceRetentionRequest) Reset()
- func (x *UpdateNamespaceRetentionRequest) String() string
- type UpdateNamespaceRetentionResponse
- func (*UpdateNamespaceRetentionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNamespaceRetentionResponse) GetNamespace() *Namespace
- func (*UpdateNamespaceRetentionResponse) ProtoMessage()
- func (x *UpdateNamespaceRetentionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateNamespaceRetentionResponse) Reset()
- func (x *UpdateNamespaceRetentionResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ColumnSchema_ColumnType_name = map[int32]string{ 0: "COLUMN_TYPE_UNSPECIFIED", 1: "COLUMN_TYPE_I64", 2: "COLUMN_TYPE_U64", 3: "COLUMN_TYPE_F64", 4: "COLUMN_TYPE_BOOL", 5: "COLUMN_TYPE_STRING", 6: "COLUMN_TYPE_TIME", 7: "COLUMN_TYPE_TAG", } ColumnSchema_ColumnType_value = map[string]int32{ "COLUMN_TYPE_UNSPECIFIED": 0, "COLUMN_TYPE_I64": 1, "COLUMN_TYPE_U64": 2, "COLUMN_TYPE_F64": 3, "COLUMN_TYPE_BOOL": 4, "COLUMN_TYPE_STRING": 5, "COLUMN_TYPE_TIME": 6, "COLUMN_TYPE_TAG": 7, } )
Enum value maps for ColumnSchema_ColumnType.
var File_influxdata_iox_schema_v1_service_proto protoreflect.FileDescriptor
var SchemaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "influxdata.iox.schema.v1.SchemaService", HandlerType: (*SchemaServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSchema", Handler: _SchemaService_GetSchema_Handler, }, { MethodName: "UpdateNamespaceRetention", Handler: _SchemaService_UpdateNamespaceRetention_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "influxdata/iox/schema/v1/service.proto", }
SchemaService_ServiceDesc is the grpc.ServiceDesc for SchemaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSchemaServiceServer ¶
func RegisterSchemaServiceServer(s grpc.ServiceRegistrar, srv SchemaServiceServer)
Types ¶
type ColumnSchema ¶
type ColumnSchema struct {
// Column ID
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Column type
ColumnType ColumnSchema_ColumnType `` /* 146-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ColumnSchema) Descriptor
deprecated
func (*ColumnSchema) Descriptor() ([]byte, []int)
Deprecated: Use ColumnSchema.ProtoReflect.Descriptor instead.
func (*ColumnSchema) GetColumnType ¶
func (x *ColumnSchema) GetColumnType() ColumnSchema_ColumnType
func (*ColumnSchema) GetId ¶
func (x *ColumnSchema) GetId() int64
func (*ColumnSchema) ProtoMessage ¶
func (*ColumnSchema) ProtoMessage()
func (*ColumnSchema) ProtoReflect ¶
func (x *ColumnSchema) ProtoReflect() protoreflect.Message
func (*ColumnSchema) Reset ¶
func (x *ColumnSchema) Reset()
func (*ColumnSchema) String ¶
func (x *ColumnSchema) String() string
type ColumnSchema_ColumnType ¶
type ColumnSchema_ColumnType int32
Column data type.
const ( // An unknown column data type. ColumnSchema_COLUMN_TYPE_UNSPECIFIED ColumnSchema_ColumnType = 0 ColumnSchema_COLUMN_TYPE_I64 ColumnSchema_ColumnType = 1 ColumnSchema_COLUMN_TYPE_U64 ColumnSchema_ColumnType = 2 ColumnSchema_COLUMN_TYPE_F64 ColumnSchema_ColumnType = 3 ColumnSchema_COLUMN_TYPE_BOOL ColumnSchema_ColumnType = 4 ColumnSchema_COLUMN_TYPE_STRING ColumnSchema_ColumnType = 5 ColumnSchema_COLUMN_TYPE_TIME ColumnSchema_ColumnType = 6 ColumnSchema_COLUMN_TYPE_TAG ColumnSchema_ColumnType = 7 )
func (ColumnSchema_ColumnType) Descriptor ¶
func (ColumnSchema_ColumnType) Descriptor() protoreflect.EnumDescriptor
func (ColumnSchema_ColumnType) Enum ¶
func (x ColumnSchema_ColumnType) Enum() *ColumnSchema_ColumnType
func (ColumnSchema_ColumnType) EnumDescriptor
deprecated
func (ColumnSchema_ColumnType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ColumnSchema_ColumnType.Descriptor instead.
func (ColumnSchema_ColumnType) Number ¶
func (x ColumnSchema_ColumnType) Number() protoreflect.EnumNumber
func (ColumnSchema_ColumnType) String ¶
func (x ColumnSchema_ColumnType) String() string
func (ColumnSchema_ColumnType) Type ¶
func (ColumnSchema_ColumnType) Type() protoreflect.EnumType
type GetSchemaRequest ¶
type GetSchemaRequest struct {
// The namespace for which to fetch the schema
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
func (*GetSchemaRequest) Descriptor
deprecated
func (*GetSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSchemaRequest.ProtoReflect.Descriptor instead.
func (*GetSchemaRequest) GetNamespace ¶
func (x *GetSchemaRequest) GetNamespace() string
func (*GetSchemaRequest) ProtoMessage ¶
func (*GetSchemaRequest) ProtoMessage()
func (*GetSchemaRequest) ProtoReflect ¶
func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message
func (*GetSchemaRequest) Reset ¶
func (x *GetSchemaRequest) Reset()
func (*GetSchemaRequest) String ¶
func (x *GetSchemaRequest) String() string
type GetSchemaResponse ¶
type GetSchemaResponse struct {
Schema *NamespaceSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
// contains filtered or unexported fields
}
func (*GetSchemaResponse) Descriptor
deprecated
func (*GetSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSchemaResponse.ProtoReflect.Descriptor instead.
func (*GetSchemaResponse) GetSchema ¶
func (x *GetSchemaResponse) GetSchema() *NamespaceSchema
func (*GetSchemaResponse) ProtoMessage ¶
func (*GetSchemaResponse) ProtoMessage()
func (*GetSchemaResponse) ProtoReflect ¶
func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message
func (*GetSchemaResponse) Reset ¶
func (x *GetSchemaResponse) Reset()
func (*GetSchemaResponse) String ¶
func (x *GetSchemaResponse) String() string
type Namespace ¶
type Namespace struct {
// Namespace ID
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the Namespace
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Retention period ns
RetentionPeriodNs *int64 `protobuf:"varint,3,opt,name=retention_period_ns,json=retentionPeriodNs,proto3,oneof" json:"retention_period_ns,omitempty"`
// contains filtered or unexported fields
}
func (*Namespace) Descriptor
deprecated
func (*Namespace) GetRetentionPeriodNs ¶
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
func (*Namespace) ProtoReflect ¶
func (x *Namespace) ProtoReflect() protoreflect.Message
type NamespaceSchema ¶
type NamespaceSchema struct {
// Namespace ID
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Topic ID
TopicId int64 `protobuf:"varint,5,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"`
// Query Pool ID
QueryPoolId int64 `protobuf:"varint,3,opt,name=query_pool_id,json=queryPoolId,proto3" json:"query_pool_id,omitempty"`
// Map of Table Name -> Table Schema
Tables map[string]*TableSchema `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*NamespaceSchema) Descriptor
deprecated
func (*NamespaceSchema) Descriptor() ([]byte, []int)
Deprecated: Use NamespaceSchema.ProtoReflect.Descriptor instead.
func (*NamespaceSchema) GetId ¶
func (x *NamespaceSchema) GetId() int64
func (*NamespaceSchema) GetQueryPoolId ¶
func (x *NamespaceSchema) GetQueryPoolId() int64
func (*NamespaceSchema) GetTables ¶
func (x *NamespaceSchema) GetTables() map[string]*TableSchema
func (*NamespaceSchema) GetTopicId ¶
func (x *NamespaceSchema) GetTopicId() int64
func (*NamespaceSchema) ProtoMessage ¶
func (*NamespaceSchema) ProtoMessage()
func (*NamespaceSchema) ProtoReflect ¶
func (x *NamespaceSchema) ProtoReflect() protoreflect.Message
func (*NamespaceSchema) Reset ¶
func (x *NamespaceSchema) Reset()
func (*NamespaceSchema) String ¶
func (x *NamespaceSchema) String() string
type SchemaServiceClient ¶
type SchemaServiceClient interface {
// Get the schema for a namespace
GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*GetSchemaResponse, error)
// update retention period
UpdateNamespaceRetention(ctx context.Context, in *UpdateNamespaceRetentionRequest, opts ...grpc.CallOption) (*UpdateNamespaceRetentionResponse, error)
}
SchemaServiceClient is the client API for SchemaService 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 NewSchemaServiceClient ¶
func NewSchemaServiceClient(cc grpc.ClientConnInterface) SchemaServiceClient
type SchemaServiceServer ¶
type SchemaServiceServer interface {
// Get the schema for a namespace
GetSchema(context.Context, *GetSchemaRequest) (*GetSchemaResponse, error)
// update retention period
UpdateNamespaceRetention(context.Context, *UpdateNamespaceRetentionRequest) (*UpdateNamespaceRetentionResponse, error)
// contains filtered or unexported methods
}
SchemaServiceServer is the server API for SchemaService service. All implementations must embed UnimplementedSchemaServiceServer for forward compatibility
type TableSchema ¶
type TableSchema struct {
// Table ID
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Map of Column Name -> Table Schema
Columns map[string]*ColumnSchema `` /* 155-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TableSchema) Descriptor
deprecated
func (*TableSchema) Descriptor() ([]byte, []int)
Deprecated: Use TableSchema.ProtoReflect.Descriptor instead.
func (*TableSchema) GetColumns ¶
func (x *TableSchema) GetColumns() map[string]*ColumnSchema
func (*TableSchema) GetId ¶
func (x *TableSchema) GetId() int64
func (*TableSchema) ProtoMessage ¶
func (*TableSchema) ProtoMessage()
func (*TableSchema) ProtoReflect ¶
func (x *TableSchema) ProtoReflect() protoreflect.Message
func (*TableSchema) Reset ¶
func (x *TableSchema) Reset()
func (*TableSchema) String ¶
func (x *TableSchema) String() string
type UnimplementedSchemaServiceServer ¶
type UnimplementedSchemaServiceServer struct {
}
UnimplementedSchemaServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSchemaServiceServer) GetSchema ¶
func (UnimplementedSchemaServiceServer) GetSchema(context.Context, *GetSchemaRequest) (*GetSchemaResponse, error)
func (UnimplementedSchemaServiceServer) UpdateNamespaceRetention ¶
func (UnimplementedSchemaServiceServer) UpdateNamespaceRetention(context.Context, *UpdateNamespaceRetentionRequest) (*UpdateNamespaceRetentionResponse, error)
type UnsafeSchemaServiceServer ¶
type UnsafeSchemaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSchemaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SchemaServiceServer will result in compilation errors.
type UpdateNamespaceRetentionRequest ¶
type UpdateNamespaceRetentionRequest struct {
// Name of the namespace to be set
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Number of hours of the retention period
RetentionHours int64 `protobuf:"varint,2,opt,name=retention_hours,json=retentionHours,proto3" json:"retention_hours,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateNamespaceRetentionRequest) Descriptor
deprecated
func (*UpdateNamespaceRetentionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceRetentionRequest.ProtoReflect.Descriptor instead.
func (*UpdateNamespaceRetentionRequest) GetName ¶
func (x *UpdateNamespaceRetentionRequest) GetName() string
func (*UpdateNamespaceRetentionRequest) GetRetentionHours ¶
func (x *UpdateNamespaceRetentionRequest) GetRetentionHours() int64
func (*UpdateNamespaceRetentionRequest) ProtoMessage ¶
func (*UpdateNamespaceRetentionRequest) ProtoMessage()
func (*UpdateNamespaceRetentionRequest) ProtoReflect ¶
func (x *UpdateNamespaceRetentionRequest) ProtoReflect() protoreflect.Message
func (*UpdateNamespaceRetentionRequest) Reset ¶
func (x *UpdateNamespaceRetentionRequest) Reset()
func (*UpdateNamespaceRetentionRequest) String ¶
func (x *UpdateNamespaceRetentionRequest) String() string
type UpdateNamespaceRetentionResponse ¶
type UpdateNamespaceRetentionResponse struct {
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateNamespaceRetentionResponse) Descriptor
deprecated
func (*UpdateNamespaceRetentionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceRetentionResponse.ProtoReflect.Descriptor instead.
func (*UpdateNamespaceRetentionResponse) GetNamespace ¶
func (x *UpdateNamespaceRetentionResponse) GetNamespace() *Namespace
func (*UpdateNamespaceRetentionResponse) ProtoMessage ¶
func (*UpdateNamespaceRetentionResponse) ProtoMessage()
func (*UpdateNamespaceRetentionResponse) ProtoReflect ¶
func (x *UpdateNamespaceRetentionResponse) ProtoReflect() protoreflect.Message
func (*UpdateNamespaceRetentionResponse) Reset ¶
func (x *UpdateNamespaceRetentionResponse) Reset()
func (*UpdateNamespaceRetentionResponse) String ¶
func (x *UpdateNamespaceRetentionResponse) String() string