ernestaws

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

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

Go to latest
Published: Mar 23, 2018 License: MPL-2.0 Imports: 1 Imported by: 0

README

ERNESTAWS

master : CircleCI | develop : CircleCI

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

Example:

package main

import(
  "fmt"

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

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

	subject, data := ernestaws.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 r3labs.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 Handle

func Handle(ev *Event) (string, []byte)

Handle : Handles the given event

Types

type Event

type Event interface {
	Validate() error
	Process() (err error)
	Error(err error)
	Complete()
	Create() error
	Update() error
	Delete() error
	Find() error
	Get() error
	GetSubject() string
	GetBody() []byte
}

Event : Generic event interface

Jump to

Keyboard shortcuts

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