database

package
v0.0.0-...-729b35f Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	DB *gorm.DB
}

func Connect

func Connect() (*Base, error)

func (*Base) CreateJPNICHandle

func (b *Base) CreateJPNICHandle(handle JPNICHandle) (JPNICHandle, error)

func (*Base) CreateResultV4List

func (b *Base) CreateResultV4List(handle V4List) (V4List, error)

func (*Base) CreateResultV4ListTechJPNIC

func (b *Base) CreateResultV4ListTechJPNIC(handle []V4TechJPNICLists) ([]V4TechJPNICLists, error)

func (*Base) CreateResultV6List

func (b *Base) CreateResultV6List(handle V6List) (V6List, error)

func (*Base) CreateResultV6ListTechJPNIC

func (b *Base) CreateResultV6ListTechJPNIC(handle []V6TechJPNICLists) ([]V6TechJPNICLists, error)

func (*Base) GetAllJPNIC

func (b *Base) GetAllJPNIC() (*[]JPNIC, error)

func (*Base) GetRangeJPNICHandle

func (b *Base) GetRangeJPNICHandle(getStartDate, getEndDate string, AsnID uint, IsIPv6 bool) (*[]JPNICHandle, error)

func (*Base) GetRangeV4List

func (b *Base) GetRangeV4List(getStartDate, getEndDate string, AsnID uint) (V4List, error)

func (*Base) GetRangeV4ListByRecepNumber

func (b *Base) GetRangeV4ListByRecepNumber(getStartDate, getEndDate, recepNumber string, AsnID uint) ([]V4List, error)

func (*Base) GetRangeV6List

func (b *Base) GetRangeV6List(getStartDate, getEndDate string, AsnID uint) (V6List, error)

func (*Base) GetRangeV6ListByRecepNumber

func (b *Base) GetRangeV6ListByRecepNumber(getStartDate, getEndDate, recepNumber string, AsnID uint) ([]V6List, error)

func (*Base) GetV4JPNICDataNotReceivedCount

func (b *Base) GetV4JPNICDataNotReceivedCount(getStartDate, getEndDate string, AsnID uint) (int64, error)

func (*Base) GetV4JPNICDataReceivedCount

func (b *Base) GetV4JPNICDataReceivedCount(getStartDate, getEndDate string, AsnID uint) (int64, error)

func (*Base) GetV6JPNICDataNotReceivedCount

func (b *Base) GetV6JPNICDataNotReceivedCount(getStartDate, getEndDate string, AsnID uint) (int64, error)

func (*Base) GetV6JPNICDataReceivedCount

func (b *Base) GetV6JPNICDataReceivedCount(getStartDate, getEndDate string, AsnID uint) (int64, error)

func (*Base) UpdateV4List

func (b *Base) UpdateV4List(ids []uint, list V4List) error

func (*Base) UpdateV4ListIrregular

func (b *Base) UpdateV4ListIrregular(id uint, getStartDate string, AsnId uint) error

func (*Base) UpdateV6List

func (b *Base) UpdateV6List(ids []uint, list V6List) error

func (*Base) UpdateV6ListIrregular

func (b *Base) UpdateV6ListIrregular(id uint, getStartDate string, AsnId uint) error

type JPNIC

type JPNIC struct {
	ID                 uint
	Name               string
	IsActive           bool
	IsIPv6             bool
	Ada                bool
	CollectionInterval uint
	ASN                uint
	P12Base64          string
	P12Pass            string
}

type JPNICHandle

type JPNICHandle struct {
	ID           uint
	GetStartDate string
	GetDate      string
	IsDisabled   bool
	IsGet        bool
	IsIpv6       bool
	JPNICHandle  string `gorm:"column:jpnic_handle"`
	Name         string
	NameEn       string
	Email        string
	Org          string
	OrgEn        string
	Division     string
	DivisionEn   string
	Tel          string
	Fax          string
	UpdateDate   string
	ASN          uint `gorm:"column:asn_id"`
}

type V4List

type V4List struct {
	ID                 uint
	GetStartDate       string
	GetDate            string
	IsDisabled         bool
	IsGet              bool
	IpAddress          string
	Size               uint
	NetworkName        string
	AssignDate         string
	ReturnDate         *string
	Org                string
	OrgEn              string
	ResourceAdminShort string
	RecepNumber        string
	DeliNumber         string
	Type               string
	Division           string
	PostCode           string
	Address            string
	AddressEn          string
	NameServer         string
	DsRecord           string
	NotifyAddress      string
	AdminJpnicId       *uint
	AsnId              uint
}

type V4TechJPNICLists

type V4TechJPNICLists struct {
	ID            uint
	V4ListId      uint `gorm:"column:v4list_id"`
	JpnicHandleId uint `gorm:"column:jpnichandle_id"`
}

type V6List

type V6List struct {
	ID                 uint
	GetStartDate       string
	GetDate            string
	IsDisabled         bool
	IsGet              bool
	IpAddress          string
	NetworkName        string
	AssignDate         string
	ReturnDate         *string
	Org                string
	OrgEn              string
	ResourceAdminShort string
	RecepNumber        string
	DeliNumber         string
	Division           string
	PostCode           string
	Address            string
	AddressEn          string
	NameServer         string
	DsRecord           string
	NotifyAddress      string
	AdminJpnicId       *uint
	AsnId              uint
}

type V6TechJPNICLists

type V6TechJPNICLists struct {
	ID            uint
	V6ListId      uint `gorm:"column:v6list_id"`
	JpnicHandleId uint `gorm:"column:jpnichandle_id"`
}

Jump to

Keyboard shortcuts

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