Documentation ¶
Index ¶
- func DefaultRoute() *route.Route
- func Main(ctx context.Context, filename string, port uint, logger *log.Logger) error
- func OriginCluster() *cluster.Cluster
- func RunServer(ctx context.Context, server serverv3.Server, port uint) error
- func ToCluster(clusterName string) *cluster.Cluster
- func ToEndPoint(clusterName string, localTunIP string, port int32) *endpoint.ClusterLoadAssignment
- func ToListener(listenerName string, routeName string, port int32, p corev1.Protocol) *listener.Listener
- func ToRoute(clusterName string, headers map[string]string) *route.Route
- func Watch(watcher *fsnotify.Watcher, filename string, notifyCh chan<- NotifyMessage) error
- type NotifyMessage
- type OperationType
- type Processor
- type Rule
- type Virtual
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRoute ¶
func OriginCluster ¶
func ToEndPoint ¶
func ToEndPoint(clusterName string, localTunIP string, port int32) *endpoint.ClusterLoadAssignment
func ToListener ¶
Types ¶
type NotifyMessage ¶
type NotifyMessage struct { Operation OperationType FilePath string }
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func (*Processor) ProcessFile ¶
func (p *Processor) ProcessFile(file NotifyMessage) error
Click to show internal directories.
Click to hide internal directories.