Skip to content

Commit

Permalink
Place the compiled NeoFS protocol files in the repository
Browse files Browse the repository at this point in the history
Previously, they were in the https://github.com/nspcc-dev/neofs-api-go
repository. Since it's about to be deprecated, generated files are moved
here. They are exported (not in `internal` dir) for servers implemented
by external modules like https://github.com/nspcc-dev/neofs-node.

This also adds codegen script which re-compiles source files and adapts
imports to the SDK package tree.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Jul 4, 2024
1 parent 75bcf1d commit 4a0be23
Show file tree
Hide file tree
Showing 29 changed files with 19,988 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,13 @@ Wrapper over `zap.Logger` which is used across NeoFS codebase.

### util
Utilities for working with signature-related code.

## Development

### NeoFS API protocol codegen
Go code for NeoFS protocol messages, client and server is in `api` directory.
To compile source files from https://github.com/nspcc-dev/neofs-api repository,
clone it first and then exec:
```
$ ./scripts/genapi.sh /path/to/neofs-api
```
449 changes: 449 additions & 0 deletions api/accounting/service.pb.go

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions api/accounting/service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 168 additions & 0 deletions api/accounting/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a0be23

Please sign in to comment.