Versions in this module Expand all Collapse all v0 v0.3.3 Sep 25, 2022 v0.3.2 Mar 6, 2021 Changes in this version + func AddDatabaseParam(params string, client *clients.Client) string + func AddTransactionParam(params string, transaction *Transaction) string + func BuildRequestFromHandle(c clients.RESTClient, method string, uri string, reqHandle handle.Handle) (*http.Request, error) + func Execute(c clients.RESTClient, req *http.Request, responseHandle handle.ResponseHandle) error + func GetClientsByHost(client *clients.Client, forestInfo []ForestInfo) map[string]*clients.Client + func GetURIs(c *clients.Client, query handle.Handle, forestName string, ...) error + func MappedParameters(params string, prefix string, values map[string]string) string + func PostForm(c clients.RESTClient, endpoint string, atomicParams map[string][]string, ...) error + func RepeatingParameters(params string, valueLabel string, values []string) string + type Database struct + ID string + Name string + type ForestInfo struct + AlternateHost string + Database string + Host string + ID string + Name string + OpenReplicaHost string + RequestHost string + UpdatesAllowed string + func GetForestInfo(c *clients.Client) []ForestInfo + func (fi *ForestInfo) PreferredHost() string + type ForestInfoHandle struct + ForestInfo []ForestInfo + Format int + func (fih *ForestInfoHandle) AcceptResponse(resp *http.Response) error + func (fih *ForestInfoHandle) Deserialize(bytes []byte) + func (fih *ForestInfoHandle) Deserialized() interface{} + func (fih *ForestInfoHandle) Get() *[]ForestInfo + func (fih *ForestInfoHandle) GetFormat() int + func (fih *ForestInfoHandle) Read(bytes []byte) (n int, err error) + func (fih *ForestInfoHandle) Serialize(forestInfo interface{}) + func (fih *ForestInfoHandle) Serialized() string + func (fih *ForestInfoHandle) SetTimestamp(timestamp string) + func (fih *ForestInfoHandle) Timestamp() string + type Host struct + ID string + Name string + type SerializableStringMap map[string]string + func (s SerializableStringMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error + type Server struct + ID string + Name string + type Transaction struct + Database string + ID string + Name string + TimeLimit int + func (t *Transaction) Begin() bool + func (t *Transaction) Commit() bool + func (t *Transaction) GetStatus() TransactionStatus + func (t *Transaction) Rollback() bool + type TransactionStatus struct + Admin string + Canceled string + Database Database + Host Host + MaxTimeLimit string + Server Server + StartTime string + TimeLimit string + TransactionID string + TransactionMode string + TransactionName string + TransactionState string + TransactionTimestamp string + User string + type TransactionStatusHandle struct + TransactionStatus TransactionStatus + func (tsh *TransactionStatusHandle) AcceptResponse(resp *http.Response) error + func (tsh *TransactionStatusHandle) Deserialize(bytes []byte) + func (tsh *TransactionStatusHandle) Deserialized() interface{} + func (tsh *TransactionStatusHandle) Get() *TransactionStatus + func (tsh *TransactionStatusHandle) GetFormat() int + func (tsh *TransactionStatusHandle) Read(bytes []byte) (n int, err error) + func (tsh *TransactionStatusHandle) Serialize(transactionStatus interface{}) + func (tsh *TransactionStatusHandle) Serialized() string + func (tsh *TransactionStatusHandle) SetTimestamp(timestamp string) + func (tsh *TransactionStatusHandle) Timestamp() string + type Transform struct + Name string + Parameters map[string]string + func (t *Transform) ToParameters() string + type URIsHandle struct + URIs []string + func (uh *URIsHandle) AcceptResponse(resp *http.Response) error + func (uh *URIsHandle) Deserialize(bytes []byte) + func (uh *URIsHandle) Deserialized() interface{} + func (uh *URIsHandle) Get() []string + func (uh *URIsHandle) GetFormat() int + func (uh *URIsHandle) Serialize(uris interface{}) + func (uh *URIsHandle) Serialized() string + func (uh *URIsHandle) SetTimestamp(timestamp string) + func (uh *URIsHandle) Timestamp() string