code: func NewClient(c context.Context, host string) (*coordinator.Client, error) {
  	if client, _ := c.Value(&fakeLogKey).(logdog.LogsClient); client != nil {
  		return &coordinator.Client{
  			C:    client,
  			Host: "example.com",
  		}, nil
  	}
  
  	var err error
  	if host, err = resolveHost(host); err != nil {
  		return nil, err
  	}
  
  	// Initialize the LogDog client authentication.
  	t, err := auth.GetRPCTransport(c, auth.AsUser)
  	if err != nil {
  		return nil, errors.New("failed to get transport for LogDog server")
  	}
  
  	// Setup our LogDog client.
  	return coordinator.NewClient(&prpc.Client{
  		C: &http.Client{
  			Transport: t,
  		},
  		Host: host,
  	}), nil
  }
docs: // NewClient generates a new LogDog client that issues requests on behalf of the
  // current user.