Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Context = context.TODO()
Functions ¶
func Init ¶
func Init(mongoConfig *config.MongoConfig) error
Types ¶
type NodeDocument ¶
type NodesCollection ¶
type NodesCollection struct {
Collection *mongo.Collection
}
var Nodes NodesCollection
func (*NodesCollection) FindManyByAddress ¶
func (nodes *NodesCollection) FindManyByAddress(address string) []NodeDocument
func (*NodesCollection) GetAll ¶
func (nodes *NodesCollection) GetAll() []NodeDocument
func (*NodesCollection) InsertOne ¶
func (nodes *NodesCollection) InsertOne(address string)
Click to show internal directories.
Click to hide internal directories.