mongodb

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mongodb exposes a Mongo DB service.

Index

Constants

View Source
const (
	// ServiceName is the advertised name of this service.
	ServiceName = "mongo"
	// ReplicaSet is the replica set name.
	ReplicaSet = "rs0"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, address string) (*mongo.Client, error)

NewClient creates a new Client.

func NewComponent

NewComponent creates a new Consul component.

Types

This section is empty.

Jump to

Keyboard shortcuts

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