mongox

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_mongox_config_proto protoreflect.FileDescriptor
View Source
var Provider = wire.NewSet(
	NewClients,
)

Functions

func NewClient

func NewClient(ctx context.Context, options *Options) (*mongo.Client, error)

func NewClients

func NewClients(ctx context.Context, config *Config) *lazyloadx.Group[*mongo.Client]

Types

type Config

type Config struct {
	Configs map[string]*Options `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated added in v0.0.2

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetConfigs added in v0.0.2

func (x *Config) GetConfigs() map[string]*Options

func (*Config) ProtoMessage added in v0.0.2

func (*Config) ProtoMessage()

func (*Config) ProtoReflect added in v0.0.2

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset added in v0.0.2

func (x *Config) Reset()

func (*Config) String added in v0.0.2

func (x *Config) String() string

type Options added in v0.0.2

type Options struct {
	Uri *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*Options) Descriptor deprecated added in v0.0.2

func (*Options) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetUri added in v0.0.2

func (x *Options) GetUri() *wrapperspb.StringValue

func (*Options) ProtoMessage added in v0.0.2

func (*Options) ProtoMessage()

func (*Options) ProtoReflect added in v0.0.2

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset added in v0.0.2

func (x *Options) Reset()

func (*Options) String added in v0.0.2

func (x *Options) String() string

Jump to

Keyboard shortcuts

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