github

package
v0.0.0-...-8863af4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 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,omitempty"`
	Email    string `json:"email,omitempty"`
	Username string `json:"username,omitempty"`
}

func (Author) MarshalEasyJSON

func (v Author) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Author) MarshalJSON

func (v Author) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Author) UnmarshalEasyJSON

func (v *Author) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Author) UnmarshalJSON

func (v *Author) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Commit

type Commit struct {
	ID        string    `json:"id,omitempty"`
	TreeID    string    `json:"tree_id,omitempty"`
	Distinct  bool      `json:"distinct,omitempty"`
	Message   string    `json:"message,omitempty"`
	Timestamp time.Time `json:"timestamp,omitempty"`
	URL       string    `json:"url,omitempty"`
	Author    Author    `json:"author,omitempty"`
	Committer Author    `json:"committer,omitempty"`
	Added     []string  `json:"added,omitempty"`
	Removed   []string  `json:"removed,omitempty"`
	Modified  []string  `json:"modified,omitempty"`
}

func (Commit) MarshalEasyJSON

func (v Commit) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Commit) MarshalJSON

func (v Commit) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Commit) UnmarshalEasyJSON

func (v *Commit) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Commit) UnmarshalJSON

func (v *Commit) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Owner

type Owner struct {
	Name   string `json:"name,omitempty"`
	Email  string `json:"email,omitempty"`
	Login  string `json:"login,omitempty"`
	ID     int64  `json:"id,omitempty"`
	NodeID string `json:"node_id,omitempty"`
	Type   string `json:"type,omitempty"`
}

func (Owner) MarshalEasyJSON

func (v Owner) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Owner) MarshalJSON

func (v Owner) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Owner) UnmarshalEasyJSON

func (v *Owner) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Owner) UnmarshalJSON

func (v *Owner) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PushEvent

type PushEvent struct {
	Ref        string     `json:"ref,omitempty"`
	Before     string     `json:"before,omitempty"`
	After      string     `json:"after,omitempty"`
	Created    bool       `json:"created,omitempty"`
	Deleted    bool       `json:"deleted,omitempty"`
	Forced     bool       `json:"forced,omitempty"`
	BaseRef    *string    `json:"base_ref,omitempty"`
	Compare    string     `json:"compare,omitempty"`
	Repository Repository `json:"repository,omitempty"`
	Pusher     Pusher     `json:"pusher,omitempty"`
	Sender     Sender     `json:"sender,omitempty"`
	Commits    []Commit   `json:"commits,omitempty"`
	HeadCommit Commit     `json:"head_commit,omitempty"`
}

func (PushEvent) MarshalEasyJSON

func (v PushEvent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PushEvent) MarshalJSON

func (v PushEvent) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PushEvent) UnmarshalEasyJSON

func (v *PushEvent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PushEvent) UnmarshalJSON

func (v *PushEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Pusher

type Pusher struct {
	Name  string `json:"name,omitempty"`
	Email string `json:"email,omitempty"`
}

func (Pusher) MarshalEasyJSON

func (v Pusher) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Pusher) MarshalJSON

func (v Pusher) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Pusher) UnmarshalEasyJSON

func (v *Pusher) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Pusher) UnmarshalJSON

func (v *Pusher) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Repository

type Repository struct {
	ID            int64     `json:"id,omitempty"`
	NodeID        string    `json:"node_id,omitempty"`
	Name          string    `json:"name,omitempty"`
	FullName      string    `json:"full_name,omitempty"`
	Private       bool      `json:"private,omitempty"`
	Owner         Owner     `json:"owner,omitempty"`
	HTMLURL       string    `json:"html_url,omitempty"`
	Description   *string   `json:"description,omitempty"`
	Fork          bool      `json:"fork,omitempty"`
	URL           string    `json:"url,omitempty"`
	CreatedAt     int64     `json:"created_at,omitempty"`
	UpdatedAt     time.Time `json:"updated_at,omitempty"`
	PushedAt      int64     `json:"pushed_at,omitempty"`
	GitURL        string    `json:"git_url,omitempty"`
	SSHURL        string    `json:"sshurl,omitempty"`
	CloneURL      string    `json:"clone_url,omitempty"`
	Size          int       `json:"size,omitempty"`
	DefaultBranch string    `json:"default_branch,omitempty"`
	MasterBranch  string    `json:"master_branch,omitempty"`
}

func (Repository) MarshalEasyJSON

func (v Repository) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Repository) MarshalJSON

func (v Repository) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Repository) UnmarshalEasyJSON

func (v *Repository) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Repository) UnmarshalJSON

func (v *Repository) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Sender

type Sender struct {
	Login  string `json:"login,omitempty"`
	ID     int64  `json:"id,omitempty"`
	NodeID string `json:"node_id,omitempty"`
	Type   string `json:"type,omitempty"`
}

func (Sender) MarshalEasyJSON

func (v Sender) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Sender) MarshalJSON

func (v Sender) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Sender) UnmarshalEasyJSON

func (v *Sender) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Sender) UnmarshalJSON

func (v *Sender) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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