Skip to content

robert-kel-tg/code-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Title

Different code snippets

Dev env:

docker-compose up

Login into container

docker-compose exec api sh

Go docs

godoc -http=":6060"

Handlers

https://elithrar.github.io/article/testing-http-handlers-go/

Zipkin

https://github.com/openzipkin/docker-zipkin

docker port zipkin

curl -vs 127.0.0.1:9411/api/v1/spans -H'Content-type: application/json' -H 'Expect:' -d '[
  {
    "traceId": "5e1b76cb257aa6fd",
    "name": "example - root span",
    "id": "168ba9a2869c3ae1",
    "timestamp": 1473066067938000,
    "duration": 484655,
    "annotations": [
      {
        "timestamp": 1473066067938000,
        "value": "sr",
        "endpoint": {
          "serviceName": "example",
          "ipv4": "0.0.0.0"
        }
      },
      {
        "timestamp": 1473066068422655,
        "value": "ss",
        "endpoint": {
          "serviceName": "example",
          "ipv4": "0.0.0.0"
        }
      }
    ],
    "binaryAnnotations": []
  }
]'

About

Different code snippets to have design practices in action

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published