dblog

package
Version: v0.0.0-...-a7a9960 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBLog

type DBLog struct {
	Id        int64
	Agent     int
	IPAddress net.IP
	ChangedAt time.Time
	Operation Operation
}

func NewDBLog

func NewDBLog(agent int, ipAddress net.IP, operation Operation) DBLog

type Operation

type Operation string
const (
	OperationCreation Operation = "Create"
	OperationUpdate   Operation = "Update"
	OperationRemoval  Operation = "Delete"
)

type Service

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

func NewService

func NewService(sqler db.SQLer) Service

func (Service) Create

func (s Service) Create(agent int, ipAddress net.IP, operation Operation) (DBLog, error)

Jump to

Keyboard shortcuts

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