Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a timestamp oracle client.
func (*Client) GoGetTimestamp ¶
func (c *Client) GoGetTimestamp() *PipelineRequest
GoGetTimestamp returns a PipelineRequest so you can get the timestamp later.
type Conf ¶
type Conf struct {
// tso server address, it will be deprecated later.
ServerAddr string
// ZKAddr is for zookeeper address, if set, client will ignore ServerAddr
// and find the leader tso server address in zookeeper.
// Later ServerAddr is just for simple test and backward compatibility.
ZKAddr string
// root path is the tso server saving in zookeeper, like /zk/tso.
RootPath string
}
Conf is the configuration.
type Conn ¶
Conn is the connection for timestamp oracle server, it is not thread safe.
func NewConnection ¶
NewConnection creates a conn.
type PipelineRequest ¶
type PipelineRequest struct {
// contains filtered or unexported fields
}
PipelineRequest let you get the timestamp with pipeline.
Click to show internal directories.
Click to hide internal directories.