github.com/clly/consul@v1.4.5/agent/xds/routes.go (about)

     1  package xds
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/gogo/protobuf/proto"
     7  
     8  	"github.com/hashicorp/consul/agent/proxycfg"
     9  )
    10  
    11  // routesFromSnapshot returns the xDS API representation of the "routes"
    12  // in the snapshot.
    13  func routesFromSnapshot(cfgSnap *proxycfg.ConfigSnapshot, token string) ([]proto.Message, error) {
    14  	if cfgSnap == nil {
    15  		return nil, errors.New("nil config given")
    16  	}
    17  	// We don't support routes yet but probably will later
    18  	return nil, nil
    19  }