Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientFactory interface { GetLocalClient() interface{} MakeRemoteClient(client thrift.TChanClient) interface{} }
A ClientFactory is able to provide an implementation of a TChan[Service] interface that can dispatch calls to the actual implementation. This could be both a local or a remote implementation of the interface based on the dest provided
type Router ¶
A Router creates instances of TChannel Thrift Clients via the help of the ClientFactory
func New ¶
func New(rp ringpop.Interface, f ClientFactory, ch *tchannel.Channel) Router
New creates an instance that validates the Router interface. A Router will be used to get implementations of service interfaces that implement a distributed microservice.
Click to show internal directories.
Click to hide internal directories.