util

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotYetInitialized     = int32(94)
	ErrNoReplicationEnabled  = int32(76)
	ErrNotPrimaryOrSecondary = int32(13436)
)

Variables

This section is empty.

Functions

func ClusterID

func ClusterID(ctx context.Context, client *mongo.Client) (string, error)

func IsReplicationNotEnabledError

func IsReplicationNotEnabledError(err mongo.CommandError) bool

func MyState

func MyState(ctx context.Context, client *mongo.Client) (int, error)

func ReplicasetConfig

func ReplicasetConfig(ctx context.Context, client *mongo.Client) (*proto.ReplicasetConfig, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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