Documentation
¶
Index ¶
- type Cmd
- type Service
- func (s *Service) Close() error
- func (s *Service) NextUsername(ctx context.Context) (string, error)
- func (s *Service) SetFollower(ctx context.Context, from string, to string) error
- func (s *Service) SetProcessed(ctx context.Context, username string) error
- func (s *Service) SetUsername(ctx context.Context, username string) error
- type UserQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
DBFilename string `required:"" default:":memory:" help:"the name of the file to save results to"`
GithubAPIKey string `required:"" help:"API Key for the Github API" env:"GITHUB_TOKEN"`
WaitInterval time.Duration `default:"1s" help:"wait between each request"`
ResultLimit int `required:"" default:"100" help:"the number of results to be returned from GraphQL"`
MaxFollowing int `required:"" default:"510" help:"do not include user if they follow more than max users"`
Username string `required:"" help:"Username to start finding associations from"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) NextUsername ¶
func (*Service) SetFollower ¶
func (*Service) SetProcessed ¶
type UserQuery ¶
type UserQuery struct {
User struct {
// Followers struct {
// TotalCount githubv4.Int
// Nodes []struct {
// Login githubv4.String
// }
// } `graphql:"followers(first: $count)"`
Following struct {
TotalCount githubv4.Int
Nodes []struct {
Login githubv4.String
IsFollowingViewer githubv4.Boolean
}
} `graphql:"following(first: $count)"`
} `graphql:"user(login: $username)"`
}
Click to show internal directories.
Click to hide internal directories.