Code Monkey home page Code Monkey logo

svt-go's Introduction

svt-go

Build Status Coverage Status

Prerequisites

  • Go-lang

    $ go version
    go version go1.8.3 linux/amd64
  • godep

    $ go get github.com/tools/godep

Get Code

$ go get github.com/hongkailiu/svt-go

Get Dependencies

$ godep restore

Build and Run

$ make build
$ ./build/svt

Cluster Loader

For example, we can run node-virtical test by:

# ./build/svt clusterLoader --file=conf/nodeVertical.yaml

See doc for more information.

Web app

A web application implemented with GoLang:

$ ./build/svt http
$ # in another terminal
$ curl localhost:8080
{
  "version": "0.0.2-3-g2375151-dirty",
  "ips": ["127.0.0.1", "::1", "192.168.31.163", "fe80::f2d5:bfff:fe5c:1b01", "192.168.122.1", "10.10.120.59"],
  "now": "2017-08-05T14:48:09.441967753-04:00"
}

It can log according posting http requests, to test oc-logging, and report the host ips, to test loading-balancing of oc-services.

The docker image containing it is pushed to docker hub:

$ docker run -d -p 8080:8080 docker.io/hongkailiu/svt-go:http

Run Tests

run all tests

$ make test

run tests in a pkg

Eg, run tests in http package

$ go test "github.com/hongkailiu/svt-go/http"

Package

$ make clean package
$ ls build/svt*.tar.gz

Release

See .travis.yml for details.

The packaged artifact is released to svt-release repo. Note that in order to activate the release we need to turn on ${RELEASE} on travis-ci.

Try the release version

See the wiki page.

svt-go's People

Contributors

hongkailiu avatar

Watchers

 avatar  avatar  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.