package localbreach
import "git.dotya.ml/mirre-mt/pcmt/modules/localbreach"
Index ¶
- func ImportLocalBreach(ctx context.Context, db *ent.Client, b *[]schema.ImportSchema) ([]*ent.LocalBreach, error)
- func Load(path string) (*[]schema.ImportSchema, error)
- type CtxKey
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{}
Source Files ¶
breach.go
- Version
- v0.0.0-20230910121657-4d10510f5ba4 (latest)
- Published
- Sep 10, 2023
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 1 month ago –
Tools for package owners.