Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 7a36dd8 according to the output
from Gofumpt and Prettier.

Details: #2742
  • Loading branch information
deepsource-autofix[bot] authored Nov 21, 2024
1 parent 7a36dd8 commit 9a4bb24
Show file tree
Hide file tree
Showing 10 changed files with 2,709 additions and 3,776 deletions.
2,682 changes: 947 additions & 1,735 deletions apis/docs/v1/docs.md

Large diffs are not rendered by default.

1,109 changes: 506 additions & 603 deletions apis/docs/v1/filter.md

Large diffs are not rendered by default.

25 changes: 12 additions & 13 deletions apis/docs/v1/flush.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,20 @@ A method to flush all indexed vector.

- Info.Index.Count

| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| stored | uint32 | | The stored index count. |
| uncommitted | uint32 | | The uncommitted index count. |
| indexing | bool | | The indexing index count. |
| saving | bool | | The saving index count. |
| field | type | label | desc. |
| :---------: | :----- | :---- | :--------------------------- |
| stored | uint32 | | The stored index count. |
| uncommitted | uint32 | | The uncommitted index count. |
| indexing | bool | | The indexing index count. |
| saving | bool | | The saving index count. |

### Status Code

| code | desc. |
| :--: | :---------------- |
| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |

| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |
347 changes: 170 additions & 177 deletions apis/docs/v1/index.md

Large diffs are not rendered by default.

223 changes: 102 additions & 121 deletions apis/docs/v1/insert.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,44 +57,39 @@ A method to add a new single vector.
- Insert.Request
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| vector | Object.Vector | | The vector to be inserted. |
| config | Insert.Config | | The configuration of the insert request. |
| field | type | label | desc. |
| :----: | :------------ | :---- | :--------------------------------------- |
| vector | Object.Vector | | The vector to be inserted. |
| config | Insert.Config | | The configuration of the insert request. |
- Object.Vector
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| id | string | | The vector ID. |
| vector | float | repeated | The vector. |
| timestamp | int64 | | timestamp represents when this vector inserted. |
| field | type | label | desc. |
| :-------: | :----- | :------- | :---------------------------------------------- |
| id | string | | The vector ID. |
| vector | float | repeated | The vector. |
| timestamp | int64 | | timestamp represents when this vector inserted. |
- Insert.Config
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. |
| filters | Filter.Config | | Filter configurations. |
| timestamp | int64 | | Insert timestamp. |
| field | type | label | desc. |
| :---------------------: | :------------ | :---- | :-------------------------------------------------- |
| skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. |
| filters | Filter.Config | | Filter configurations. |
| timestamp | int64 | | Insert timestamp. |
- Filter.Config
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| field | type | label | desc. |
| :-----: | :------------ | :------- | :----------------------------------------- |
| targets | Filter.Target | repeated | Represent the filter target configuration. |
- Filter.Target
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| host | string | | The target hostname. |
| port | uint32 | | The target port. |
| field | type | label | desc. |
| :---: | :----- | :---- | :------------------- |
| host | string | | The target hostname. |
| port | uint32 | | The target port. |
### Output
Expand All @@ -110,22 +105,22 @@ A method to add a new single vector.

- Object.Location

| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| name | string | | The name of the location. |
| uuid | string | | The UUID of the vector. |
| ips | string | repeated | The IP list. |
| field | type | label | desc. |
| :---: | :----- | :------- | :------------------------ |
| name | string | | The name of the location. |
| uuid | string | | The UUID of the vector. |
| ips | string | repeated | The IP list. |

### Status Code

| code | desc. |
| :--: | :---------------- |
| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |
| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |

## StreamInsert RPC

Expand Down Expand Up @@ -170,44 +165,39 @@ A method to add new multiple vectors by bidirectional streaming.
- Insert.Request
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| vector | Object.Vector | | The vector to be inserted. |
| config | Insert.Config | | The configuration of the insert request. |
| field | type | label | desc. |
| :----: | :------------ | :---- | :--------------------------------------- |
| vector | Object.Vector | | The vector to be inserted. |
| config | Insert.Config | | The configuration of the insert request. |
- Object.Vector
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| id | string | | The vector ID. |
| vector | float | repeated | The vector. |
| timestamp | int64 | | timestamp represents when this vector inserted. |
| field | type | label | desc. |
| :-------: | :----- | :------- | :---------------------------------------------- |
| id | string | | The vector ID. |
| vector | float | repeated | The vector. |
| timestamp | int64 | | timestamp represents when this vector inserted. |
- Insert.Config
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. |
| filters | Filter.Config | | Filter configurations. |
| timestamp | int64 | | Insert timestamp. |
| field | type | label | desc. |
| :---------------------: | :------------ | :---- | :-------------------------------------------------- |
| skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. |
| filters | Filter.Config | | Filter configurations. |
| timestamp | int64 | | Insert timestamp. |
- Filter.Config
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| field | type | label | desc. |
| :-----: | :------------ | :------- | :----------------------------------------- |
| targets | Filter.Target | repeated | Represent the filter target configuration. |
- Filter.Target
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| host | string | | The target hostname. |
| port | uint32 | | The target port. |
| field | type | label | desc. |
| :---: | :----- | :---- | :------------------- |
| host | string | | The target hostname. |
| port | uint32 | | The target port. |
### Output
Expand All @@ -229,30 +219,29 @@ A method to add new multiple vectors by bidirectional streaming.

- Object.StreamLocation

| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| location | Object.Location | | The vector location. |
| status | google.rpc.Status | | The RPC error status. |

| field | type | label | desc. |
| :------: | :---------------- | :---- | :-------------------- |
| location | Object.Location | | The vector location. |
| status | google.rpc.Status | | The RPC error status. |

- Object.Location

| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| name | string | | The name of the location. |
| uuid | string | | The UUID of the vector. |
| ips | string | repeated | The IP list. |
| field | type | label | desc. |
| :---: | :----- | :------- | :------------------------ |
| name | string | | The name of the location. |
| uuid | string | | The UUID of the vector. |
| ips | string | repeated | The IP list. |

### Status Code

| code | desc. |
| :--: | :---------------- |
| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |
| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |

## MultiInsert RPC

Expand Down Expand Up @@ -302,51 +291,45 @@ A method to add new multiple vectors in a single request.
- Insert.MultiRequest
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| field | type | label | desc. |
| :------: | :------------- | :------- | :----------------------------------------- |
| requests | Insert.Request | repeated | Represent multiple insert request content. |
- Insert.Request
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| vector | Object.Vector | | The vector to be inserted. |
| config | Insert.Config | | The configuration of the insert request. |
| field | type | label | desc. |
| :----: | :------------ | :---- | :--------------------------------------- |
| vector | Object.Vector | | The vector to be inserted. |
| config | Insert.Config | | The configuration of the insert request. |
- Object.Vector
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| id | string | | The vector ID. |
| vector | float | repeated | The vector. |
| timestamp | int64 | | timestamp represents when this vector inserted. |
| field | type | label | desc. |
| :-------: | :----- | :------- | :---------------------------------------------- |
| id | string | | The vector ID. |
| vector | float | repeated | The vector. |
| timestamp | int64 | | timestamp represents when this vector inserted. |
- Insert.Config
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. |
| filters | Filter.Config | | Filter configurations. |
| timestamp | int64 | | Insert timestamp. |
| field | type | label | desc. |
| :---------------------: | :------------ | :---- | :-------------------------------------------------- |
| skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. |
| filters | Filter.Config | | Filter configurations. |
| timestamp | int64 | | Insert timestamp. |
- Filter.Config
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| field | type | label | desc. |
| :-----: | :------------ | :------- | :----------------------------------------- |
| targets | Filter.Target | repeated | Represent the filter target configuration. |
- Filter.Target
| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| host | string | | The target hostname. |
| port | uint32 | | The target port. |
| field | type | label | desc. |
| :---: | :----- | :---- | :------------------- |
| host | string | | The target hostname. |
| port | uint32 | | The target port. |
### Output
Expand All @@ -367,27 +350,25 @@ A method to add new multiple vectors in a single request.

- Object.Locations

| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| locations | Object.Location | repeated | |

| field | type | label | desc. |
| :-------: | :-------------- | :------- | :---- |
| locations | Object.Location | repeated | |

- Object.Location

| field | type | label | desc. |
| :---: | :--- | :---- | :---- |
| name | string | | The name of the location. |
| uuid | string | | The UUID of the vector. |
| ips | string | repeated | The IP list. |
| field | type | label | desc. |
| :---: | :----- | :------- | :------------------------ |
| name | string | | The name of the location. |
| uuid | string | | The UUID of the vector. |
| ips | string | repeated | The IP list. |

### Status Code

| code | desc. |
| :--: | :---------------- |
| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |

| 0 | OK |
| 1 | CANCELLED |
| 3 | INVALID_ARGUMENT |
| 4 | DEADLINE_EXCEEDED |
| 5 | NOT_FOUND |
| 13 | INTERNAL |
Loading

0 comments on commit 9a4bb24

Please sign in to comment.