mysql

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLRepository

func NewMySQLRepository(conf *Conf) (honeypot.Repository, error)

Types

type Conf

type Conf struct {
	Host     string `yaml:"host"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	DB       string `yaml:"db"`
}

type MySQLRepository

type MySQLRepository struct {
	// contains filtered or unexported fields
}

func (*MySQLRepository) Save

func (r *MySQLRepository) Save(cmd *honeypot.Command) error

type RedisCommand

type RedisCommand struct {
	gorm.Model
	Length      int
	Cmd         string
	Args        string
	IPFrom      string
	IPTo        string
	Implemented bool
}

func (*RedisCommand) TableName

func (c *RedisCommand) TableName() string

Jump to

Keyboard shortcuts

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