events

package module
Version: v0.0.0-...-e83751a Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 2 Imported by: 10

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

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.

Jump to

Keyboard shortcuts

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