Documentation ¶
Index ¶
- type Source
- func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) error
- func (s *Source) Init(aCtx context.Context, name string, jobID, sourceID int64, verify bool, ...) error
- func (s *Source) JobID() int64
- func (s *Source) SourceID() int64
- func (s *Source) Type() sourcespb.SourceType
- func (s *Source) UserAndToken(ctx context.Context, installationClient *github.Client) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
func (*Source) Init ¶
func (s *Source) Init(aCtx context.Context, name string, jobID, sourceID int64, verify bool, connection *anypb.Any, concurrency int) error
Init returns an initialized GitHub source.
func (*Source) Type ¶
func (s *Source) Type() sourcespb.SourceType
Type returns the type of source. It is used for matching source types in configuration and job input.
Click to show internal directories.
Click to hide internal directories.