localbreach

package
v0.0.0-...-4d10510 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportLocalBreach

func ImportLocalBreach(ctx context.Context, db *ent.Client, b *[]schema.ImportSchema) ([]*ent.LocalBreach, error)

ImportLocalBreach imports data that from YAML files into the database. The data must adhere to the ImportSchema.

func Load

func Load(path string) (*[]schema.ImportSchema, error)

Load loads local breach data and returns a pointer to the slice of the structs, of which each holds one YAML document on successful import, error otherwise.

Types

type CtxKey

type CtxKey struct{}

Jump to

Keyboard shortcuts

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