Documentation ¶
Index ¶
- Constants
- func ClusterID(ctx context.Context, client *mongo.Client) (string, error)
- func IsReplicationNotEnabledError(err mongo.CommandError) bool
- func MyRole(ctx context.Context, client *mongo.Client) (*proto.HelloResponse, error)
- func MyState(ctx context.Context, client *mongo.Client) (string, int, error)
- func ReplicasetConfig(ctx context.Context, client *mongo.Client) (*proto.ReplicasetConfig, error)
Constants ¶
View Source
const ( ErrNotYetInitialized = int32(94) ErrNoReplicationEnabled = int32(76) ErrNotPrimaryOrSecondary = int32(13436) )
Variables ¶
This section is empty.
Functions ¶
func IsReplicationNotEnabledError ¶
func IsReplicationNotEnabledError(err mongo.CommandError) bool
func ReplicasetConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.