trimpath

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

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.

Jump to

Keyboard shortcuts

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