internal

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInit

func GenerateInit(generatedBy string, exportedLogTypes ...*types.Package) ([]byte, error)

GenerateInit generates a go file to initialize the registry log types

func LoadExportedLogTypes

func LoadExportedLogTypes(patterns ...string) ([]*types.Package, error)

LoadExportedLogTypes scans packages for exported log types.

The function scans all packages that match the patterns for a package-level exported function with name `LogTypes`, zero parameters and a single logtypes.Group result.

For example: ``` package foo

import "github.com/panther-labs/panther/internal/log_analysis/log_processor/logtypes"

func LogTypes() logtypes.Group {
   return logtypes.Must("foo", logtypes.Config{})
}

```

Types

This section is empty.

Jump to

Keyboard shortcuts

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