Documentation ¶
Overview ¶
Package trimpath provides a simple pair of chain elements, one for the server side, one for the client side. If trimpath.NewServer() is present in a chain, it will 'trim' the path down to ending with that server *unless* it is a 'passthrough' server and the client it encapsulates contains trimpath.NewClient()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient() networkservice.NetworkServiceClient
NewClient - returns a client chain element that will indicate that any server containing trimpath.NewServer() in the same chain should *not* trim the Connection.Path
func NewServer ¶
func NewServer() networkservice.NetworkServiceServer
NewServer - returns a trimpath server chain element that will truncate the Connection.Path at the server that contains it *unless* it is part of a passthrough that utilizes a client containing trimpath.NewClient()
Types ¶
This section is empty.