repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateRepo

type CertificateRepo struct {
	// contains filtered or unexported fields
}
var CertificateRepository *CertificateRepo

func NewCertificateRepository

func NewCertificateRepository(db *sqlx.DB) *CertificateRepo

func (*CertificateRepo) Create

func (repository *CertificateRepo) Create(networkId uint, cert x509.Certificate) (entities.CertificateModel, error)

type DnsRepo

type DnsRepo struct {
	// contains filtered or unexported fields
}
var DnsRepository *DnsRepo

func NewDnsRepository

func NewDnsRepository(db *sqlx.DB) *DnsRepo

func (*DnsRepo) SaveDnsResult

func (repository *DnsRepo) SaveDnsResult(dns entities.DnsModel) error

type NetworkRepo

type NetworkRepo struct {
	// contains filtered or unexported fields
}
var NetworkRepository *NetworkRepo

func NewNetworkRepository

func NewNetworkRepository(db *sqlx.DB) *NetworkRepo

NewNetworkRepository creates a new NetworkRepository

func (*NetworkRepo) Create

func (n *NetworkRepo) Create(network entities.NetworkModel) (uint, error)

NetworkRepositoryInterface is the interface for the NetworkRepository

func (*NetworkRepo) GetScanNetwork

func (n *NetworkRepo) GetScanNetwork(id uint) (combinedNetwork, error)

type WhoisRepo

type WhoisRepo struct {
	// contains filtered or unexported fields
}
var WhoisRepository *WhoisRepo

func NewWhoisRepository

func NewWhoisRepository(db *sqlx.DB) *WhoisRepo

func (*WhoisRepo) SaveWhoisResult

func (repository *WhoisRepo) SaveWhoisResult(whois entities.WhoisModel) error

Jump to

Keyboard shortcuts

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