querymapping

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapSource

type MapSource struct {
	Mappings []QueryMap `json:"mappings"`
}

type Provider

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

func NewProvider

func NewProvider(queryMappingPath string, client RetryableHTTPAdapter) (*Provider, error)

func (*Provider) AddQueryMapping

func (p *Provider) AddQueryMapping(language, name, group, sastQueryID string) error

func (*Provider) GetMapping

func (p *Provider) GetMapping() []QueryMap

type QueryMap

type QueryMap struct {
	AstID  string `json:"astId"`
	SastID string `json:"sastId"`
}

type RetryableHTTPAdapter

type RetryableHTTPAdapter interface {
	Get(url string) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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