@@ -124,7 +124,7 @@ func (api *API) Health(ctx context.Context) error {
124124
125125// AddSource -
126126func (api * API ) AddSource (ctx context.Context , hasura * config.Hasura , cfg config.Database ) error {
127- req := request {
127+ req := Request {
128128 Type : "pg_add_source" ,
129129 Args : map [string ]interface {}{
130130 "name" : hasura .Source ,
@@ -144,7 +144,7 @@ func (api *API) AddSource(ctx context.Context, hasura *config.Hasura, cfg config
144144
145145// ExportMetadata -
146146func (api * API ) ExportMetadata (ctx context.Context ) (Metadata , error ) {
147- req := VersionedRequest {
147+ req := versionedRequest {
148148 Type : "export_metadata" ,
149149 Version : 2 ,
150150 Args : map [string ]interface {}{},
@@ -156,7 +156,7 @@ func (api *API) ExportMetadata(ctx context.Context) (Metadata, error) {
156156
157157// ReplaceMetadata -
158158func (api * API ) ReplaceMetadata (ctx context.Context , data * Metadata ) error {
159- req := VersionedRequest {
159+ req := versionedRequest {
160160 Type : "replace_metadata" ,
161161 Version : 1 ,
162162 Args : data ,
@@ -173,7 +173,7 @@ func (api *API) ReplaceMetadata(ctx context.Context, data *Metadata) error {
173173
174174// TrackTable -
175175func (api * API ) TrackTable (ctx context.Context , name string , source string ) error {
176- req := request {
176+ req := Request {
177177 Type : "pg_track_table" ,
178178 Args : map [string ]string {
179179 "table" : name ,
@@ -190,7 +190,7 @@ func (api *API) CustomConfiguration(ctx context.Context, conf interface{}) error
190190
191191// CreateSelectPermissions - A select permission is used to restrict access to only the specified columns and rows.
192192func (api * API ) CreateSelectPermissions (ctx context.Context , table , source string , role string , perm Permission ) error {
193- req := request {
193+ req := Request {
194194 Type : "pg_create_select_permission" ,
195195 Args : map [string ]interface {}{
196196 "table" : table ,
@@ -204,7 +204,7 @@ func (api *API) CreateSelectPermissions(ctx context.Context, table, source strin
204204
205205// DropSelectPermissions -
206206func (api * API ) DropSelectPermissions (ctx context.Context , table , source string , role string ) error {
207- req := request {
207+ req := Request {
208208 Type : "pg_drop_select_permission" ,
209209 Args : map [string ]interface {}{
210210 "table" : table ,
@@ -217,7 +217,7 @@ func (api *API) DropSelectPermissions(ctx context.Context, table, source string,
217217
218218// CreateRestEndpoint -
219219func (api * API ) CreateRestEndpoint (ctx context.Context , name , url , queryName , collectionName string ) error {
220- req := request {
220+ req := Request {
221221 Type : "create_rest_endpoint" ,
222222 Args : map [string ]interface {}{
223223 "name" : name ,
0 commit comments