txlogs

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WDB_DOT_TX_LOG_BASEPATH = "%s/txlogs"
View Source
var WDB_DOT_TX_LOG_FILEPATH = "%s/%s"

Functions

func CreateTxLog

func CreateTxLog(txnAction, txnActor string, txnRequestStatus string, txnEntities txlModel.TxlogSchemaJsonEntityPath, txnDetails txlModel.TxlogSchemaJsonTransactionDetails) txlModel.TxlogSchemaJson

func GetTxnActor

func GetTxnActor(authString string) string

func GetTxnHttpDetails

func GetTxnHttpDetails(c fiber.Ctx) txlModel.TxlogSchemaJsonTransactionDetails

func IsTxnLoggable

func IsTxnLoggable(txnAction string) bool

only write actions are loggable

Types

type DotTxLog

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

func UseDotTxLog

func UseDotTxLog(wunderDbBasePath string) DotTxLog

return error too : if createTxLogBase returns error UseDotTxLog should also return error and fail

func (*DotTxLog) Commit

func (dotTxL *DotTxLog) Commit() error

func (*DotTxLog) Log

func (dotTxL *DotTxLog) Log(newLog txlModel.TxlogSchemaJson) error

type TransactionLogs

type TransactionLogs struct {
	Logs []*txlModel.TxlogSchemaJson `json:"txn_logs"`
}

func (*TransactionLogs) Marshal

func (tl *TransactionLogs) Marshal() ([]byte, error)

type TxnEntityType

type TxnEntityType string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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