configs

package
v1.2.84 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarrierConfig

type BarrierConfig struct {
	Size int `json:"size"`
}

type Config

type Config struct {
	Addr      []string        `json:"addr"`
	Username  string          `json:"username"`
	Password  string          `json:"password"`
	SSL       SSLConfig       `json:"ssl"`
	KeepAlive KeepAliveConfig `json:"keepAlive"`
	Shared    json.RawMessage `json:"shared"`
	Barrier   json.RawMessage `json:"barrier"`
}

func (*Config) As

func (config *Config) As() (v hazelcast.Config, err error)

func (*Config) BarrierConfig

func (config *Config) BarrierConfig() (v configures.Config, err error)

func (*Config) SharedConfig

func (config *Config) SharedConfig() (v configures.Config, err error)

type KeepAliveConfig

type KeepAliveConfig struct {
	TTL      time.Duration `json:"ttl"`
	Interval time.Duration `json:"interval"`
}

func (*KeepAliveConfig) GetInterval

func (config *KeepAliveConfig) GetInterval() time.Duration

func (*KeepAliveConfig) GetTTL

func (config *KeepAliveConfig) GetTTL() time.Duration

type SSLConfig

type SSLConfig struct {
	Enable bool `json:"enable"`
	configs.Client
}

type SharedConfig

type SharedConfig struct {
	LockersSize int `json:"lockersSize"`
	StoreSize   int `json:"storeSize"`
}

Jump to

Keyboard shortcuts

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