{"modulePath":"github.com/siddontang/github-cli","version":"v0.0.0-20181010062224-b6c1e37dfd54","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst TimeFormat string = \"2006-01-02T15:04:05\"\n```\nTimeFormat is the foramt for time output\n\n## Functions\n\n```go\nfunc SendToSlack(cfg Slack, msg string)\n```\nSendToSlack sends msg to slack\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient is the client to operate Github\n\n```go\nfunc NewClient(ctx context.Context, cfg *Config) *Client\n```\nNewClient creates the Github client with token\n\n```go\nfunc (c *Client) GetIssue(ctx context.Context, owner string, repo string, id int) (*github.Issue, error)\n```\n\n```go\nfunc (c *Client) GetPull(ctx context.Context, owner string, repo string, id int) (*github.PullRequest, error)\n```\n\n```go\nfunc (c *Client) ListEventsByUser(ctx context.Context, user string, opts *EventOptions) ([]*github.Event, error)\n```\n\n```go\nfunc (c *Client) ListIssueComments(ctx context.Context, owner string, repo string, number int) ([]*github.IssueComment, error)\n```\n\n```go\nfunc (c *Client) ListPullComments(ctx context.Context, owner string, repo string, number int) ([]*github.PullRequestComment, error)\n```\n\n```go\nfunc (c *Client) SearchIssues(ctx context.Context, repos []Repository, opts SearchOptions, queryArgs url.Values) (map[string][]github.Issue, error)\n```\nSearchIssues provides a common way to search issues or pull requests.\n\n```go\nfunc (c *Client) SearchIssuesByRepo(ctx context.Context, repo Repository, opts SearchOptions, queryArgs url.Values) ([]github.Issue, error)\n```\nSearchIssuesByRepo provides a common way to search issues or pull requests.\n\n```go\ntype Config struct {\n\tAccount string       `toml:\"account\"`\n\tToken   string       `toml:\"token\"`\n\tSlack   Slack        `toml:\"slack\"`\n\tRepos   []Repository `toml:\"repos\"`\n}\n```\nConfig is the configuration for the tool\n\n```go\nfunc NewConfigFromFile(path string) (*Config, error)\n```\nNewConfigFromFile creates the configuration from file\n\n```go\nfunc (c *Config) FindRepo(owner string, name string) *Repository\n```\nFindRepo finds a repository.\n\n```go\ntype EventOptions struct {\n\tRangeTime\n\n\t// maximum number\n\tLimit int\n}\n```\nEventOptions is the options for listing events\n\n```go\nfunc NewEventOptions() *EventOptions\n```\nNewEventOptions creates a default Event Option\n\n```go\ntype RangeTime struct {\n\tStart time.Time\n\tEnd   time.Time\n}\n```\nRangeTime is a time range in \\[start, end]\n\n```go\nfunc (r *RangeTime) String() string\n```\n\n```go\ntype Repository struct {\n\tOwner string\n\tName  string\n}\n```\nRepository is the config for the repository at Github\n\n```go\nfunc (r Repository) String() string\n```\n\n```go\nfunc (r *Repository) UnmarshalText(text []byte) error\n```\nUnmarshalText implementes TOML interface.\n\n```go\ntype SearchOptions struct {\n\tSort  string\n\tOrder string\n\tLimit int\n}\n```\nSearchOptions is the options for Search Issues\n\n```go\ntype Slack struct {\n\tToken   string `toml:\"token\"`\n\tChannel string `toml:\"channel\"`\n\tUser    string `toml:\"user\"`\n}\n```\nSlack configuration\n\n","path":"github.com/siddontang/github-cli","name":"main","synopsis":"","isRedistributable":true}
