tachibana_grpc_server

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 13 Imported by: 0

README

tachibana-grpc-server

立花証券APIを叩くためのgRPCサーバー

複数ツールから立花証券APIを利用するためにリクエストの受け口を一つにするために使う。

build

$ protoc --go_out=./tachibanapb --go-grpc_out=./tachibanapb tachibanapb/tachibana.proto

  • --go_out: protobufのmessageとかenumとかが吐かれる先
  • --go-grpc_out: protobufのserviceから作られるserverとかclientが吐かれる先

run

$ go run cmd/tachibana_grpc_server.go -port=8900

  • port: ポート。デフォルト8900

定義

protobufファイル

protobufドキュメント

注意

まだ開発中で全機能の実装はできていません。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.0.2

type Server interface {
	pb.TachibanaServiceServer
	StartScheduler()
	LoggingMiddleware() grpc.UnaryServerInterceptor
}

func NewServer

func NewServer() Server

Jump to

Keyboard shortcuts

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