rpc

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

gRPC API for Horizon

To generate *.pb.go files

protoc -I rpc/protos rpc/protos/*.proto --go_out=rpc/protos_pb/ --go-grpc_out=rpc/protos_pb/ --go-grpc_opt=paths=source_relative --experimental_allow_proto3_optional

To generate gRPC documentation

protoc -I rpc/protos rpc/protos/*.proto --doc_out=./rpc/docs --doc_opt=html,index.html  --experimental_allow_proto3_optional
protoc -I rpc/protos rpc/protos/*.proto --doc_out=./rpc/docs --doc_opt=markdown,index.md  --experimental_allow_proto3_optional

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMicroserice

func NewMicroserice(matcher *horizon.MapMatcher, reflect bool) (*grpc.Server, error)

NewMicroserice creates a new gRPC server instance with the provided matcher and reflection option.

Types

type Microservice

type Microservice struct {
	protos_pb.ServiceServer
	// contains filtered or unexported fields
}

Microservice represents a gRPC server that implements the ServiceServer interface and wraps a map matcher engine

func (*Microservice) GetIsochrones

GetIsochrones Implement GetIsochrones() to match interface

func (*Microservice) GetSP

GetSP Implement GetSP() to match interface

func (*Microservice) RunMapMatch

RunMapMatch Implement RunMapMatch() to match interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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