This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version_info: "0" | |
| resources: | |
| - '@type': type.googleapis.com/envoy.api.v2.Listener | |
| name: listener_0 | |
| address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: "80" | |
| filter_chains: | |
| - filters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version_info: "0" | |
| resources: | |
| - '@type': type.googleapis.com/envoy.api.v2.RouteConfiguration | |
| name: local_route # route_config_name on the lds.yaml | |
| virtual_hosts: | |
| - name: "EnvoyNetCore" | |
| domains: | |
| - "envoynetcore.com" | |
| routes: | |
| - match: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version_info: "0" | |
| resources: | |
| - '@type': type.googleapis.com/envoy.api.v2.Cluster | |
| name: "EnvoyNetCore" | |
| connect_timeout: 5s | |
| lb_policy: ROUND_ROBIN | |
| type: EDS | |
| eds_cluster_config: | |
| service_name: "EnvoyNetCore" | |
| eds_config: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version_info: "0" | |
| resources: | |
| - '@type': type.googleapis.com/envoy.api.v2.ClusterLoadAssignment | |
| cluster_name: "" | |
| endpoints: | |
| - lb_endpoints: | |
| - endpoint: | |
| address: | |
| socket_address: | |
| address: 127.0.0.1 # The address of the application. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func Scan(rows *sql.Rows, dest ...interface{}) error { | |
| proxy := make([]interface{}, len(dest)) | |
| for k, v := range dest { | |
| switch v.(type) { | |
| case *string: | |
| proxy[k] = &sql.NullString{String: "", Valid: true} | |
| case *bool: | |
| proxy[k] = &sql.NullBool{Bool: false, Valid: true} | |
| case *int: |
OlderNewer