Giter VIP home page Giter VIP logo

psychic-octo-pancake's Introduction

psychic-octo-pancake

psychic-octo-pancake is a producer-consumer application created as a homework

Usage

  1. Run go run . --help to see available commands
  2. Run docker-compose up to run all dependencies such as RabbitMQ
  3. Run go run . server to run a server. Application config will be created automatically in the running filder.
  4. Run commands:
    1. add "some-key" "some-value": add item to memory store
    2. get "some-key": write "some-value" into a data-log file.
    3. get-all: write all values into a data-log file
    4. remove "some-key": delete "some-key" from the memory store

Configuration

The application is well-configured out of the box.

By default it creates config file "config.toml" in a working directory and the file is ready to use with default configuration.

By default, data-file is stored in a working directory as well, but it can be changed in config.toml

  • amqp_queue = 'command_requests': client/server queue name
  • amqp_url = 'amqp://guest:guest@localhost:5672/': amqp 0.9 (RabbitMQ) url
  • data-file = 'data.log': path to a data-log file

psychic-octo-pancake's People

Contributors

azzz avatar

Watchers

 avatar

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.