Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MongoDBConnect ¶
func MongoGateStream ¶ added in v0.1.3
func MongoGateStream(m *MongoReadiness) grpc.StreamServerInterceptor
func MongoGateUnary ¶ added in v0.1.3
func MongoGateUnary(m *MongoReadiness) grpc.UnaryServerInterceptor
Types ¶
type MongoReadiness ¶ added in v0.1.3
type MongoReadiness struct {
// contains filtered or unexported fields
}
func NewMongoReadiness ¶ added in v0.1.3
func NewMongoReadiness(client *mongo.Client, timeout time.Duration) *MongoReadiness
func (*MongoReadiness) CheckNow ¶ added in v0.1.3
func (m *MongoReadiness) CheckNow(ctx context.Context) error
func (*MongoReadiness) LastError ¶ added in v0.1.3
func (m *MongoReadiness) LastError() string
func (*MongoReadiness) Ready ¶ added in v0.1.3
func (m *MongoReadiness) Ready() bool
Click to show internal directories.
Click to hide internal directories.