protoc-gen-go-kafka

command module
v0.0.0-...-25a4969 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 7 Imported by: 0

README

Установка

go install github.com/vseinstrumentiru/protoc-gen-go-kafka@latest

Настройка

version: v1
plugins:
    # подключение плагина
  - name: go-kafka
    # путь для сохранения
    out: generate/
    # suffix=Out установка суффикса
    opt: paths=source_relative,suffix=Out

Message .proto

Сгенерируются хендлеры сообщений с указанным суффиксом

message RestsOut {
  string nomenclature = 1;
}

Генерация

#buf generate --template={файл конфигурации} {каталог с контрактами}
buf generate --template=buf.yaml api

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL