database

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseInterface

type DatabaseInterface interface {
	Connect() error
	Get() *gorm.DB
}

type IpLogRepository added in v1.2.0

type IpLogRepository struct {
	DB DatabaseInterface
}

func (*IpLogRepository) GetIplogByAddress added in v1.2.0

func (a *IpLogRepository) GetIplogByAddress(address string) (*domain.Iplog, error)

func (*IpLogRepository) UpdateCounter added in v1.2.0

func (a *IpLogRepository) UpdateCounter(address string) (*domain.Iplog, error)

type IpLogRepositoryInterface added in v1.2.0

type IpLogRepositoryInterface interface {
	GetIplogByAddress(address string) (*domain.Iplog, error)
	UpdateCounter(address string) (*domain.Iplog, error)
}

func NewIpLogRepository added in v1.2.0

func NewIpLogRepository(db DatabaseInterface) IpLogRepositoryInterface

Jump to

Keyboard shortcuts

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