Documentation ¶
Overview ¶
Copyright 2017 by GoSpider author. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type EtcdConfig
- type MyEtcd
- func (myetcd *MyEtcd) Exist(key string) bool
- func (myetcd *MyEtcd) Get(key string) string
- func (myetcd *MyEtcd) GetAll(key string) (*client.Node, error)
- func (myetcd *MyEtcd) IsDir(key string) error
- func (myetcd *MyEtcd) IsKeyNotFound(e error) bool
- func (myetcd *MyEtcd) List(key string) (client.Nodes, error)
- func (myetcd *MyEtcd) ListR(key string) (client.Nodes, error)
- func (myetcd *MyEtcd) Rm(key string) error
- func (myetcd *MyEtcd) RmAll(key string) error
- func (myetcd *MyEtcd) Set(key, value string) error
- func (myetcd *MyEtcd) SetDir(key string) error
- func (myetcd *MyEtcd) StrictGet(key string) (string, error)
- func (myetcd *MyEtcd) StrictRm(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyEtcd ¶
type MyEtcd struct { Config EtcdConfig Client client.KeysAPI }
func (*MyEtcd) IsKeyNotFound ¶
Click to show internal directories.
Click to hide internal directories.