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