pargs

package
v0.0.0-...-071347a Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBConnAddressKey = "ADDRESS"
	DBConnUrlKey     = "URL"
	DBConnRegexp     = `^(?i)` + DBConnAddressKey + `\.(?i)(` + DBConnUrlKey + `)$`

	IndexKey    = "INDEX"
	IndexRegexp = `^(?i)` + IndexKey + `\.([a-zA-Z0-9_\-]+)\.([a-zA-Z0-9_\-]+)$`

	ShardKey    = "SHARD"
	ShardRegexp = `^(?i)` + ShardKey + `\.([a-zA-Z0-9_\-]+)\.([a-zA-Z0-9_\-]+)$`

	EnableShardKey    = "ENABLESHARDING"
	EnableShardRegexp = `^(?i)` + EnableShardKey + `$`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

type EnableShard

type EnableShard struct {
	// contains filtered or unexported fields
}

type Indexes

type Indexes struct {
	// contains filtered or unexported fields
}

type KeyLibs

type KeyLibs interface {
	// contains filtered or unexported methods
}

type Param

type Param struct {
	// contains filtered or unexported fields
}

func NewParams

func NewParams() *Param

func (*Param) GetEnShard

func (s *Param) GetEnShard() bool

func (*Param) GetInds

func (s *Param) GetInds() ([]*SoftBson, error)

func (*Param) GetShared

func (s *Param) GetShared() ([]*SoftBson, error)

func (*Param) GetUrl

func (s *Param) GetUrl() (string, error)

func (*Param) Load

func (s *Param) Load() error

func (*Param) SetLogger

func (s *Param) SetLogger(log *logrus.Logger)

type Shard

type Shard struct {
	// contains filtered or unexported fields
}

type SoftBson

type SoftBson struct {
	EnterID   string
	TableName string
	KeyValues []interface{}
}

Jump to

Keyboard shortcuts

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