mysql

package
v0.0.0-...-339e85a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

Datastore stores the audit data in the database

func NewDatastore

func NewDatastore(singletonName string, dbHost string, dbPort uint16, dbUser string, dbPass string, dbName string) (*Datastore, error)

NewDatastore returns a new datastore for storing audit state in mysql

func (*Datastore) GetAuditData

func (d *Datastore) GetAuditData() (string, error)

GetAuditData returns the audit data from the database

func (*Datastore) StoreAuditData

func (d *Datastore) StoreAuditData(data string) error

StoreAuditData stores the latest audit json in the DB for this singleton

Jump to

Keyboard shortcuts

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