events: github.com/shurcooL/events Index | Files | Directories

package events

import "github.com/shurcooL/events"

Package events provides an events service definition.

Index

Package Files

events.go

type ExternalService Uses

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 Uses

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

    ExternalService
}

Service for events.

Directories

PathSynopsis
eventPackage event defines event types.
fsPackage fs implements events.Service using a virtual filesystem.
githubapiPackage githubapi implements events.Service using GitHub API client.

Package events imports 2 packages (graph) and is imported by 7 packages. Updated 2018-10-23. Refresh now. Tools for package owners.