Documentation ¶
Overview ¶
Copyright 2020 Envoyproxy Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Envoyproxy Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 Envoyproxy Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func GenerateOriginalSnapshot() cache.Snapshot
- func GenerateSnapshot(tokenMap map[string]SingleRouteInfo) cache.Snapshot
- func GenerateTestSnapshot(num int) cache.Snapshot
- func InitFixedInfo() error
- func RunKServer(updateSignal *serverv3.UpdateSignal, cache cachev3.SnapshotCache)
- func RunServer(ctx context.Context, srv3 serverv3.Server, port uint)
- type FixedInfo
- type Logger
- type SingleRouteInfo
- type SnapshotFeed
Constants ¶
View Source
const ( UserClusterName = "user_proxy_cluster" RouteName = "local_route" ListenerName = "listener_0" ListenerPort = 10000 UserUpstreamHost = "192.168.65.2" UserUpstreamPort = 8081 TempHandlerClusterName = "temphandler_cluster" MiddlewareClusterName = "middleware_cluster" )
Variables ¶
View Source
var MiddlewareUpsteamHost string
View Source
var MiddlewareUpsteamPort uint32
View Source
var TempHandlerUpsteamHost string
View Source
var TempHandlerUpsteamPort uint32
Functions ¶
func GenerateOriginalSnapshot ¶
func GenerateOriginalSnapshot() cache.Snapshot
func GenerateSnapshot ¶
func GenerateSnapshot(tokenMap map[string]SingleRouteInfo) cache.Snapshot
func GenerateTestSnapshot ¶
func GenerateTestSnapshot(num int) cache.Snapshot
func InitFixedInfo ¶
func InitFixedInfo() error
func RunKServer ¶
func RunKServer(updateSignal *serverv3.UpdateSignal, cache cachev3.SnapshotCache)
Types ¶
type Logger ¶
type Logger struct {
Debug bool
}
An example of a logger that implements `pkg/log/Logger`. Logs to stdout. If Debug == false then Debugf() and Infof() won't output anything.
type SingleRouteInfo ¶
type SingleRouteInfo struct {
// contains filtered or unexported fields
}
type SnapshotFeed ¶
type SnapshotFeed struct {
// contains filtered or unexported fields
}
func GenerateOriginalSnapshotFeed ¶
func GenerateOriginalSnapshotFeed() SnapshotFeed
Click to show internal directories.
Click to hide internal directories.