README

events

Build Status GoDoc

Package events provides an events service definition.

Installation

go get -u github.com/shurcooL/events

Directories

Path Synopsis
event Package event defines event types.
fs Package fs implements events.Service using a virtual filesystem.
githubapi Package githubapi implements events.Service using GitHub API client.

License

Expand ▾ Collapse ▴

Documentation

Overview

    Package events provides an events service definition.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type ExternalService

    type ExternalService interface {
    	// Log logs the event.
    	// event.Time time zone must be UTC.
    	Log(ctx context.Context, event event.Event) error
    }

      ExternalService for events.

      type Service

      type Service interface {
      	// List lists events.
      	List(ctx context.Context) ([]event.Event, error)
      
      	ExternalService
      }

        Service for events.

        Source Files

        Directories

        Path Synopsis
        Package event defines event types.
        Package event defines event types.
        Package fs implements events.Service using a virtual filesystem.
        Package fs implements events.Service using a virtual filesystem.
        Package githubapi implements events.Service using GitHub API client.
        Package githubapi implements events.Service using GitHub API client.