Skip to content
/ es Public

Event-sourcing and microservices infrastructure with specs framework for GoLang

Notifications You must be signed in to change notification settings

eduncan911/es

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es

import "github.com/eduncan911/es"

Package es is an event-sourcing infrastructure and specs framework for GoLang originally created by Rinat Abdullin.

This folder contains the core infrastructure for prototyping event-driven back-ends. You can import it in your go and move from there.

Additional packages available are:

* `root` - binary-sortable UUID and a definition of an event
* `api` - logic for hosting a simple JSON API (with some helpers)
* `bus` - event bus and an in-memory implementation
* `log` - helpers to setup logging
* `env` - environment for defining modules and specs (contracts)
* `specs` - express, verify and print event-driven specifications
* `hosting` - wire and run modules in a process

type Contract

type Contract string

Contract is the string name

type Event

type Event interface {
    Meta() *Info
}

Event interface defines the Meta info

type Info

type Info struct {
    Contract string
    EventID  uuid.ID
}

Info represents a Contract and EventID

func NewInfo

func NewInfo(contract string, eventID uuid.ID) *Info

NewInfo instantiates a new Info


Generated by godoc2md

About

Event-sourcing and microservices infrastructure with specs framework for GoLang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages