Repositories (11)
cocaine-tools
3 snippets stored for this repo
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
Name: cocaine-tools
Version: 0.11.5.0
Release: 1%{?dist}
Summary: Cocaine - Toolset
#!/bin/sh
# cocaine-tool(1) completion
cocaine-framework-python
1 snippets stored for this repo
# Copyright (c) 2013+ Evgeny Safronov <[email protected]>
# Copyright (c) 2011-2014 Other contributors as noted in the AUTHORS file.
#
# This file is part of Cocaine.
#
# Cocaine is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
cocaine-framework-java
2 snippets stored for this repo
package cocaine;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
package cocaine;
import cocaine.annotations.CocaineMethod;
import cocaine.annotations.CocaineService;
import org.apache.log4j.Level;
/**
cocaine-framework-nodejs
1 snippets stored for this repo
debug('// HACK: transform the only request chunk to usual http request')
__assert(!this._meta,'got two request chunks in http request, which is absolutely not in 0.10 cocaine fashion')
this._meta = chunk
cocaine-flow
2 snippets stored for this repo
case $1 in
configure)
# Create a new system user to run the cocaine-flow
adduser --quiet --system --ingroup adm cocaine
# push flow-tools application
Failed []string `codec:"failed"`
}
type Cocaine interface {
CrashlogController
GroupController
HostController
cocaine-framework-native
1 snippets stored for this repo
/*
Copyright (c) 2015 Evgeny Safronov <[email protected]>
Copyright (c) 2011-2015 Other contributors as noted in the AUTHORS file.
This file is part of Cocaine.
Cocaine is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
cocaine-framework-go
16 snippets stored for this repo
/*
This package helps you to write golang application, which can be launched in PaaS Cocaine.
Allows your application to communicate with another applications and services.
func echo(request *cocaine.Request, response *cocaine.Response) {
inc := <-request.Read()
package cocaine
import (
if res.Err() != nil {
err = fmt.Errorf("%s", "cocaine: unable to receive verbosity")
return
package cocaine
import (
"errors"
"fmt"
"time"
// import (
// "github.com/cocaine/cocaine-framework-go/cocaine"
// "github.com/codegangsta/martini"
package cocaine
import (
"sync"
)
type keeperStruct struct {
// Performs IO operations between application
// and cocaine-runtime, dispatches incoming messages from runtime.
type Worker struct {
// ResponseWriter implements http.ResponseWriter interface. It implements cocaine integration.
type ResponseWriter struct {
package cocaine
import (
"fmt"
"github.com/ugorji/go/codec"
"sync"
"time"
// Worker performs IO operations between an application
// and cocaine-runtime, dispatches incoming messages
// This is an adapter to WorkerNG
// NewWorker connects to the cocaine-runtime and create WorkerNG on top of this connection
func NewWorker() (*Worker, error) {
// Logger represents an interface for a cocaine.Logger
type Logger interface {
// NewLogger tries to create a cocaine.Logger. It fallbacks to a simple implementation
// if the cocaine.Logger is unavailable
import (
"context"
cocaine "github.com/cocaine/cocaine-framework-go/cocaine12"
)
type Request struct {
"io"
"syscall"
"github.com/cocaine/cocaine-framework-go/cocaine12"
)
type Response struct {
cocaine-core
4 snippets stored for this repo
Summary: Cocaine - Core Libraries
Name: libcocaine-core3
install -dD %{buildroot}%{_sysconfdir}/init.d/
install -m 755 debian/cocaine-runtime.init %{buildroot}%{_sysconfdir}/init.d/%{cocaine_runtime_name}
%endif
This file is part of Cocaine.
Cocaine is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
cocaine-framework-ruby
2 snippets stored for this repo
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/cocaine/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'cocaine-framework'
s.version = Cocaine::VERSION
cocaine-vagrant
1 snippets stored for this repo
name 'cocaine'
version '0.12.0'
depends 'poise-python'
cocaine-plugins
1 snippets stored for this repo
* GNU General Public License for more details.
*/
#ifndef COCAINE_GRAPHITE_SERVICE_HPP
#define COCAINE_GRAPHITE_SERVICE_HPP
#include "cocaine/idl/graphite.hpp"