root

package
v0.0.0-...-c75db07 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Status int         `json:"status,omitempty"`
	Data   interface{} `json:"data,omitempty"`
	Count  int         `json:"count,omitempty"`
	Type   string      `json:"type,omitempty"`
}

type Note

type Note struct {
	ID          bson.ObjectId `json:"id,omitempty" bson:"_id"`
	NetName     string        `json:"net_name,omitempty"`
	NetType     string        `json:"net_type,omitempty"`
	Hash        string        `json:"hash,omitempty"`
	Address     string        `json:"address,omitempty"`
	BlockNum    int64         `json:"block_num,omitempty"`
	DataType    string        `json:"data_type,omitempty"`
	DataSize    int           `json:"data_size,omitempty"`
	TextPreview string        `json:"text_preview,omitempty"`
	TxTime      time.Time     `json:"tx_time,omitempty"`
}

Note struct

type NoteSearch

type NoteSearch struct {
	NetName    string `json:"net_name,omitempty"`
	NetType    string `json:"net_type,omitempty"`
	DataType   string `json:"data_type,omitempty"`
	SearchText string `json:"search_text,omitempty"`
	SearchType string `json:"search_type,omitempty"`
	Page       int    `json:"page,omitempty"`
	From       int    `json:"from,omitempty"`
	Count      int    `json:"count,omitempty"`
}

NoteSearch struct

type NoteService

type NoteService interface {
	Create(u *Note) error
	GetByNoteID(id string) (*Note, error)
	GetByNoteAddress(address string) (*Note, error)
	ListNotes(nsr NoteSearch) ([]*Note, int, error)
	Update(s *Note) error
	Remove(id string) error
	NotesFetcher()
	BatchNotesFetcher()
	NotesFixer()
}

NoteService interface

type Web3NoteManager

type Web3NoteManager interface {
	InitClient() (*ethclient.Client, error)
	OpenWallet(privateKeyHex string) (*ecdsa.PrivateKey, *ecdsa.PublicKey)
	LoadBlock(client *ethclient.Client, blockNumber int64) (*types.Block, error)
}

Web3NoteManager interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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