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: |
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
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.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.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
node: | |
id: id_1 | |
cluster: main | |
admin: | |
access_log_path: /tmp/envoy_admin_access.log | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: "9901" | |
dynamic_resources: |
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
# Here is the cluster definition. You can declare more than one cluster on there. | |
# Cluster definitions points to endpoint definitions(eds.yaml). | |
# Also, at this level you can configure a circuit breaker for the cluster. | |
version_info: "0" | |
resources: | |
- '@type': type.googleapis.com/envoy.api.v2.Cluster | |
name: "EnvoyNetCore" | |
connect_timeout: 5s | |
lb_policy: ROUND_ROBIN |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"runtime" | |
"time" |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
# | |
# The fallowing circleci config yml and bash scripts demonstrate | |
# how to build .NET Core app without restoring packages for every build | |
# until you referance smothing diffrent to any project inside sln. | |
# | |
# If you are building docker container when building your application, | |
# use the docker layer caching insted of these scripts. https://circleci.com/docs/2.0/docker-layer-caching/ | |
# | |
version: 2 |
NewerOlder