ernestprovider

package module
v0.0.0-...-ea4a84b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2018 License: MPL-2.0 Imports: 24 Imported by: 0

README

ERNEST PROVIDER

master : CircleCI | develop : CircleCI

This library aims to be a wrapper on top of provider go sdk, so it concentrates all provider specific logic on ernest.

Example:

package main

import(
  "fmt"

	"github.com/ernestio/ernestprovider"
	"github.com/ernestio/ernestprovider/network"
)

func main() {
	event := network.New("network.create.provider", "{....}")

	subject, data := ernestprovider.Handle(&event)
	fmt.Println("Response: ")
	fmt.Println(subject)
	fmt.Println(data)
}

Using it

You can start by importing

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Moreover, if your pull request contains patches or features, you must include relevant unit tests.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, this project is maintained under the Semantic Versioning guidelines.

Code and documentation copyright since 2015 ernest.io authors.

Code released under the Mozilla Public License Version 2.0.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAndHandle

func GetAndHandle(subject string, data []byte, key string) (string, []byte)

GetAndHandle : Gets an event and Handles its results

func GetEvent

func GetEvent(subject string, data []byte, key string) (event.Event, error)

GetEvent : Gets a valid event based on a subject

func Handle

func Handle(ev event.Event) (string, []byte)

Handle : Handles the given event

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL