Skip to content

Instantly share code, notes, and snippets.

View bwplotka's full-sized avatar
💪
Coding.. Building.. Deploying!

Bartlomiej Plotka bwplotka

💪
Coding.. Building.. Deploying!
View GitHub Profile
@bwplotka
bwplotka / ttest.go
Created January 7, 2019 14:38
Table test initial boilerplate
for _, tcase := range []struct{
}{
{
},
}{
if ok := t.Run("", func(t *testing.T) {
}); !ok {
return
@bwplotka
bwplotka / backend.proto
Created January 24, 2018 11:23
Kedge's backend proto that specifies "how" to proxy to the backend.
/// Backend data will be used to set up a pool of HTTP connection to the specified endpoint that will be kept open.
message Backend {
/// name is the string identifying the backend in all other configs.
string name = 1;
/// balancer decides which load balancing policy to use.
Balancer balancer = 2;
/// security controls the TLS connection details for the backend (HTTPS). If not present, insecure HTTP mode is used.
Security security = 3;