Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSessionTTL = 15 * time.Second
View Source
const DefaultSessionTTLInSeconds int64 = 15
View Source
const ExpirationMetricsInterval = 60 * time.Second
View Source
const LockSchemaRoot = "v1/locks"
View Source
const MonitorRetryTime = 2 * time.Second
View Source
const RetryInterval = 5 * time.Second
View Source
const SQLRetryInterval = time.Second
Variables ¶
This section is empty.
Functions ¶
func LockSchemaPath ¶
func NewClient ¶
func NewClient(logger lager.Logger, config ClientLocketConfig) (models.LocketClient, error)
func NewClientSkipCertVerify ¶
func NewClientSkipCertVerify(logger lager.Logger, config ClientLocketConfig) (models.LocketClient, error)
Types ¶
type ClientLocketConfig ¶
type ClientLocketConfig struct { LocketAddress string `json:"locket_address,omitempty" yaml:"locket_address,omitempty"` LocketCACertFile string `json:"locket_ca_cert_file,omitempty" yaml:"locket_ca_cert_file,omitempty"` LocketClientCertFile string `json:"locket_client_cert_file,omitempty" yaml:"locket_client_cert_file,omitempty"` LocketClientKeyFile string `json:"locket_client_key_file,omitempty" yaml:"locket_client_key_file,omitempty"` LocketClientKeepAliveTime int `json:"locket_client_keepalive_time,omitempty" yaml:"locket_client_keepalive_time,omitempty"` LocketClientKeepAliveTimeout int `json:"locket_client_keepalive_timeout,omitempty" yaml:"locket_client_keepalive_timeout,omitempty"` }
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
dbfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
expirationfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
helpers/helpersfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
modelsfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.