Documentation
¶
Overview ¶
Package bblfsh provides access to bblfsh parsing for the data service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseScanner ¶
type BaseScanner struct {
// contains filtered or unexported fields
}
type ChangeScanner ¶
type ChangeScanner struct { BaseScanner // contains filtered or unexported fields }
ChangeScanner is a scanner for changes.
func (*ChangeScanner) Change ¶
func (s *ChangeScanner) Change() *lookout.Change
func (*ChangeScanner) Close ¶
func (s *ChangeScanner) Close() error
func (*ChangeScanner) Err ¶
func (s *ChangeScanner) Err() error
func (*ChangeScanner) Next ¶
func (s *ChangeScanner) Next() bool
type FileScanner ¶
type FileScanner struct { BaseScanner // contains filtered or unexported fields }
FileScanner is a scanner for files.
func (*FileScanner) Close ¶
func (s *FileScanner) Close() error
func (*FileScanner) Err ¶
func (s *FileScanner) Err() error
func (*FileScanner) File ¶
func (s *FileScanner) File() *lookout.File
func (*FileScanner) Next ¶
func (s *FileScanner) Next() bool
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements data service interface which adds UAST to the responses
func NewService ¶
func NewService( changes lookout.ChangeGetter, files lookout.FileGetter, conn *grpc.ClientConn, parseTimeout time.Duration, ) *Service
NewService creates new bblfsh Service A parseTimeout of zero means no timeout.
func (*Service) GetChanges ¶
func (s *Service) GetChanges(ctx context.Context, req *lookout.ChangesRequest) (lookout.ChangeScanner, error)
GetChanges returns a ChangeScanner that scans all changes according to the request.
func (*Service) GetFiles ¶
func (s *Service) GetFiles(ctx context.Context, req *lookout.FilesRequest) (lookout.FileScanner, error)
GetFiles returns a FilesScanner that scans all files according to the request.
Click to show internal directories.
Click to hide internal directories.