Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App contains both server and client for Hop App
func (App) Hop ¶
func (a App) Hop(ctx context.Context, req *config.HopMessage) (*config.HopMessage, error)
Hop start a gRPC server for Hop App
func (App) MakeRequest ¶
func (a App) MakeRequest(remotes []string) (*config.HopMessage, error)
MakeRequest will create a config.HopMessage proto and send requests to defined remotes hosts in a chain. Each Server is a client and will forward the call to the next hop.
Click to show internal directories.
Click to hide internal directories.