github.com/decred/dcrlnd@v0.7.6/lnrpc/metadata.go (about)

     1  package lnrpc
     2  
     3  import "regexp"
     4  
     5  var (
     6  	// LndClientStreamingURIs is a list of all lnd RPCs that use a request-
     7  	// streaming interface. Those request-streaming RPCs need to be handled
     8  	// differently in the WebsocketProxy because of how the request body
     9  	// parsing is implemented in the grpc-gateway library. Unfortunately
    10  	// there is no straightforward way of obtaining this information on
    11  	// runtime so we need to keep a hard coded list here.
    12  	LndClientStreamingURIs = []*regexp.Regexp{
    13  		regexp.MustCompile("^/v1/channels/acceptor$"),
    14  		regexp.MustCompile("^/v1/channels/transaction-stream$"),
    15  		regexp.MustCompile("^/v2/router/htlcinterceptor$"),
    16  	}
    17  )