gitlab

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

func (*Author) String

func (a *Author) String() string

type Commit

type Commit struct {
	ID        string `json:"id"`
	Message   string `json:"message"`
	Timestamp string `json:"timestamp"`
	URL       string `json:"url"`
	Author    Author `json:"author"`
}

func (*Commit) String

func (c *Commit) String() string

type Push

type Push struct {
	Before     string     `json:"before"`
	After      string     `json:"after"`
	Ref        string     `json:"ref"`
	UserID     int        `json:"user_id"`
	Username   string     `json:"user_name"`
	ProjectID  int        `json:"project_id"`
	Commits    []Commit   `json:"commits"`
	Repository Repository `json:"repository"`
}

func (*Push) Notifications

func (push *Push) Notifications(req *rest.Request) []string

type Repository

type Repository struct {
	Name        string `json:"name"`
	URL         string `json:"url"`
	Description string `json:"description"`
	Homepage    string `json:"homepage"`
}

func (*Repository) String

func (r *Repository) String() string

Jump to

Keyboard shortcuts

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