jsonmanager

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists returns whether the given file exists

Types

type JSONNotes

type JSONNotes struct {
	TransactionID    string `json:"transactionID"`
	TransactionNotes string `json:"transactionNotes"`
}

JSONNotes represents the JSON format of the notes

type NotesManager

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

NotesManager represents the manager for the notes

func NewNotesManager

func NewNotesManager(walletName string) *NotesManager

NewNotesManager returns a new NotesManager for the given wallet

func (*NotesManager) DeleteNote

func (nm *NotesManager) DeleteNote(transactionID string) error

DeleteNote deletes the note with the given transactionID

func (*NotesManager) GetAll

func (nm *NotesManager) GetAll() ([]JSONNotes, error)

GetAll returns all the notes

func (*NotesManager) UpsertNote

func (nm *NotesManager) UpsertNote(transactionID string, transactionNotes string) error

UpsertNote updates or inserts the notes with the given transactionID and transactionNotes

Jump to

Keyboard shortcuts

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