Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { Name string // the name of the db (typically matches network name) Ctx ctx.Context // calling context Client *mongo.Client // mongo connection Accounts *mongo.Database // client account store Node *mongo.Database // node identifiers }
DB encapsulates a mongo connection for persistent storage
type Service ¶
type Service struct { ID primitive.ObjectID `bson:"_id,omitempty"` CreatedAt time.Time `bson:"created_at,omitempty"` UpdatedAt time.Time `bson:"updated_at,omitempty"` QueryType int `bson:"query_type"` Query []byte `bson:"query"` QueryDigest []byte `bson:"query_digest"` }
Service represents a generic service type
Click to show internal directories.
Click to hide internal directories.