Giter VIP home page Giter VIP logo

cocaine-framework-go's Introduction

cocaine-framework-go Build Status

This package helps you to write a golang application, which can be launched in Cocaine.

You can write application for Cocaine so fast and easy as you cannot even imagine.

Documentation

Version Refs
v0.12 Godoc12
v0.11 Godoc11

cocaine-framework-go's People

Contributors

3hren avatar dnovikoff avatar lamerman avatar m0sth8 avatar manykey avatar minaevmike avatar noxiouz avatar satori avatar shaitan avatar skipor avatar

Stargazers

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

Watchers

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

cocaine-framework-go's Issues

Красивые трейсбеки

Сейчас если что-нибудь произошло в приложении, то приложение просто крэшится и трейсбек показывает только внутренности фреймворка, хочется понятных трейсбэков =)

Distributing both versions of the framework.

I'd like to merge v0.12 into master branch, but it could affect v0.11 clients. I really don't want to use non native version systems like pkg.in. So propose to put both versions in the same repo, but in to different directories. Like cocaine11 & cocaine12. Any thoughts? We can get rid of cocaine11 later.
@m0sth8 @lamerman @mechmind

Specify accepted Http Methods in cocaine.WrapHandlerFunc

It seems like being able to specify http methods that are accepted by the handle is a useful feature. You can say it's supposed to handle GET requests only and whenever any other type of request appears it will return a correct HTTP response that says "Only GET method is supported".

Ability to create stub Request and Response

For testing purposes we need to create proper cocaine.Request from given data and cocaine.Response with way to extract result (similar to functionality of httptest.ResponseRecorder).

Application hangs on start

I'm using sample application:

package main
import (
    "fmt"
    "log"
    "github.com/cocaine/cocaine-framework-go/cocaine"
)

func echo(request *cocaine.Request, response *cocaine.Response) {
    inc := <-request.Read()
    response.Write(inc)
    response.Close()
}

func main() {
    binds := map[string]cocaine.EventHandler{"echo": echo}
    Worker, err := cocaine.NewWorker()
    if err != nil {
        log.Fatal(err)
    }
    Worker.Loop(binds)
}

Still this application timeouts while starting up.
Sample python application works nice, so looks like not a cocaine setup problem.

Problem with start

When i try to start my go cocaine(v0.11) app it fails with such message in crashlog: flag provided but not defined: -app
, as i can see the problem is in the argument parser from commit 3c87398

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.