Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct { LocalInstance int64 // contains filtered or unexported fields }
func NewTcpListeningAgent ¶
func NewTcpListeningAgent(config AgentConfig, listenAddr string) (*Agent, error)
type AgentConfig ¶
type AgentConfig struct { TLS *tls.Config AppId string LeaseDuration time.Duration ApplicationLeaseDuration time.Duration LeaseSuspendTimeout time.Duration ArbitrationTimeout time.Duration }
func (*AgentConfig) SetDefault ¶
func (c *AgentConfig) SetDefault()
type LeaseAgentState ¶
type LeaseAgentState int32
const ( LeaseAgentStateOpen LeaseAgentState = iota LeaseAgentStateSuspended LeaseAgentStateFailed )
type LeaseMessageType ¶
type LeaseMessageType int32
const ( LeaseMessageTypeLeaseRequest LeaseMessageType = iota LeaseMessageTypeLeaseResponse LeaseMessageTypePingRequest LeaseMessageTypePingResponse LeaseMessageTypeForwardRequest LeaseMessageTypeForwardResponse LeaseMessageTypeRelayRequest LeaseMessageTypeRelayResponse )
type Message ¶
type Message struct { Identifier int64 Type LeaseMessageType LeaseInstance int64 RemoteLeaseAgentInstance int64 Duration time.Duration Expiration time.Duration LeaseSuspendDuration time.Duration ArbitrationDuration time.Duration IsTwoWayTermination bool MessageListenEndpoint string // contains filtered or unexported fields }
type SessionMetadata ¶
Click to show internal directories.
Click to hide internal directories.