events

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client   *retryablehttp.Client
	Settings *settings.Settings
	Ctx      context.Context
}

func NewEventClient

func NewEventClient(ctx context.Context, settings *settings.Settings) *Client

func (*Client) SendEvent

func (c *Client) SendEvent(eventType string, event *Event)

type Event

type Event struct {
	Start      int64  `json:"start_time"`
	End        int64  `json:"end_time"`
	Org        string `json:"org"`
	Repo       string `json:"repo"`
	Path       string `json:"path"`
	Branch     string `json:"branch"`
	Dinghyfile string `json:"dinghyfile"`
	Module     bool   `json:"is_module"`
}

type EventClient

type EventClient interface {
	SendEvent(string, *Event)
}

Jump to

Keyboard shortcuts

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