Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
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
Click to show internal directories.
Click to hide internal directories.