-
Notifications
You must be signed in to change notification settings - Fork 0
/
table_handler.go
55 lines (48 loc) · 1.44 KB
/
table_handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright 2022-2023 Thorsten A. Knieling
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
package server
import (
"context"
ht "github.com/ogen-go/ogen/http"
"github.com/tknie/clu/api"
)
// GetFields implements getFields operation.
//
// Retrieves all fields of an file.
//
// GET /rest/tables/{table}/fields
func (Handler) GetFields(ctx context.Context, params api.GetFieldsParams) (r api.GetFieldsRes, _ error) {
return r, ht.ErrNotImplemented
}
// GetMapMetadata implements getMapMetadata operation.
//
// Retrieves metadata of a Map definition.
//
// GET /rest/metadata/view/{table}
func (Handler) GetMapMetadata(ctx context.Context, params api.GetMapMetadataParams) (r api.GetMapMetadataRes, _ error) {
return r, ht.ErrNotImplemented
}
// InsertMapFileRecords implements insertMapFileRecords operation.
//
// Store send records into Map definition.
//
// POST /rest/view
func (Handler) InsertMapFileRecords(ctx context.Context, req api.OptInsertMapFileRecordsReq) (r api.InsertMapFileRecordsRes, _ error) {
return r, ht.ErrNotImplemented
}
// ListTables implements listTables operation.
//
// Retrieves all tables of databases.
//
// GET /rest/tables
func (Handler) ListTables(ctx context.Context) (r api.ListTablesRes, _ error) {
return r, ht.ErrNotImplemented
}