0.7.29 • Published 4 days ago

esb-protobufs v0.7.29

Weekly downloads
4
License
ISC
Repository
github
Last release
4 days ago

esb-protobufs

Генерация файлов для Go

protoc плагины:

  • protoc-gen-go
  • protoc-gen-grpc-gateway
  • protoc-gen-swagger
  • protoc-gen-openapiv2 (для генерации единого сваггера)

Генерация клиента и сервера с пакетом annotations.proto:

protoc -I . -I $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=. --go-grpc_out=require_unimplemented_servers=false:. proto/notifications/slack.proto

Генерация прото:

protoc -I . --go_out=. --go-grpc_out=require_unimplemented_servers=false:. proto/notifications/slack.proto

Генерация прокси:

protoc -I . --grpc-gateway_out=. -I $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_opt logtostderr=true --grpc-gateway_opt generate_unbound_methods=true proto/notifications/slack.proto

Генерация даты для свагера:

protoc -I . --grpc-gateway_out=. -I $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --swagger_out=logtostderr=true:. proto/notifications/slack.proto

Генерация единого сваггера для нескольких прото файлов (на примере логистики):

protoc -I ./proto/logistics -I $GOPATH/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.16.0/third_party/googleapis --openapiv2_out=allow_merge=true,merge_file_name=logistics.json:./swagger/logistics proto/logistics/*.proto

Импорт протобафов

-I ./proto/logistics - указывает корневой путь до протобафов, что позволяет внутри импортировать их просто как import "name.proto", чтобы импорт из одного протобафа в другой работал корректно. При работе вне пакета достаточно -I ./proto и -I .

Генерация файлов для Typescript

`sh ./build-ts.sh`

Обновление версии

Перед тем как зарелизить новую версию, необходимо поднять версию пакета в package.json, чтобы это обновление автоматически подтянулось в NPM пакет

Генерация c помощью Makefile

make go - скачает последний образ protobuf-generator из cr-yandex и сгенериует (изменит) протофайлы в дирекории go. Важно: в переменной PWD нужно указать абсолютный путь до клонированного репозитория esb-protobufs

0.7.29

4 days ago

0.7.28

23 days ago

0.7.27

23 days ago

0.7.26

1 month ago

0.7.24

1 month ago

0.7.23

1 month ago

0.7.22

1 month ago

0.7.21

2 months ago

0.7.20

2 months ago

0.7.19

2 months ago

0.7.18

2 months ago

0.7.17

2 months ago

0.7.16

2 months ago

0.7.13

2 months ago

0.7.12

2 months ago

0.7.15

2 months ago

0.7.14

2 months ago

0.7.11

3 months ago

0.7.10

3 months ago

0.7.9

3 months ago

0.7.6

3 months ago

0.7.5

3 months ago

0.7.8

3 months ago

0.7.7

3 months ago

0.7.2

3 months ago

0.7.4

3 months ago

0.7.1

3 months ago

0.6.99

4 months ago

0.6.98

4 months ago

0.6.97

4 months ago

0.6.96

4 months ago

0.6.95

5 months ago

0.6.94

5 months ago

0.6.92

5 months ago

0.6.91

5 months ago

0.6.90

5 months ago

0.6.89

6 months ago

0.6.87

6 months ago

0.6.86

7 months ago

0.6.88

6 months ago

0.6.83

7 months ago

0.6.82

7 months ago

0.6.85

7 months ago

0.6.84

7 months ago

0.6.65

8 months ago

0.6.64

9 months ago

0.6.66

8 months ago

0.6.61

9 months ago

0.6.63

9 months ago

0.6.62

9 months ago

0.6.81

8 months ago

0.6.80

8 months ago

0.6.78

8 months ago

0.6.77

8 months ago

0.6.79

8 months ago

0.6.60

9 months ago

0.6.58

9 months ago

0.6.59

9 months ago

0.6.54

10 months ago

0.6.53

10 months ago

0.6.56

10 months ago

0.6.55

10 months ago

0.6.50

11 months ago

0.6.52

11 months ago

0.6.51

11 months ago

0.6.57

10 months ago

0.6.47

11 months ago

0.6.46

11 months ago

0.6.49

11 months ago

0.6.48

11 months ago

0.6.43

12 months ago

0.6.42

12 months ago

0.6.45

12 months ago

0.6.44

12 months ago

0.6.41

1 year ago

0.6.40

1 year ago

0.6.39

1 year ago

0.6.38

1 year ago

0.6.36

1 year ago

0.6.37

1 year ago

0.6.32

1 year ago

0.6.31

1 year ago

0.6.34

1 year ago

0.6.33

1 year ago

0.6.35

1 year ago

0.6.21

2 years ago

0.6.20

2 years ago

0.6.23

2 years ago

0.6.22

2 years ago

0.6.29

1 year ago

0.6.28

2 years ago

0.6.25

2 years ago

0.6.24

2 years ago

0.6.27

2 years ago

0.6.26

2 years ago

0.6.17

2 years ago

0.6.19

2 years ago

0.6.14

2 years ago

0.6.13

2 years ago

0.6.16

2 years ago

0.6.15

2 years ago

0.6.30

1 year ago

0.6.7

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.6.10

2 years ago

0.6.12

2 years ago

0.6.11

2 years ago

0.6.6

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.5.98

2 years ago

0.5.99

2 years ago

0.5.96

2 years ago

0.5.97

2 years ago

0.5.94

2 years ago

0.4.9

2 years ago

0.5.95

2 years ago

0.4.8

2 years ago

0.5.93

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.2

2 years ago

0.3.97

2 years ago

0.3.96

2 years ago

0.3.95

2 years ago

0.3.94

2 years ago

0.3.93

2 years ago

0.3.92

2 years ago

0.3.91

2 years ago

0.3.90

2 years ago

0.3.99

2 years ago

0.3.98

2 years ago

0.3.89

2 years ago

0.3.88

2 years ago

0.3.87

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.3.86

2 years ago

0.3.85

2 years ago

0.3.84

2 years ago

0.3.83

2 years ago

0.3.82

2 years ago

0.3.81

2 years ago

0.3.80

2 years ago

0.3.75

2 years ago

0.3.79

2 years ago

0.3.78

2 years ago

0.3.77

2 years ago

0.3.76

2 years ago

0.3.74

2 years ago

0.3.73

2 years ago

0.3.72

2 years ago

0.3.71

2 years ago

0.3.70

2 years ago

0.3.64

2 years ago

0.3.63

2 years ago

0.3.62

2 years ago

0.3.61

2 years ago

0.3.60

2 years ago

0.3.69

2 years ago

0.3.68

2 years ago

0.3.66

2 years ago

0.3.65

2 years ago

0.3.53

2 years ago

0.3.52

2 years ago

0.3.51

2 years ago

0.3.50

2 years ago

0.3.59

2 years ago

0.3.58

2 years ago

0.3.57

2 years ago

0.3.56

2 years ago

0.3.55

2 years ago

0.3.54

2 years ago

0.3.42

2 years ago

0.3.40

2 years ago

0.3.49

2 years ago

0.3.48

2 years ago

0.3.47

2 years ago

0.3.46

2 years ago

0.3.45

2 years ago

0.3.44

2 years ago

0.3.43

2 years ago

0.3.31

2 years ago

0.3.30

2 years ago

0.3.39

2 years ago

0.3.38

2 years ago

0.3.37

2 years ago

0.3.36

2 years ago

0.3.35

2 years ago

0.3.34

2 years ago

0.3.33

2 years ago

0.3.32

2 years ago

0.3.29

2 years ago

0.3.20

2 years ago

0.3.28

2 years ago

0.3.27

2 years ago

0.3.26

2 years ago

0.3.25

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.19

2 years ago

0.3.18

2 years ago

0.3.17

2 years ago

0.3.16

2 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.1

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.2.89

3 years ago

0.2.88

3 years ago

0.2.87

3 years ago

0.2.85

3 years ago

0.2.84

3 years ago

0.2.86

3 years ago

0.2.83

3 years ago

0.2.82

3 years ago

0.2.81

3 years ago

0.2.80

3 years ago

0.2.79

3 years ago

0.2.78

3 years ago

0.2.77

3 years ago

0.2.76

3 years ago

0.2.74

3 years ago

0.2.75

3 years ago

0.2.73

3 years ago

0.2.72

3 years ago

0.2.71

3 years ago

0.2.69

3 years ago

0.2.70

3 years ago

0.2.68

3 years ago

0.2.67

3 years ago

0.2.66

3 years ago

0.2.65

3 years ago

0.2.64

3 years ago

0.2.63

3 years ago

0.2.62

3 years ago

0.2.61

3 years ago

0.2.60

3 years ago

0.2.59

3 years ago

0.2.58

3 years ago

0.2.57

3 years ago

0.2.56

3 years ago

0.2.55

3 years ago

0.2.54

3 years ago

0.2.53

3 years ago

0.2.52

3 years ago

0.2.51

3 years ago

0.2.50

3 years ago

0.2.49

3 years ago

0.2.48

3 years ago

0.2.47

4 years ago

0.2.46

4 years ago

0.2.45

4 years ago

0.2.44

4 years ago

0.2.43

4 years ago

0.2.42

4 years ago

0.2.41

4 years ago

0.2.40

4 years ago

0.2.39

4 years ago

0.2.38

4 years ago

0.2.37

4 years ago

0.2.36

4 years ago

0.2.35

4 years ago

0.2.34

4 years ago

0.2.33

4 years ago

0.2.32

4 years ago

0.2.31

4 years ago

0.2.30

4 years ago

0.2.29

4 years ago

0.2.28

4 years ago

0.2.27

4 years ago

0.2.26

4 years ago

0.2.25

4 years ago

0.2.24

4 years ago

0.2.23

4 years ago

0.2.22

4 years ago

0.2.21

4 years ago

0.2.18

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago