disclosure

package
v1.46.21 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type Disclosure

type Disclosure struct {
	mixin.BaseModel

	// The searchable module we use is called 'document' so this has to be
	// called something else.
	Publication string `json:"publication"`
	Hash        string `json:"hash"`
	Type        string `json:"type"`
	Receiver    string `json:"receiver"`
}

Datastructure for Bitcoin Transaction

func New

func New(db *datastore.Datastore) *Disclosure

func (*Disclosure) AfterCreate

func (d *Disclosure) AfterCreate() error

func (*Disclosure) AfterDelete

func (d *Disclosure) AfterDelete() error

func (*Disclosure) AfterUpdate

func (d *Disclosure) AfterUpdate(prev *Disclosure) error

func (*Disclosure) BeforeUpdate

func (d *Disclosure) BeforeUpdate(prev *Disclosure) error

func (*Disclosure) Defaults

func (d *Disclosure) Defaults()

func (Disclosure) Document

func (d Disclosure) Document() mixin.Document

func (*Disclosure) Init

func (d *Disclosure) Init(db *datastore.Datastore)

func (Disclosure) Kind

func (d Disclosure) Kind() string

type Document

type Document struct {
	mixin.DocumentSaveLoad `datastore:"-" json:"-"`

	// Special Kind Facet
	Kind search.Atom `search:",facet"`

	Id_ string

	CreatedAt float64
	UpdatedAt float64

	Publication string
	Hash        string
	Type        string
	Receiver    string
}

func (Document) Id

func (d Document) Id() string

func (*Document) Init

func (d *Document) Init()

Jump to

Keyboard shortcuts

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