Skip to content

jqk6/H2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

H2

A microservices framework that powers all of Hailo.

What's Missing

Currently, we are shipping a few compiled services, we aim to open source them once we have cleaned the source code up and pointed them to compile against this repository instead of our private forks. This covers:

  • Config service
  • Binding service
  • Dashboards
  • Gateway
  • http2rpc service
  • Login service
  • Discovery service
  • Web discovery service

Getting Started

Developing Services

To develop your own applications, or to take H2 for a spin, you will need to start by creating a working development environment, instructions can be found in the provisioning repository website.

API Documentation for the this repository can be found on godoc.org (https://godoc.org/github.com/hailocab/H2).

Packages

The packages consumed by this repository have been split into two repositories platform-layer and service-layer. These are the same packages that internal closed source applications use.

Our have been split into logical groups, the service layer repository handles most of the non functional requirements for our platform, as well as providing ways of talking to our shared infrastructure.

The platform layer handles the underlaying application structure, ensuring an application is built in similar ways consistently.

Example Application

We have included a small example application, which will tell you how many services are currently running on your development environment.

To build this service, it's as easy as go build (Note: To run this on the VM, you will need to cross compile the binary http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5). Running the service locally, outside of the development environment, requires a set of environment variables to be set.

  • H2_RABBITMQ_URL value: amqp://guest:guest@<virtual machine ip>:5672
  • H2_CONFIG_SERVICE_ADDR value: http://<virtual machine ip>:8097
  • H2_CASSA_DEFAULT_ADDR value: <virtual machine ip>:9160

So you could end up with a command that looks like:

$ env \
  H2_RABBITMQ_URL=amqp://guest:guest@192.168.33.10:5672 \
  H2_CONFIG_SERVICE_ADDR=http://192.168.33.10:8097 \
  H2_CASSA_DEFAULT_ADDR=192.168.33.10:9160 \
  hello-world

Developing The Platform

Please see CONTRIBUTING.md

Metadata

Licensing

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Maintainers

Please see MAINTAINERS.md

About

A microservices framework that powers all of Hailo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Protocol Buffer 75.5%
  • Shell 14.7%
  • Go 9.8%