Package list golang-github-go-kit-kit / e9f8dfb
clean-up of several formatting and comment typos Bas van Beek 5 years ago
6 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
1616 // received from an endpoint.
1717 var ErrBadCast = errors.New("bad cast")
1818
19 // ContextCanceled indicates the request context was canceled.
19 // ErrContextCanceled indicates the request context was canceled.
2020 var ErrContextCanceled = errors.New("context canceled")
2121
2222 // Chain is a helper function for composing middlewares. Requests will
1111 "golang.org/x/net/context"
1212 )
1313
14 // Client is a wrapper arround the etcd client.
14 // Client is a wrapper around the etcd client.
1515 type Client interface {
1616 // GetEntries will query the given prefix in etcd and returns a set of entries.
1717 GetEntries(prefix string) ([]string, error)
3232 return nil, err
3333 }
3434
35 // intial node retrieval and cache fill
35 // initial node retrieval and cache fill
3636 instances, eventc, err := p.client.GetEntries(p.path)
3737 if err != nil {
3838 logger.Log("path", p.path, "msg", "failed to retrieve entries", "err", err)
2929 mkdir zipkin
3030 cd zipkin
3131 vagrant init bas303/zipkin
32 vagrant-up --provider virtualbox
32 vagrant up --provider virtualbox
3333 ```
3434
3535 [Zipkin]: http://zipkin.io/
3434 options ...ServerOption,
3535 ) *Server {
3636 s := &Server{
37 ctx: ctx,
38 e: e,
39 dec: dec,
40 enc: enc,
37 ctx: ctx,
38 e: e,
39 dec: dec,
40 enc: enc,
4141 logger: log.NewNopLogger(),
4242 }
4343 for _, option := range options {
118118 b := make([]byte, len(testbody))
119119 _, err = response.Body.Read(b)
120120 if want, have := io.EOF, err; have != want {
121 t.Fatal("want %q, have %q", want, have)
121 t.Fatalf("want %q, have %q", want, have)
122122 }
123123 if want, have := testbody, string(b); want != have {
124124 t.Errorf("want %q, have %q", want, have)