analyzer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package analyzer implements the `analyze` sub-command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(parentCmd *cobra.Command)

Register registers the process sub-command.

func RunMigrations

func RunMigrations(sourceURL string, databaseURL string) error

RunMigrations runs migrations defined in sourceURL against databaseURL.

Types

type A

type A = analyzer.Analyzer

Shorthand for use within this file.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is Oasis Nexus's analysis service.

func Init

func Init(cfg *config.AnalysisConfig) (*Service, error)

Init initializes the analysis service.

func NewService

func NewService(cfg *config.AnalysisConfig) (*Service, error)

NewService creates new Service.

func (*Service) Start

func (a *Service) Start()

Start starts the analysis service.

type SyncedAnalyzer added in v0.1.21

type SyncedAnalyzer struct {
	Analyzer analyzer.Analyzer
	SyncTag  string
}

An Analyzer that is tagged with a `syncTag`. The `syncTag` is used for sequencing analyzers: For any non-empty tag, nexus will first run all fast-sync analyzers with that tag to completion, and only then start other analyzers with the same tag. The empty tag "" is special; it can be used by slow-sync analyzers that don't need to wait for any fast-sync analyzers to complete. This mechanism is a simple(ish) alternative to supporting a full-blown execution/dependency graph between analyzers.

Jump to

Keyboard shortcuts

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