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 ( | |
| "database/sql" | |
| "encoding/csv" | |
| "fmt" | |
| "github.com/lib/pq" | |
| "io" | |
| "log" | |
| "os" |
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 auth | |
| import ( | |
| "context" | |
| "net/http" | |
| "strings" | |
| "google.golang.org/grpc/metadata" | |
| "github.com/andela/micro-api-gateway/pb/authorization" |
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
| public enum HttpHeader { | |
| AUTHORIZATION("Authorization"), | |
| AUTHENTICATION_TYPE_BASIC("Basic"), | |
| X_AUTH_TOKEN("X-AUTH-TOKEN"), | |
| WWW_Authenticate("WWW-Authenticate"), | |
| X_FORWARDED_FOR("X-Forwarded-For"), | |
| PROXY_CLIENT_IP("Proxy-Client-IP"), | |
| WL_PROXY_CLIENT_IP("WL-Proxy-Client-IP"), | |
| HTTP_CLIENT_IP("HTTP_CLIENT_IP"), | |
| HTTP_X_FORWARDED_FOR("HTTP_X_FORWARDED_FOR"); |
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 pipe_foundations.example; | |
| import pipe_foundations.Pipe; | |
| import pipe_foundations.SimpleFilter; | |
| public class ExampleFilter extends SimpleFilter<Integer, String> { | |
| public ExampleFilter(Pipe<Integer> input, Pipe<String> output) { | |
| super(input, output); | |
| } |