...

Source file src/github.com/cybertec-postgresql/pgwatch/v3/api/pb/doc.go

Documentation: github.com/cybertec-postgresql/pgwatch/v3/api/pb

     1  // Package pb contains the protobuf definitions for pgwatch gRPC API.
     2  //
     3  // To generate the Go code from the protobuf definitions, you need to install:
     4  //   - protoc (Protocol Buffers compiler)
     5  //   - protoc-gen-go (Go plugin for protoc)
     6  //   - protoc-gen-go-grpc (Go gRPC plugin for protoc)
     7  //
     8  // On Windows:
     9  //
    10  //	go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
    11  //	go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
    12  //	winget install protobuf
    13  //
    14  // On Linux/macOS:
    15  //
    16  //	go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
    17  //	go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
    18  //	# Install protoc via package manager (apt, brew, etc.)
    19  //
    20  // Then run: go generate ./api/pb/
    21  package pb
    22  
    23  // Generate protobuf files
    24  //go:generate protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative pgwatch.proto
    25