Documentation ¶
Index ¶
- type Confstatus
- type Confupdate
- type Confverify
- type EtcdDriver
- func (d *EtcdDriver) Close() error
- func (d *EtcdDriver) Get(key string) (string, error)
- func (d *EtcdDriver) HandleError(err error) error
- func (d *EtcdDriver) KeepAlive(id clientv3.LeaseID) (int64, error)
- func (d *EtcdDriver) List(prefix string) (ans []*EtcdRecord, e error)
- func (d *EtcdDriver) Ping() bool
- func (d *EtcdDriver) Put(key, value string) error
- func (d *EtcdDriver) PutWithLease(key, value string, ttl int64) (clientv3.LeaseID, error)
- func (d *EtcdDriver) Watch(ctx context.Context, key string) error
- type EtcdOptions
- type EtcdRecord
- type Keydelete
- type Keylist
- type Keyput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Confstatus ¶
type Confstatus struct { httputil.Base Request struct{} Response struct { Endpoints string `json:"endpoints"` Username string `json:"username"` Password string `json:"password"` } }
func (Confstatus) Run ¶
func (c Confstatus) Run(ctx *gin.Context)
type Confupdate ¶
type Confupdate struct { httputil.Base Request struct { Endpoints string `json:"endpoints"` // a;b;c UserName string `json:"username"` Password string `json:"password"` } Response struct{} }
func (Confupdate) Run ¶
func (c Confupdate) Run(ctx *gin.Context)
type Confverify ¶
func (Confverify) Run ¶
func (c Confverify) Run(ctx *gin.Context)
type EtcdDriver ¶
func NewEtcdDriver ¶
func NewEtcdDriver(options *EtcdOptions) (*EtcdDriver, error)
only check conf syntax
func (*EtcdDriver) Close ¶
func (d *EtcdDriver) Close() error
func (*EtcdDriver) HandleError ¶
func (d *EtcdDriver) HandleError(err error) error
func (*EtcdDriver) List ¶
func (d *EtcdDriver) List(prefix string) (ans []*EtcdRecord, e error)
func (*EtcdDriver) Put ¶
func (d *EtcdDriver) Put(key, value string) error
func (*EtcdDriver) PutWithLease ¶
type EtcdOptions ¶
type EtcdRecord ¶
Click to show internal directories.
Click to hide internal directories.