Versions in this module Expand all Collapse all v0 v0.1.0 Aug 2, 2021 Changes in this version + func Connect(ctx context.Context, p *Params) (*mongo.Client, error) + type Channel struct + func NewChannelCollection(client *mongo.Client, db string) Channel + func (c Channel) All(ctx context.Context) ([]are_hub.Channel, error) + func (c Channel) Count(ctx context.Context) (int64, error) + func (c Channel) DeleteID(ctx context.Context, id string) (*are_hub.Channel, error) + func (c Channel) FindID(ctx context.Context, id string) (*are_hub.Channel, error) + func (c Channel) Insert(ctx context.Context, ptr are_hub.Archetype) error + func (c Channel) UpdateID(ctx context.Context, hex string, ptr are_hub.Archetype) error + type Params struct + Address string + Mechanism string + Name string + Password string + User string