Git Product home page Git Product logo

client's People

Contributors

halfwit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

client's Issues

Repository structure

As things are currently, everything works alright, but there should be some place for discussion about where to put things as languages are added.

Leaving this open to facilitate.

Allow dynamic service loading/unloading

Currently, altid-cli is designed to only attach to a single service at a time. In order to facilitate connecting to more during startup/runtime, a few options are available.

  1. A scan command, /scan would look for mDNS entries for _altid.tcp. Adding a service would then be by name, such as /service add irc, and that would use the mDNS data to get the ultimate ip:port tuple to use.
  2. Directly dealing, /service add irc 192.168.0.4:564
  3. Configuration mapping, a config file would hold the name-to-ip mappings, and you'd call it by name. /service add irc

Of the three, each has its merits. There will be mDNS entries up and running for any given service, and it is the least overhead; but the other options offer the potential to dial remote services as well.

My initial taste is for both 1 and 2; if an IP is explicitly stated, use it; else use an mDNS entry lookup.

@altid/architecture

Connect to multiple services from a single client

Currently, altid-cli is meant for single-service connections. Related to #1, we want to be able to cleanly connect and interact.

  • Should be user friendly
  • Should be fault tolerant to services closing

To achieve this, the first approach I have is to add a /service command, as discussed in #1. /service add foo /service rm bar.
Additionally on startup, a list of requested local/remote services could be iterated, such as altid-cli irc discord sms.

@altid/architecture

Add Send command to handle sending any commands to the server

to make it simple to write clients, this allows you to do things like as follows:

cmds, _ := client.GetCommands()
mytype.cmdlist = cmds

for _, cmd := range cmds {
    if cmd.Name == somecmd {
        client.Send(cmd, somedata)
    }
}

return errors.New("Command not supported")

@altid/devs
And that would comprise all command wrangling, aside from client-specific commands.

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.