This file contains 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
public class MobileServiceRequestHelper<T> where T : class | |
{ | |
private string tableEndpoint; | |
private string applicationKey; | |
private HttpClient client; | |
public MobileServiceRequestHelper(string tableName) | |
{ | |
tableEndpoint = ConfigurationManager.AppSettings["TableEndpoint"] + tableName ; | |
applicationKey = ConfigurationManager.AppSettings["X-ZUMO-APPLICATION"]; | |
client = new HttpClient(); |
This file contains 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 ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
) | |
func helloHandler(res http.ResponseWriter, req *http.Request) { |
This file contains 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
# golang image where workspace (GOPATH) configured at /go. | |
FROM golang:latest | |
# Copy the local package files to the container’s workspace. | |
ADD . /go/src/github.com/shijuvar/golang-docker | |
# Build the golang-docker command inside the container. | |
RUN go install github.com/shijuvar/golang-docker | |
# Run the golang-docker command when the container starts. |
This file contains 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
type Handler interface { | |
ServeHTTP(ResponseWriter, *Request) | |
} |
This file contains 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 ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
type indexHandler struct { | |
} |
This file contains 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 ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func indexHandler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Welcome to Go Web Development") |
This file contains 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 ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func indexHandler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Welcome to Go Web Development") |
This file contains 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
syntax = "proto3"; | |
package customer; | |
// The Customer service definition. | |
service Customer { | |
// Get all Customers with filter - A server-to-client streaming RPC. | |
rpc GetCustomers(CustomerFilter) returns (stream CustomerRequest) {} | |
// Create a new Customer - A simple RPC | |
rpc CreateCustomer (CustomerRequest) returns (CustomerResponse) {} |
This file contains 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
// Code generated by protoc-gen-go. | |
// source: customer.proto | |
// DO NOT EDIT! | |
/* | |
Package customer is a generated protocol buffer package. | |
It is generated from these files: | |
customer.proto |
This file contains 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 ( | |
"log" | |
"net" | |
"strings" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" |
OlderNewer