extractors

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(features Features, extractors Config) *[]Extracter

Create builds extracters from a config

func Extract

func Extract(extractors *[]Extracter, commitMaps *[]map[string]interface{}) *types.Changelog

Extract parses commit fields to extract datas

Types

type Config

type Config map[string]struct {
	ORIGKEY string
	DESTKEY string
	REG     *regexp.Regexp
}

Config centralizes config needed for each extractor

type Extracter

type Extracter interface {
	Extract(*map[string]interface{}) *map[string]interface{}
}

Extracter describes a way to extract data from a commit hashmap summary

type Features

type Features struct {
	ENABLED bool
}

Features gives tell if extractors are enabled

Jump to

Keyboard shortcuts

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