Documentation
¶
Index ¶
- Variables
- func ToBytes(v interface{}) []byte
- func ToString(v interface{}) string
- func UnmarshalValue(kind reflect.Kind, buf []byte) interface{}
- type Client
- func (c *Client) BatchIndex(batch map[string]struct{}) error
- func (c *Client) BatchLookup(batch map[interface{}]interface{}) (map[interface{}]interface{}, error)
- func (c *Client) BatchPut(batch map[interface{}]interface{}) error
- func (m *Client) Connect() (err error)
- func (c *Client) Disconnect() error
- func (c *Client) Index(str string) error
- func (c *Client) Items(keyType, valueType reflect.Kind) (map[interface{}]interface{}, error)
- func (c *Client) Lookup(key interface{}, valueType reflect.Kind) (interface{}, error)
- func (c *Client) Put(k interface{}, v interface{}) error
- func (c *Client) Search(searchTerms string) (map[uint64]struct{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Deadline int = 60 Deadline time.Duration = time.Duration(60) )
Functions ¶
func UnmarshalValue ¶
Types ¶
type Client ¶
type Client struct { ServiceName string Quorum int Replicas int ConsulAgentAddr string ServicePort int ServerHostOverride string // contains filtered or unexported fields }
func NewDefaultClient ¶
func NewDefaultClient() *Client
func (*Client) BatchIndex ¶
func (*Client) BatchLookup ¶
func (*Client) Disconnect ¶
Click to show internal directories.
Click to hide internal directories.