Giter VIP home page Giter VIP logo

consul-client's People

Contributors

chad-ramsey-ck avatar daniel-chen-ck avatar dependabot[bot] avatar kevin-greene-ck avatar nnance avatar ramakrishna-battala-ck avatar riley-stroud-ck avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

consul-client's Issues

Need to set custom Host header

I ran consul from Kubernetes, the way its exposed is using Ingress and Host header is the key to match a service.

Any way to set Host: header on request other than consul ?

Tried using Options.hostname and Options.headers.Host but no luck.

I have resolved by adding annotations nginx.ingress.kubernetes.io/server-alias: consul,
but I think the Host header should not hardcoded and can be set in userspace.

Listing keys in KVStore

Hi,

I tried out this library, and I don't seem to be able to list keys, only get specific ones.

Right now, I can "hack" my way around it by passing {qs: { keys: true }} to store.get as a request option like so:

const store = new KvStore([this.host])

// This is a "hack" to get the consul client to list keys
const options = {qs: {"keys": true}}
const listOfKeys = await <{}>store.get( { path: this.baseKey, dc: this.dc }, options)

If this is simply missing, I volunteer to implement it as a part of upskilling on Typescript. Already forked it, but I wanted to check in case it was intentionally left out.

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.