natsrpc

package
v0.0.0-...-a6803ef Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 12 Imported by: 0

README

Protobuf plugin to generate NATS equivalent to gRPC services

go install github.com/animatedempl/toolbelt/natsrpc/cmd/protoc-gen-natsrpc@latest

inside your buf.gen.yaml file, add the following:

version: v1

plugins:
  - plugin: natsrpc
    out: ./gen
    opt:
      - paths=source_relative

then run buf generate to generate the NATS files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(gen *protogen.Plugin, file *protogen.File) error

Types

This section is empty.

Directories

Path Synopsis
cmd
protos

Jump to

Keyboard shortcuts

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