Skip to content
/ protos Public

Protocol buffers definition for TuiHub, import as a library rather than a directory

License

Notifications You must be signed in to change notification settings

tuihub/protos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98a241c · May 17, 2023
May 17, 2023
May 17, 2023
Aug 12, 2022
Apr 17, 2023
May 17, 2023
May 17, 2023
May 17, 2023
May 17, 2023
May 17, 2023
Nov 15, 2022
Nov 14, 2022
May 17, 2023
May 17, 2023
May 17, 2023
May 17, 2023
Aug 13, 2022
Feb 24, 2023
Mar 15, 2023
May 17, 2023
Sep 23, 2022
May 14, 2023
Aug 11, 2022
May 14, 2023
May 14, 2023
May 17, 2023
May 17, 2023
Feb 5, 2023
May 17, 2023
May 16, 2023

Repository files navigation

Usage

Document

Config files located at docs, But document content is generated by Action Bot
Check https://tuihub.github.io/Protos

Go

go get github.com/tuihub/protos

Js/Ts

npm install https://github.com/TuiHub/Protos
# Or
yarn add https://github.com/TuiHub/Protos

Rust

cargo add --git https://github.com/TuiHub/Protos

CSharp

  • Check Package page for pre-packed file
  • Or pack locally
git clone https://github.com/TuiHub/Protos && cd Protos
# How to install `nuget`: https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools
nuget pack TuiHub.Protos.nuspec

Dart

# pubspec.yaml
dependencies:
  ...
  # Add following lines
  tuihub_protos:
    git: https://github.com/TuiHub/Protos.git

Build Locally

Not Recommended. You can focus on proto files and just use buf lint to make sure proto files are correct. Action Bot will deal with the rest.

Install dependency

basic cli tool

compiler

language plugins

GO111MODULE=off go get github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
  • Go:
GO111MODULE=off go get github.com/gogo/protobuf/protoc-gen-gofast
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
export PATH="$PATH:$(go env GOPATH)/bin"
  • Js/Ts:
npm i

Build

make generate